Documentation ¶
Index ¶
- Variables
- func New() config.Config
- type Cfg
- func (c *Cfg) AddResource(res resource.Resource) error
- func (c *Cfg) ClearComponentConfig() error
- func (c *Cfg) ClearMultiGroup() error
- func (c Cfg) DecodePluginConfig(key string, configObj interface{}) error
- func (c *Cfg) EncodePluginConfig(key string, configObj interface{}) error
- func (c Cfg) GetDomain() string
- func (c Cfg) GetPluginChain() []string
- func (c Cfg) GetProjectName() string
- func (c Cfg) GetRepository() string
- func (c Cfg) GetResource(gvk resource.GVK) (resource.Resource, error)
- func (c Cfg) GetResources() ([]resource.Resource, error)
- func (c Cfg) GetVersion() config.Version
- func (c Cfg) HasGroup(group string) bool
- func (c Cfg) HasResource(gvk resource.GVK) bool
- func (c Cfg) IsComponentConfig() bool
- func (c Cfg) IsMultiGroup() bool
- func (c Cfg) ListCRDVersions() []string
- func (c Cfg) ListWebhookVersions() []string
- func (c Cfg) MarshalYAML() ([]byte, error)
- func (c Cfg) ResourcesLength() int
- func (c *Cfg) SetComponentConfig() error
- func (c *Cfg) SetDomain(domain string) error
- func (c *Cfg) SetMultiGroup() error
- func (c *Cfg) SetPluginChain(pluginChain []string) error
- func (c *Cfg) SetProjectName(name string) error
- func (c *Cfg) SetRepository(repository string) error
- func (c *Cfg) UnmarshalYAML(b []byte) error
- func (c *Cfg) UpdateResource(res resource.Resource) error
Constants ¶
This section is empty.
Variables ¶
var Version = config.Version{Number: 3}
Version is the config.Version for project configuration 3
Functions ¶
Types ¶
type Cfg ¶ added in v3.12.0
type Cfg struct { // Version Version config.Version `json:"version"` // String fields Domain string `json:"domain,omitempty"` Repository string `json:"repo,omitempty"` Name string `json:"projectName,omitempty"` PluginChain stringSlice `json:"layout,omitempty"` // Boolean fields MultiGroup bool `json:"multigroup,omitempty"` ComponentConfig bool `json:"componentConfig,omitempty"` // Resources Resources []resource.Resource `json:"resources,omitempty"` // Plugins Plugins pluginConfigs `json:"plugins,omitempty"` }
func (*Cfg) AddResource ¶ added in v3.12.0
AddResource implements config.Config
func (*Cfg) ClearComponentConfig ¶ added in v3.12.0
ClearComponentConfig implements config.Config
func (*Cfg) ClearMultiGroup ¶ added in v3.12.0
ClearMultiGroup implements config.Config
func (Cfg) DecodePluginConfig ¶ added in v3.12.0
DecodePluginConfig implements config.Config
func (*Cfg) EncodePluginConfig ¶ added in v3.12.0
EncodePluginConfig will return an error if used on any project version < v3.
func (Cfg) GetPluginChain ¶ added in v3.12.0
GetPluginChain implements config.Config
func (Cfg) GetProjectName ¶ added in v3.12.0
GetProjectName implements config.Config
func (Cfg) GetRepository ¶ added in v3.12.0
GetRepository implements config.Config
func (Cfg) GetResource ¶ added in v3.12.0
GetResource implements config.Config
func (Cfg) GetResources ¶ added in v3.12.0
GetResources implements config.Config
func (Cfg) GetVersion ¶ added in v3.12.0
GetVersion implements config.Config
func (Cfg) HasResource ¶ added in v3.12.0
HasResource implements config.Config
func (Cfg) IsComponentConfig ¶ added in v3.12.0
IsComponentConfig implements config.Config
func (Cfg) IsMultiGroup ¶ added in v3.12.0
IsMultiGroup implements config.Config
func (Cfg) ListCRDVersions ¶ added in v3.12.0
ListCRDVersions implements config.Config
func (Cfg) ListWebhookVersions ¶ added in v3.12.0
ListWebhookVersions implements config.Config
func (Cfg) MarshalYAML ¶ added in v3.12.0
Marshal implements config.Config
func (Cfg) ResourcesLength ¶ added in v3.12.0
ResourcesLength implements config.Config
func (*Cfg) SetComponentConfig ¶ added in v3.12.0
SetComponentConfig implements config.Config
func (*Cfg) SetMultiGroup ¶ added in v3.12.0
SetMultiGroup implements config.Config
func (*Cfg) SetPluginChain ¶ added in v3.12.0
SetPluginChain implements config.Config
func (*Cfg) SetProjectName ¶ added in v3.12.0
SetProjectName implements config.Config
func (*Cfg) SetRepository ¶ added in v3.12.0
SetRepository implements config.Config
func (*Cfg) UnmarshalYAML ¶ added in v3.12.0
Unmarshal implements config.Config