Documentation
¶
Index ¶
- Variables
- type Config
- func (c *Config) AddComponent(name string)
- func (c *Config) AddOverlay(name string)
- func (c *Config) GetOverlayComponent(overlayComponentGet string) []*SimpleOverlayedComponent
- func (c *Config) GetOverlayComponents(skipOverlayComponent string) []*SimpleOverlayedComponent
- func (c *Config) Validate() error
- type ConfigSpec
- type Database
- type DatabaseWrapper
- type ManifestVar
- type SimpleOverlayedComponent
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CLIVersion string ManifestsRepositoryTag string CoreImageTag string CoreUIImageTag string )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ApiVersion string `yaml:"apiVersion"` Kind string `yaml:"kind"` Spec ConfigSpec `yaml:"spec"` }
func (*Config) AddComponent ¶
func (*Config) AddOverlay ¶
func (*Config) GetOverlayComponent ¶
func (c *Config) GetOverlayComponent(overlayComponentGet string) []*SimpleOverlayedComponent
overlayComponent is form of "common/application/base"
func (*Config) GetOverlayComponents ¶
func (c *Config) GetOverlayComponents(skipOverlayComponent string) []*SimpleOverlayedComponent
type ConfigSpec ¶
type ConfigSpec struct { ManifestsRepo string `yaml:"manifestsRepo"` Params string `yaml:"params"` Components []string `yaml:"components"` Overlays []string `yaml:"overlays"` }
func (*ConfigSpec) HasComponent ¶ added in v1.0.0
func (c *ConfigSpec) HasComponent(name string) bool
HasComponent checks if the config spec has any component with the exact name given
func (*ConfigSpec) HasLikeComponent ¶ added in v1.0.0
func (c *ConfigSpec) HasLikeComponent(name string) bool
HasLikeComponent checks if the config spec has any component that starts with the name given
type Database ¶ added in v1.0.0
type Database struct { Host *ManifestVar Username *ManifestVar Password *ManifestVar Port *ManifestVar DatabaseName *ManifestVar `yaml:"databaseName"` DriverName *ManifestVar `yaml:"driverName"` }
Database represents the configuration available for the database
type DatabaseWrapper ¶ added in v1.0.0
type DatabaseWrapper struct {
Database *Database `yaml:"database"`
}
DatabaseWrapper is a utility for loading the database key from yaml
type ManifestVar ¶ added in v1.0.0
ManifestVar represents a variable from the manifest
func RequiredManifestVar ¶ added in v1.0.0
func RequiredManifestVar(val string) *ManifestVar
RequiredManifestVar returns a ManifestVar that is required with the input value
type SimpleOverlayedComponent ¶
type SimpleOverlayedComponent struct {
// contains filtered or unexported fields
}
func CreateSimpleOverlayedComponent ¶
func CreateSimpleOverlayedComponent(names ...string) *SimpleOverlayedComponent
func (*SimpleOverlayedComponent) AddPart ¶
func (s *SimpleOverlayedComponent) AddPart(name *string)
func (*SimpleOverlayedComponent) PartsSkipFirst ¶
func (s *SimpleOverlayedComponent) PartsSkipFirst() []*string
If there is one part, return just that part. If there is more than one, return all but the first.
Click to show internal directories.
Click to hide internal directories.