config

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 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 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 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"`
	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