agent

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Address = "/tmp/cloudagent/cloudagent.sock"
	Network = "unix"
)

Variables

This section is empty.

Functions

func NewServer

func NewServer(opts *ServerOption) cloud_agent.AgentServer

func NewSocket

func NewSocket(network, address string) (net.Listener, error)

func NewWatcher

func NewWatcher(opts WatcherOptions, fn ...WatchFn) (*cron.Cron, error)

Types

type ServerOption

type ServerOption struct {
	Getter StateGetter
	Logger *logrus.Logger
}

type StateGetter

type StateGetter interface {
	Get() *v1beta1.ShootList
}

type WatchFn

type WatchFn func(context.Context)

type WatcherOptions

type WatcherOptions struct {
	Spec    string
	Context context.Context
	Logger  *logrus.Logger
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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