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 ¶
func (a *LocationTracker) Sync(obj *unstructured.Unstructured, path ...string) (string, *identity.Locator, error)
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.
Click to show internal directories.
Click to hide internal directories.