inventory

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

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

type BuildOptions struct {
	ShowManagedField bool
	Branch           string
	ShowChoreoAPIs   bool
}

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

func (Inventory) Extract

func (inv Inventory) Extract(path string) error

func (Inventory) Print

func (r Inventory) Print()

func (Inventory) Sets

Jump to

Keyboard shortcuts

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