Documentation ¶
Index ¶
- Variables
- func New() config.Config
- type Cfg
- func (c *Cfg) AddResource(res resource.Resource) 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) 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) 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 ¶
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"` // Resources Resources []resource.Resource `json:"resources,omitempty"` // Plugins Plugins pluginConfigs `json:"plugins,omitempty"` }
func (*Cfg) AddResource ¶
AddResource implements config.Config
func (*Cfg) ClearMultiGroup ¶
ClearMultiGroup implements config.Config
func (Cfg) DecodePluginConfig ¶
DecodePluginConfig implements config.Config
func (*Cfg) EncodePluginConfig ¶
EncodePluginConfig will return an error if used on any project version < v3.
func (Cfg) GetPluginChain ¶
GetPluginChain implements config.Config
func (Cfg) GetProjectName ¶
GetProjectName implements config.Config
func (Cfg) GetRepository ¶
GetRepository implements config.Config
func (Cfg) GetResource ¶
GetResource implements config.Config
func (Cfg) GetResources ¶
GetResources implements config.Config
func (Cfg) GetVersion ¶
GetVersion implements config.Config
func (Cfg) HasResource ¶
HasResource implements config.Config
func (Cfg) ListCRDVersions ¶
ListCRDVersions implements config.Config
func (Cfg) ListWebhookVersions ¶
ListWebhookVersions implements config.Config
func (Cfg) MarshalYAML ¶
Marshal implements config.Config
func (Cfg) ResourcesLength ¶
ResourcesLength implements config.Config
func (*Cfg) SetMultiGroup ¶
SetMultiGroup implements config.Config
func (*Cfg) SetPluginChain ¶
SetPluginChain implements config.Config
func (*Cfg) SetProjectName ¶
SetProjectName implements config.Config
func (*Cfg) SetRepository ¶
SetRepository implements config.Config
func (*Cfg) UnmarshalYAML ¶
Unmarshal implements config.Config