Documentation
¶
Index ¶
- type Change
- type ChangeFactory
- type ChangeImpl
- func (d *ChangeImpl) AppliedResource() ctlres.Resource
- func (d *ChangeImpl) ExistingResource() ctlres.Resource
- func (d *ChangeImpl) IsIgnored() bool
- func (d *ChangeImpl) NewOrExistingResource() ctlres.Resource
- func (d *ChangeImpl) NewResource() ctlres.Resource
- func (d *ChangeImpl) Op() ChangeOp
- func (d *ChangeImpl) OpsDiff() OpsDiff
- func (d *ChangeImpl) TextDiff() TextDiff
- type ChangeOp
- type ChangePrecalculated
- func (d *ChangePrecalculated) AppliedResource() ctlres.Resource
- func (d *ChangePrecalculated) ExistingResource() ctlres.Resource
- func (d *ChangePrecalculated) IsIgnored() bool
- func (d *ChangePrecalculated) NewOrExistingResource() ctlres.Resource
- func (d *ChangePrecalculated) NewResource() ctlres.Resource
- func (d *ChangePrecalculated) Op() ChangeOp
- func (d *ChangePrecalculated) OpsDiff() OpsDiff
- func (d *ChangePrecalculated) TextDiff() TextDiff
- type ChangeSet
- type ChangeSetOpts
- type ChangeSetWithTemplates
- type GroupResources
- type OpsDiff
- type RebasedResource
- type ResourceWithHistory
- type TemplateResource
- type TextDiff
- type TextDiffView
- type TextDiffViewOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeFactory ¶
type ChangeFactory struct {
// contains filtered or unexported fields
}
func NewChangeFactory ¶
func NewChangeFactory(mods []ctlres.ResourceModWithMultiple) ChangeFactory
func (ChangeFactory) NewChangeAgainstLastApplied ¶
func (f ChangeFactory) NewChangeAgainstLastApplied(existingRes, newRes ctlres.Resource) (Change, error)
func (ChangeFactory) NewExactChange ¶
func (f ChangeFactory) NewExactChange(existingRes, newRes ctlres.Resource) (Change, error)
func (ChangeFactory) NewResourceWithHistory ¶
func (f ChangeFactory) NewResourceWithHistory(resource ctlres.Resource) ResourceWithHistory
type ChangeImpl ¶
type ChangeImpl struct {
// contains filtered or unexported fields
}
func NewChange ¶
func NewChange(existingRes, newRes, appliedRes ctlres.Resource) *ChangeImpl
func (*ChangeImpl) AppliedResource ¶
func (d *ChangeImpl) AppliedResource() ctlres.Resource
func (*ChangeImpl) ExistingResource ¶
func (d *ChangeImpl) ExistingResource() ctlres.Resource
func (*ChangeImpl) IsIgnored ¶
func (d *ChangeImpl) IsIgnored() bool
func (*ChangeImpl) NewOrExistingResource ¶
func (d *ChangeImpl) NewOrExistingResource() ctlres.Resource
func (*ChangeImpl) NewResource ¶
func (d *ChangeImpl) NewResource() ctlres.Resource
func (*ChangeImpl) Op ¶
func (d *ChangeImpl) Op() ChangeOp
func (*ChangeImpl) OpsDiff ¶
func (d *ChangeImpl) OpsDiff() OpsDiff
func (*ChangeImpl) TextDiff ¶
func (d *ChangeImpl) TextDiff() TextDiff
type ChangePrecalculated ¶
type ChangePrecalculated struct {
// contains filtered or unexported fields
}
func NewChangePrecalculated ¶
func NewChangePrecalculated(existingRes, newRes, appliedRes ctlres.Resource) *ChangePrecalculated
func (*ChangePrecalculated) AppliedResource ¶
func (d *ChangePrecalculated) AppliedResource() ctlres.Resource
func (*ChangePrecalculated) ExistingResource ¶
func (d *ChangePrecalculated) ExistingResource() ctlres.Resource
func (*ChangePrecalculated) IsIgnored ¶
func (d *ChangePrecalculated) IsIgnored() bool
func (*ChangePrecalculated) NewOrExistingResource ¶
func (d *ChangePrecalculated) NewOrExistingResource() ctlres.Resource
func (*ChangePrecalculated) NewResource ¶
func (d *ChangePrecalculated) NewResource() ctlres.Resource
func (*ChangePrecalculated) Op ¶
func (d *ChangePrecalculated) Op() ChangeOp
func (*ChangePrecalculated) OpsDiff ¶
func (d *ChangePrecalculated) OpsDiff() OpsDiff
func (*ChangePrecalculated) TextDiff ¶
func (d *ChangePrecalculated) TextDiff() TextDiff
type ChangeSet ¶
type ChangeSet struct {
// contains filtered or unexported fields
}
func NewChangeSet ¶
func NewChangeSet(existingRs, newRs []ctlres.Resource, opts ChangeSetOpts, changeFactory ChangeFactory) *ChangeSet
type ChangeSetOpts ¶
type ChangeSetOpts struct {
AgainstLastApplied bool
}
type ChangeSetWithTemplates ¶
type ChangeSetWithTemplates struct {
// contains filtered or unexported fields
}
func NewChangeSetWithTemplates ¶
func NewChangeSetWithTemplates(existingRs, newRs []ctlres.Resource, rules []ctlconf.TemplateRule, opts ChangeSetOpts, changeFactory ChangeFactory) *ChangeSetWithTemplates
func (ChangeSetWithTemplates) Calculate ¶
func (d ChangeSetWithTemplates) Calculate() ([]Change, error)
type GroupResources ¶
type GroupResources struct {
// contains filtered or unexported fields
}
type OpsDiff ¶
func (OpsDiff) FullString ¶
func (OpsDiff) HasChanges ¶
func (OpsDiff) MinimalMD5 ¶
func (OpsDiff) MinimalString ¶
type RebasedResource ¶
type RebasedResource struct {
// contains filtered or unexported fields
}
func NewRebasedResource ¶
func NewRebasedResource(existingRes, newRes ctlres.Resource, mods []ctlres.ResourceModWithMultiple) RebasedResource
type ResourceWithHistory ¶
type ResourceWithHistory struct {
// contains filtered or unexported fields
}
func NewResourceWithHistory ¶
func NewResourceWithHistory(resource ctlres.Resource, changeFactory *ChangeFactory) ResourceWithHistory
func (ResourceWithHistory) HistorylessResource ¶
func (r ResourceWithHistory) HistorylessResource() (ctlres.Resource, error)
func (ResourceWithHistory) LastAppliedResource ¶
func (r ResourceWithHistory) LastAppliedResource() ctlres.Resource
func (ResourceWithHistory) RecordLastAppliedResource ¶
type TemplateResource ¶
type TemplateResource struct {
// contains filtered or unexported fields
}
func (TemplateResource) NonTemplatedName ¶
func (d TemplateResource) NonTemplatedName() (string, string)
func (TemplateResource) SetTemplatedName ¶
func (d TemplateResource) SetTemplatedName(ver int)
func (TemplateResource) UniqTemplateKey ¶
func (d TemplateResource) UniqTemplateKey() ctlres.UniqueResourceKey
func (TemplateResource) UpdateAffected ¶
func (d TemplateResource) UpdateAffected(rs []ctlres.Resource) error
func (TemplateResource) Version ¶
func (d TemplateResource) Version() int
type TextDiff ¶
type TextDiff []difflib.DiffRecord
func NewTextDiff ¶
func (TextDiff) FullString ¶
func (TextDiff) HasChanges ¶
func (TextDiff) MinimalMD5 ¶
func (TextDiff) MinimalString ¶
type TextDiffView ¶
type TextDiffView struct {
// contains filtered or unexported fields
}
func NewTextDiffView ¶
func NewTextDiffView(diff TextDiff, opts TextDiffViewOpts) TextDiffView
func (TextDiffView) String ¶
func (v TextDiffView) String() string
type TextDiffViewOpts ¶
type TextDiffViewOpts struct {
Context int // number of lines to show around changed lines; <0 for all
}
Click to show internal directories.
Click to hide internal directories.