agent

package
v0.0.0-...-8d49010 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MIT Imports: 13 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 {
	ID        string
	Ident     types.NamespacedName
	Logs      logr.Logger
	Client    *client.Client
	ClientSet *kubernetes.Clientset
	Interval  int
	Server    http.Server
	Auth      Auth
	Monitor   Monitor
	Status    Status
	// contains filtered or unexported fields
}

func NewAgent

func NewAgent() *Agent

func (*Agent) Background

func (a *Agent) Background()

func (*Agent) Start

func (a *Agent) Start()

func (*Agent) Stop

func (a *Agent) Stop()

type Auth

type Auth struct {
	Get   func(i types.NamespacedName, l logr.Logger, c *client.Client) (interface{}, error)
	Check func(i types.NamespacedName, l logr.Logger, c *client.Client) (interface{}, error)
	Sync  func(i types.NamespacedName, l logr.Logger, c *client.Client, o interface{}, n interface{}) error
}

type Monitor

type Monitor struct {
	Metrics func(i types.NamespacedName, l logr.Logger, c *client.Client) http.Handler
	Healthy func(i types.NamespacedName, l logr.Logger, c *client.Client) http.Handler
}

type Status

type Status struct {
	Details func(i types.NamespacedName, l logr.Logger, c *client.Client) error
	Phase   func(i types.NamespacedName, l logr.Logger, c *client.Client) error
}

Jump to

Keyboard shortcuts

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