common

package
v0.0.0-...-2828018 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModePoll  = "poll"
	ModeWatch = "watch"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentHandler

type AgentHandler interface {
	PreHandle(ctx context.Context) error
	SetRunMode(mode string)
	PostHandle(param *HandlerParam, ctx context.Context) error
	AfterCompletion(ctx context.Context) error
}

type App

type App struct {
	AppId        string
	Namespaces   []string
	Secret       string
	PollInterval time.Duration
	FileName     string
	Syntax       string
}

type HandlerParam

type HandlerParam struct {
	Address  string
	Cluster  string
	ClientIp string
	AllInOne bool
	Apps     []*App
}

Jump to

Keyboard shortcuts

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