installations

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetData

func GetData(i *Installations) ([]byte, error)

Types

type AwsConfig

type AwsConfig struct {
	Region       string       `yaml:"region"`
	HostCluster  HostCluster  `yaml:"hostCluster"`
	GuestCluster GuestCluster `yaml:"guestCluster"`
}

type GuestCluster

type GuestCluster struct {
	Account          string `yaml:"account"`
	CloudtrailBucket string `yaml:"cloudtrailBucket"`
	GuardDuty        bool   `yaml:"guardDuty"`
}

type HostCluster

type HostCluster struct {
	Account          string `yaml:"account"`
	CloudtrailBucket string `yaml:"cloudtrailBucket"`
	AdminRoleArn     string `yaml:"adminRoleARN"`
	GuardDuty        bool   `yaml:"guardDuty"`
}

type Installations

type Installations struct {
	Base            string    `yaml:"base"`
	Codename        string    `yaml:"codename"`
	Customer        string    `yaml:"customer"`
	CmcRepository   string    `yaml:"cmc_repository"`
	CcrRepository   string    `yaml:"ccr_repository"`
	AccountEngineer string    `yaml:"accountEngineer"`
	Pipeline        string    `yaml:"pipeline"`
	Provider        string    `yaml:"provider"`
	Aws             AwsConfig `yaml:"aws,omitempty"`
}

func GetInstallations

func GetInstallations(data []byte) (*Installations, error)

func GetInstallationsFromFile

func GetInstallationsFromFile(path string) (*Installations, error)

func NewInstallations

func NewInstallations(installationsConfig InstallationsConfig) *Installations

func (*Installations) Equals

func (i *Installations) Equals(other *Installations) bool

func (*Installations) Override

func (i *Installations) Override(override *Installations) *Installations

func (*Installations) Print

func (i *Installations) Print() error

func (*Installations) Validate

func (i *Installations) Validate() error

type InstallationsConfig

type InstallationsConfig struct {
	Base                            string
	Codename                        string
	Customer                        string
	CmcRepository                   string
	CcrRepository                   string
	AccountEngineer                 string
	Pipeline                        string
	Provider                        string
	AwsRegion                       string
	AwsHostClusterAccount           string
	AwsHostClusterAdminRoleArn      string
	AwsHostClusterGuardDuty         bool
	AwsHostClusterCloudtrailBucket  string
	AwsGuestClusterAccount          string
	AwsGuestClusterCloudtrailBucket string
	AwsGuestClusterGuardDuty        bool
}

Jump to

Keyboard shortcuts

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