Documentation ¶
Index ¶
- type BuildOption
- type BuildOptions
- type DiffReporter
- type Inventory
- func (inv Inventory) Build(ctx context.Context, client resourceclient.Client, ...) error
- func (r Inventory) CollectGarbage() sets.Set[corev1.ObjectReference]
- func (inv Inventory) Diff(invBefore Inventory, diff *choreov1alpha1.Diff, opts *snapshotpb.Diff_Options) error
- func (inv Inventory) Extract(path string) error
- func (r Inventory) Print()
- func (r Inventory) Sets() sets.Set[corev1.ObjectReference]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildOption ¶ added in v0.0.11
type BuildOption interface { // ApplyToBuikd applies this configuration to the given options. ApplyToBuild(*BuildOptions) }
type BuildOptions ¶ added in v0.0.11
func (*BuildOptions) ApplyOptions ¶ added in v0.0.11
func (o *BuildOptions) ApplyOptions(opts []BuildOption) *BuildOptions
ApplyOptions applies the given get options on these options, and then returns itself (for convenient chaining).
func (*BuildOptions) ApplyToBuild ¶ added in v0.0.11
func (o *BuildOptions) ApplyToBuild(lo *BuildOptions)
type DiffReporter ¶
type DiffReporter struct {
// contains filtered or unexported fields
}
DiffReporter is a simple custom reporter that only records differences detected during comparison.
func (*DiffReporter) PopStep ¶
func (r *DiffReporter) PopStep()
func (*DiffReporter) PushStep ¶
func (r *DiffReporter) PushStep(ps cmp.PathStep)
func (*DiffReporter) Report ¶
func (r *DiffReporter) Report(rs cmp.Result)
func (*DiffReporter) String ¶
func (r *DiffReporter) String() string
type Inventory ¶
type Inventory map[corev1.ObjectReference]*treeNode
func (Inventory) Build ¶
func (inv Inventory) Build(ctx context.Context, client resourceclient.Client, apiResources []*discoverypb.APIResource, opts ...BuildOption) error
func (Inventory) CollectGarbage ¶
func (r Inventory) CollectGarbage() sets.Set[corev1.ObjectReference]
func (Inventory) Diff ¶
func (inv Inventory) Diff(invBefore Inventory, diff *choreov1alpha1.Diff, opts *snapshotpb.Diff_Options) error
Click to show internal directories.
Click to hide internal directories.