unifier

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterUnifier

type ClusterUnifier struct {

	// protects access to the build.Instance being unified
	sync.RWMutex
	// contains filtered or unexported fields
}

ClusterUnifier takes an initial cue.Instance and can return a new cue.Instance where initial has been unified with the current state of the cluster.

func NewClusterUnifier

func NewClusterUnifier(runtime *cue.Runtime, instance *cue.Instance, informerSet cache.Interface) *ClusterUnifier

func (*ClusterUnifier) Fill

func (u *ClusterUnifier) Fill(queue workqueue.RateLimitingInterface) (total int, err error)

func (*ClusterUnifier) Lookup

func (u *ClusterUnifier) Lookup(fromCluster map[*identity.Locator]*unstructured.Unstructured, path ...string) (*unstructured.Unstructured, error)

Lookup first unifies the instance with the cluster state, and then does a lookup of path in the unified instance if the value is concrete, the unstructured representation will be returned.

type Interface added in v0.3.0

type Interface interface {
	Fill(queue workqueue.RateLimitingInterface) (total int, err error)
	Lookup(fromCluster map[*identity.Locator]*unstructured.Unstructured, path ...string) (*unstructured.Unstructured, error)
}

Jump to

Keyboard shortcuts

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