tracker

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface added in v0.3.0

type Interface interface {
	Sync(obj *unstructured.Unstructured, path ...string) (string, *identity.Locator, error)
	Locators() (locators []*identity.Locator)
}

type LocationTracker

type LocationTracker struct {
	// contains filtered or unexported fields
}

LocationTracker tracks locations (in a cluster) of objects that have been created / synced from an instance.

func NewLocationTracker

func NewLocationTracker(ensurer ensure.Interface) *LocationTracker

func (*LocationTracker) Locators

func (a *LocationTracker) Locators() (locators []*identity.Locator)

Locators returns the list of locators for concrete values

func (*LocationTracker) Sync

Sync attempts to create an unstructured object identified by []path in instance. if successful, it returns a locator that can be used to lookup the object in the cluster later.

Jump to

Keyboard shortcuts

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