Documentation
¶
Index ¶
- type Assertions
- type Build
- type CI
- func (y *CI) AddOrUpdateService(service *Service)
- func (y CI) Clone() *CI
- func (y CI) GetContainerName(serviceName string) string
- func (y CI) GetCredential(name string, ref *string) *Credential
- func (y CI) GetMetadata(key string) string
- func (y CI) GetSequencedContainerNames() []string
- func (y CI) GetService(name string) *Service
- func (y *CI) Initialize(doValidate bool) error
- func (y CI) Name() string
- func (y *CI) RemoveService(service *Service)
- func (y *CI) SetMetadata(key, value string)
- type Credential
- type DataSource
- type DataSourceFolder
- type DataSourceName
- type Deployment
- type ExposedPort
- type ExposedPorts
- type Image
- type Manifest
- func (m *Manifest) ApplyImage(imageID string, image *Image)
- func (m Manifest) BuildEquals(build *Build) bool
- func (m Manifest) CheckCRC() (bool, error)
- func (m Manifest) FilesCount() int
- func (m Manifest) HeadEquals(headHash [20]byte) bool
- func (m Manifest) ImageEquals(image *Image) bool
- func (m Manifest) SaveToFile(fileName string) error
- type ManifestFile
- type MountContainerPath
- type MountHostPath
- type Mounts
- type PortName
- type Registry
- type Service
- func (y *Service) ApplyBaseService(baseService *Service)
- func (y Service) Clone() *Service
- func (y Service) Equals(serviceYaml *Service, git, build, image bool) (equals bool)
- func (y Service) HasBaseService() bool
- func (y *Service) Initialize(name string, isThird, doValidate bool) error
- func (y *Service) IsThird() bool
- func (y Service) Name() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assertions ¶
type Assertions struct { Successes []string `yaml:"successes"` Fails []string `yaml:"fails"` Lines int `yaml:"lines"` Timeout string `yaml:"timeout"` }
func (Assertions) Clone ¶
func (a Assertions) Clone() *Assertions
func (Assertions) GetLines ¶
func (a Assertions) GetLines() int
func (Assertions) GetTimeout ¶
func (a Assertions) GetTimeout() time.Duration
func (*Assertions) Initialize ¶
func (a *Assertions) Initialize(doValidator bool) error
func (Assertions) IsSuccess ¶
func (a Assertions) IsSuccess(keyword string) bool
func (Assertions) Keywords ¶
func (a Assertions) Keywords() []string
type Build ¶
type Build struct { Git string `yaml:"git"` Branch string `yaml:"branch"` Tag string `yaml:"tag"` TargetFolder string `yaml:"target"` Scripts []string `yaml:"scripts"` AdditionalFiles []string `yaml:"additionalFiles"` Env map[string]string `yaml:"env"` }
func (*Build) Initialize ¶
type CI ¶
type CI struct { Variables map[string]string `yaml:"variables"` CommonEnvs map[string]string `yaml:"commonEnvs"` ThirdServices map[string]*Service `yaml:"thirdServices"` Services map[string]*Service `yaml:"services"` Registry *Registry `yaml:"registry"` Credentials []*Credential `yaml:"credentials"` Metadata map[string]string `yaml:"metadata"` CIName string `yaml:"name"` Namespace string `yaml:"namespace"` // contains filtered or unexported fields }
func (*CI) AddOrUpdateService ¶
func (CI) GetContainerName ¶
func (CI) GetCredential ¶
func (y CI) GetCredential(name string, ref *string) *Credential
func (CI) GetMetadata ¶
func (CI) GetSequencedContainerNames ¶
func (CI) GetService ¶
func (*CI) Initialize ¶
func (*CI) RemoveService ¶
func (*CI) SetMetadata ¶
type Credential ¶
type Credential struct { Host string `yaml:"host"` UserName string `yaml:"userName"` Password string `yaml:"password"` }
func (Credential) Clone ¶
func (c Credential) Clone() *Credential
func (Credential) Validate ¶
func (c Credential) Validate() error
type DataSource ¶
type DataSource map[DataSourceName]map[MountHostPath]DataSourceFolder
func (DataSource) Clone ¶
func (ds DataSource) Clone() DataSource
type DataSourceFolder ¶
type DataSourceFolder string
type DataSourceName ¶
type DataSourceName string
type Deployment ¶
type Deployment struct { Args []string `yaml:"args"` Env map[string]string `yaml:"env"` ServiceName string `yaml:"serviceName"` ContainerName string `yaml:"containerName"` ContainerID string `yaml:"containerID"` DockerImageID string `yaml:"dockerImageID"` ExposedPorts ExposedPorts `yaml:"exposedPorts"` Mounts Mounts `yaml:"mounts"` }
func CreateDeployment ¶
func CreateDeployment(serviceName, containerID, containerName, dockerImageID string, args []string, env map[string]string, exposedPorts ExposedPorts, mounts Mounts) *Deployment
func ReadDeployment ¶
func ReadDeployment(path string) (*Deployment, error)
func (Deployment) Equals ¶
func (d Deployment) Equals(args []string, env map[string]string, exposedPorts ExposedPorts, mounts Mounts) bool
func (Deployment) SaveToFile ¶
func (d Deployment) SaveToFile(fileName string) error
type ExposedPort ¶
type ExposedPort struct { HostIP string `yaml:"hostIP"` HostPort int `yaml:"hostPort"` // contains filtered or unexported fields }
func (ExposedPort) Clone ¶
func (y ExposedPort) Clone() *ExposedPort
func (*ExposedPort) Validate ¶
func (y *ExposedPort) Validate(portName PortName) error
type ExposedPorts ¶
type ExposedPorts map[PortName]*ExposedPort
type Image ¶
type Manifest ¶
type Manifest struct { HeadHash string `yaml:"headHash"` Files []*ManifestFile `yaml:"files"` Scripts []string `yaml:"scripts"` AdditionalFiles []string `yaml:"additionalFiles"` BuildEnvs map[string]string `yaml:"buildEnvs"` DockerImageID *string `yaml:"dockerImageID"` Image *Image `yaml:"image"` // contains filtered or unexported fields }
func CreateManifest ¶
func ReadManifest ¶
func (*Manifest) ApplyImage ¶
func (Manifest) BuildEquals ¶
func (Manifest) FilesCount ¶
func (Manifest) HeadEquals ¶
func (Manifest) ImageEquals ¶
func (Manifest) SaveToFile ¶
type ManifestFile ¶
type MountContainerPath ¶
type MountContainerPath string
type MountHostPath ¶
type MountHostPath string
type Mounts ¶
type Mounts map[MountContainerPath]MountHostPath
type Service ¶
type Service struct { BaseService string `yaml:"baseService"` Image *Image `yaml:"image"` ExposedPorts ExposedPorts `yaml:"exposedPorts"` Env map[string]string `yaml:"env"` Mounts Mounts `yaml:"mounts"` Args []string `yaml:"args"` Build *Build `yaml:"build"` MetaData map[string]string `yaml:"metadata"` Assertions *Assertions `yaml:"assertions"` DependsOn []string `yaml:"dependsOn"` Tags map[string]string `yaml:"tags"` DataSource DataSource `yaml:"dataSource"` DisableCommonEnv bool `yaml:"disableCommonEnv"` // contains filtered or unexported fields }
func (*Service) ApplyBaseService ¶
func (Service) HasBaseService ¶
func (*Service) Initialize ¶
Click to show internal directories.
Click to hide internal directories.