agentk

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

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

func New

func New(config Config) *Agent

func (*Agent) Run

func (a *Agent) Run(ctx context.Context) error

type Config added in v0.0.7

type Config struct {
	Log                                *zap.Logger
	LogLevel                           zap.AtomicLevel
	KasClient                          agentrpc.KasClient
	EngineFactory                      GitOpsEngineFactory
	K8sClientGetter                    resource.RESTClientGetter
	RefreshConfigurationRetryPeriod    time.Duration
	GetObjectsToSynchronizeRetryPeriod time.Duration
}

type DefaultGitOpsEngineFactory

type DefaultGitOpsEngineFactory struct {
	KubeClientConfig *rest.Config
}

func (*DefaultGitOpsEngineFactory) New

type GitOpsEngineFactory

type GitOpsEngineFactory interface {
	New(engineOpts []engine.Option, cacheOpts []cache.UpdateSettingsFunc) engine.GitOpsEngine
}

Jump to

Keyboard shortcuts

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