config

package
v0.1.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnumerateDaemons

func EnumerateDaemons(configPath string, handleFn func(Daemon) error) error

func EnumerateLibraries added in v0.1.14

func EnumerateLibraries(configPath string, handleFn func(Library) error) error

func FindRepository

func FindRepository(configPath string, module string) (*Repository, *BuildConfiguration, error)

Types

type BuildConfiguration added in v0.0.2

type BuildConfiguration struct {
	Env []struct {
		Name  string `yaml:"name"`
		Value string `yaml:"value"`
	} `yaml:"env"`
}

type ComputesList added in v0.0.7

type ComputesList []string

type Daemon

type Daemon struct {
	Name           string `yaml:"name"`
	Bin            string `yaml:"bin"`
	BuildCmd       string `yaml:"buildCmd"`
	Repository     string `yaml:"repository"`
	Path           string `yaml:"path"`
	ServiceAccount struct {
		Name      string `yaml:"name"`
		Namespace string `yaml:"namespace"`
	} `yaml:"serviceAccount,omitempty"`
	ExtraArgs   string   `yaml:"extraArgs,omitempty"`
	Environment []EnvVar `yaml:"env,omitempty"`
}

type DaemonConfigFile

type DaemonConfigFile struct {
	Daemons []Daemon `yaml:"daemons"`
}

type EnvVar added in v0.0.7

type EnvVar struct {
	Name  string `yaml:"name"`
	Value string `yaml:"value,omitempty"`
}

type HeaderEnt added in v0.1.14

type HeaderEnt struct {
	// Name is the name of a .h file.
	Name string `yaml:"name"`
	// Dest is where Name should be copied to on the destination host.
	Dest string `yaml:"dest"`
}

type LibEnt added in v0.1.14

type LibEnt struct {
	// Name is the name of a library's .a or .so.
	Name string `yaml:"name"`
	// Dest is where Name should be copied to on the destination host.
	Dest string `yaml:"dest"`
}

type Library added in v0.1.14

type Library struct {
	Name       string `yaml:"name"`
	BuildCmd   string `yaml:"buildCmd"`
	Repository string `yaml:"repository"`
	Library    LibEnt `yaml:"lib,omitempty"`
	// Path is the path within the build repository that has the library and its header.
	Path   string `yaml:"path"`
	Secret struct {
		Name      string `yaml:"name"`
		Namespace string `yaml:"namespace"`
	} `yaml:"secret,omitempty"`
}

type LibraryConfigFile added in v0.1.14

type LibraryConfigFile struct {
	Libraries []Library `yaml:"libraries"`
}

type Rabbits added in v0.0.7

type Rabbits map[string]ComputesList

type Repository

type Repository struct {
	Name            string   `yaml:"name"`
	Overlays        []string `yaml:"overlays,flow"`
	Development     string   `yaml:"development"`
	Master          string   `yaml:"master"`
	UseRemoteK      bool     `yaml:"useRemoteK,omitempty"`
	RemoteReference struct {
		Build string `yaml:"build"`
		Url   string `yaml:"url"`
	} `yaml:"remoteReference,omitempty"`
}

type RepositoryConfigFile

type RepositoryConfigFile struct {
	Repositories       []Repository        `yaml:"repositories"`
	BuildConfig        BuildConfiguration  `yaml:"buildConfiguration"`
	ThirdPartyServices []ThirdPartyService `yaml:"thirdPartyServices"`
}

type System

type System struct {
	Name                string   `yaml:"name"`
	Aliases             []string `yaml:"aliases,flow,omitempty"`
	Overlays            []string `yaml:"overlays,omitempty,flow"`
	SystemConfiguration string   `yaml:"systemConfiguration,flow"`
	K8sHost             string   `yaml:"k8sHost,flow,omitempty"`
	K8sPort             string   `yaml:"k8sPort,flow,omitempty"`
}

func FindSystem

func FindSystem(name, configPath string) (*System, error)

func (*System) Verify added in v0.0.2

func (system *System) Verify() error

type SystemConfigFile

type SystemConfigFile struct {
	Systems []System `yaml:"systems"`
}

func ReadConfig added in v0.0.2

func ReadConfig(path string) (*SystemConfigFile, error)

func (*SystemConfigFile) Verify added in v0.0.2

func (config *SystemConfigFile) Verify() error

type SystemConfigurationCRType added in v0.0.7

type SystemConfigurationCRType map[string]interface{}

func ReadSystemConfigurationCR added in v0.0.7

func ReadSystemConfigurationCR(crPath string) (SystemConfigurationCRType, error)

func (SystemConfigurationCRType) ExternalComputes added in v0.0.10

func (data SystemConfigurationCRType) ExternalComputes() ComputesList

func (SystemConfigurationCRType) RabbitsAndComputes added in v0.0.7

func (data SystemConfigurationCRType) RabbitsAndComputes() Rabbits

type ThirdPartyService added in v0.0.2

type ThirdPartyService struct {
	Name          string `yaml:"name"`
	UseRemoteF    bool   `yaml:"useRemoteF,omitempty"`
	UseRemoteFTar bool   `yaml:"useRemoteFTar,omitempty"`
	UseRemoteKTar bool   `yaml:"useRemoteKTar,omitempty"`
	Kustomization string `yaml:"kustomization,omitempty"`
	Url           string `yaml:"url"`
	WaitCmd       string `yaml:"waitCmd,omitempty"`
	UseHelm       bool   `yaml:"useHelm,omitempty"`
	HelmCmd       string `yaml:"helmCmd,omitempty"`
}

func GetThirdPartyServices added in v0.0.2

func GetThirdPartyServices(configPath string) ([]ThirdPartyService, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL