v3

package
v3.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: Apache-2.0 Imports: 5 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = config.Version{Number: 3}

Version is the config.Version for project configuration 3

Functions

func New

func New() config.Config

New returns a new config.Config

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

func (c *Cfg) AddResource(res resource.Resource) error

AddResource implements config.Config

func (*Cfg) ClearComponentConfig added in v3.12.0

func (c *Cfg) ClearComponentConfig() error

ClearComponentConfig implements config.Config

func (*Cfg) ClearMultiGroup added in v3.12.0

func (c *Cfg) ClearMultiGroup() error

ClearMultiGroup implements config.Config

func (Cfg) DecodePluginConfig added in v3.12.0

func (c Cfg) DecodePluginConfig(key string, configObj interface{}) error

DecodePluginConfig implements config.Config

func (*Cfg) EncodePluginConfig added in v3.12.0

func (c *Cfg) EncodePluginConfig(key string, configObj interface{}) error

EncodePluginConfig will return an error if used on any project version < v3.

func (Cfg) GetDomain added in v3.12.0

func (c Cfg) GetDomain() string

GetDomain implements config.Config

func (Cfg) GetPluginChain added in v3.12.0

func (c Cfg) GetPluginChain() []string

GetPluginChain implements config.Config

func (Cfg) GetProjectName added in v3.12.0

func (c Cfg) GetProjectName() string

GetProjectName implements config.Config

func (Cfg) GetRepository added in v3.12.0

func (c Cfg) GetRepository() string

GetRepository implements config.Config

func (Cfg) GetResource added in v3.12.0

func (c Cfg) GetResource(gvk resource.GVK) (resource.Resource, error)

GetResource implements config.Config

func (Cfg) GetResources added in v3.12.0

func (c Cfg) GetResources() ([]resource.Resource, error)

GetResources implements config.Config

func (Cfg) GetVersion added in v3.12.0

func (c Cfg) GetVersion() config.Version

GetVersion implements config.Config

func (Cfg) HasGroup added in v3.12.0

func (c Cfg) HasGroup(group string) bool

HasGroup implements config.Config

func (Cfg) HasResource added in v3.12.0

func (c Cfg) HasResource(gvk resource.GVK) bool

HasResource implements config.Config

func (Cfg) IsComponentConfig added in v3.12.0

func (c Cfg) IsComponentConfig() bool

IsComponentConfig implements config.Config

func (Cfg) IsMultiGroup added in v3.12.0

func (c Cfg) IsMultiGroup() bool

IsMultiGroup implements config.Config

func (Cfg) ListCRDVersions added in v3.12.0

func (c Cfg) ListCRDVersions() []string

ListCRDVersions implements config.Config

func (Cfg) ListWebhookVersions added in v3.12.0

func (c Cfg) ListWebhookVersions() []string

ListWebhookVersions implements config.Config

func (Cfg) MarshalYAML added in v3.12.0

func (c Cfg) MarshalYAML() ([]byte, error)

Marshal implements config.Config

func (Cfg) ResourcesLength added in v3.12.0

func (c Cfg) ResourcesLength() int

ResourcesLength implements config.Config

func (*Cfg) SetComponentConfig added in v3.12.0

func (c *Cfg) SetComponentConfig() error

SetComponentConfig implements config.Config

func (*Cfg) SetDomain added in v3.12.0

func (c *Cfg) SetDomain(domain string) error

SetDomain implements config.Config

func (*Cfg) SetMultiGroup added in v3.12.0

func (c *Cfg) SetMultiGroup() error

SetMultiGroup implements config.Config

func (*Cfg) SetPluginChain added in v3.12.0

func (c *Cfg) SetPluginChain(pluginChain []string) error

SetPluginChain implements config.Config

func (*Cfg) SetProjectName added in v3.12.0

func (c *Cfg) SetProjectName(name string) error

SetProjectName implements config.Config

func (*Cfg) SetRepository added in v3.12.0

func (c *Cfg) SetRepository(repository string) error

SetRepository implements config.Config

func (*Cfg) UnmarshalYAML added in v3.12.0

func (c *Cfg) UnmarshalYAML(b []byte) error

Unmarshal implements config.Config

func (*Cfg) UpdateResource added in v3.12.0

func (c *Cfg) UpdateResource(res resource.Resource) error

UpdateResource implements config.Config

Jump to

Keyboard shortcuts

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