agent

package
v0.0.0-...-699ca5e Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MPL-2.0 Imports: 12 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 {
	Client *kubernetes.Clientset
	Sdk    *sdk.Sdk
	// contains filtered or unexported fields
}

func New

func New(client *kubernetes.Clientset, sdk *sdk.Sdk) (*Agent, error)

func (*Agent) Handle

func (a *Agent) Handle(run sdk.Run) error

func (*Agent) PollLogs

func (a *Agent) PollLogs(closer io.ReadCloser) error

func (*Agent) RegisterSink

func (a *Agent) RegisterSink(sink io.Writer)

func (*Agent) Run

func (a *Agent) Run() error

func (*Agent) Write

func (a *Agent) Write(p []byte) (int, error)

type ChangeSink

type ChangeSink struct {
	Sdk   *sdk.Sdk
	RunId string
}

func (ChangeSink) Write

func (sink ChangeSink) Write(p []byte) (int, error)

type ChangeSummary

type ChangeSummary struct {
	Type    string              `json:"type"`
	Changes ChangeSummaryChange `json:"changes"`
}

type ChangeSummaryChange

type ChangeSummaryChange struct {
	Add       int    `json:"add"`
	Change    int    `json:"change"`
	Remove    int    `json:"remove"`
	Import    int    `json:"import"`
	Operation string `json:"operation"`
}

Jump to

Keyboard shortcuts

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