engine

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 13 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitOpsEngine

type GitOpsEngine interface {
	// Run initializes engine
	Run() (StopFunc, error)
	// Synchronizes resources in the cluster
	Sync(ctx context.Context, resources []*unstructured.Unstructured, isManaged func(r *cache.Resource) bool, revision string, namespace string, opts ...sync.SyncOpt) ([]common.ResourceSyncResult, error)
}

func NewEngine

func NewEngine(config *rest.Config, clusterCache cache.ClusterCache, opts ...Option) GitOpsEngine

NewEngine creates new instances of the GitOps engine

type Option added in v0.2.0

type Option func(*options)

func SetTracer added in v0.2.0

func SetTracer(tracer tracing.Tracer) Option

SetTracer sets the tracer to use.

func WithKubectl added in v0.2.0

func WithKubectl(kubectl kube.Kubectl) Option

WithKubectl allows to override kubectl wrapper implementation.

func WithLogr added in v0.2.0

func WithLogr(log logr.Logger) Option

type StopFunc added in v0.2.0

type StopFunc func()

Jump to

Keyboard shortcuts

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