Documentation ¶
Index ¶
- type Factory
- type KubectlCliT
- type Unit
- func (u *Unit) Apply() error
- func (u *Unit) Build() error
- func (u *Unit) Destroy() error
- func (u *Unit) GetDiffData() interface{}
- func (u *Unit) GetManifestsMap() (res map[string]interface{}, namespaces []string)
- func (u *Unit) GetState() interface{}
- func (u *Unit) GetStateDiffData() interface{}
- func (u *Unit) GetUnitDiff() UnitDiffSpec
- func (u *Unit) Init() error
- func (u *Unit) KindKey() string
- func (u *Unit) LoadState(spec interface{}, modKey string, p *project.StateProject) error
- func (u *Unit) Plan() error
- func (u *Unit) Prepare() error
- func (u *Unit) ReadConfig(spec map[string]interface{}, stack *project.Stack) error
- func (u *Unit) ReadManifestsPath(src string) error
- func (u *Unit) ScanData(scanner project.MarkerScanner) error
- type UnitDiffSpec
- type YAMLFilesList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct { }
Factory factory for s3 backends.
func (*Factory) NewFromState ¶
func (f *Factory) NewFromState(spec map[string]interface{}, modKey string, p *project.StateProject) (project.Unit, error)
NewFromState creates new unit from state data.
type KubectlCliT ¶
type Unit ¶
type Unit struct { common.Unit Namespace string `yaml:"namespace,omitempty" json:"namespace,omitempty"` Kubeconfig *string `yaml:"kubeconfig,omitempty" json:"kubeconfig,omitempty"` KubectlOpts string `yaml:"kubectl_opts,omitempty" json:"kubectl_opts,omitempty"` KubectlCliConf *KubectlCliT `yaml:"kubectl,omitempty" json:"kubectl,omitempty"` Path string `yaml:"path" json:"path"` ManifestsFiles *common.FilesListT `yaml:"-" json:"manifests"` ApplyTemplate bool `yaml:"apply_template" json:"-"` UnitKind string `yaml:"-" json:"type"` SavedState interface{} `yaml:"-" json:"-"` CreateNamespaces bool `yaml:"create_namespaces" json:"-"` // contains filtered or unexported fields }
Unit describe cluster.dev unit to deploy/destroy k8s resources with kubectl.
func NewEmptyUnit ¶
func NewEmptyUnit() *Unit
func (*Unit) GetDiffData ¶
func (u *Unit) GetDiffData() interface{}
func (*Unit) GetManifestsMap ¶
func (*Unit) GetStateDiffData ¶
func (u *Unit) GetStateDiffData() interface{}
func (*Unit) GetUnitDiff ¶
func (u *Unit) GetUnitDiff() UnitDiffSpec
func (*Unit) LoadState ¶
func (u *Unit) LoadState(spec interface{}, modKey string, p *project.StateProject) error
func (*Unit) Prepare ¶
Prepare scan all markers in unit, and build project unit links, and unit dependencies.
func (*Unit) ReadConfig ¶
func (*Unit) ReadManifestsPath ¶
type UnitDiffSpec ¶
type UnitDiffSpec struct { common.UnitDiffSpec Manifests interface{} `json:"manifests"` }
type YAMLFilesList ¶
type YAMLFilesList struct {
Files common.FilesListT
}
Click to show internal directories.
Click to hide internal directories.