Documentation
¶
Index ¶
- Constants
- Variables
- func NewBody(file string) (*planBody, error)
- type Plan
- func (p *Plan) Apply() (err error)
- func (p *Plan) ApplyReport(fails map[*release.Config]error) error
- func (p *Plan) ApplyWithKubedog(kubedogConfig *kubedog.Config) (err error)
- func (p *Plan) Build(yml string, tags []string, matchAll bool) error
- func (p *Plan) Clean()
- func (p *Plan) Destroy() error
- func (p *Plan) DiffLive(showSecret bool, diffWide int)
- func (p *Plan) DiffPlan(b *Plan, showSecret bool, diffWide int)
- func (p *Plan) Export() error
- func (p *Plan) GetLive() (found map[uniqname.UniqName]*live.Release, notFound []uniqname.UniqName, ...)
- func (p *Plan) GetLiveOf(name uniqname.UniqName) (*live.Release, error)
- func (p *Plan) Import() error
- func (p *Plan) IsExist() bool
- func (p *Plan) IsManifestExist() bool
- func (p *Plan) List() error
- func (p *Plan) PrettyPlan()
- func (p *Plan) Rollback() error
- func (p *Plan) Status(names []string) error
- func (p *Plan) ValidateValues() error
Constants ¶
View Source
const ( Dir = ".helmwave/" File = "planfile" Body = "helmwave.yml" Manifest = "manifest/" Values = "values/" )
Variables ¶
View Source
var ( FailStatusColor = tablewriter.Color(tablewriter.Bold, tablewriter.BgRedColor) SuccessStatusColor = tablewriter.Color(tablewriter.Bold, tablewriter.BgRedColor) )
View Source
var ( ErrManifestDirNotFound = errors.New(Manifest + " dir not found") ErrManifestDirEmpty = errors.New(Manifest + " is empty") )
View Source
var ErrDeploy = errors.New("deploy failed")
View Source
var ErrPlansAreTheSame = errors.New("plan1 and plan2 are the same")
View Source
var ErrValidateFailed = errors.New("validate failed")
Functions ¶
Types ¶
type Plan ¶
type Plan struct {
// contains filtered or unexported fields
}
func (*Plan) ApplyWithKubedog ¶
func (*Plan) GetLive ¶ added in v0.16.0
func (p *Plan) GetLive() (found map[uniqname.UniqName]*live.Release, notFound []uniqname.UniqName, err error)
GetLive returns maps of releases in a k8s-cluster
func (*Plan) IsManifestExist ¶
IsManifestExist returns true if planfile exists
func (*Plan) PrettyPlan ¶
func (p *Plan) PrettyPlan()
func (*Plan) ValidateValues ¶
Click to show internal directories.
Click to hide internal directories.