agent

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultAgent = NewApplicationAgent()

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Applications sync.Map //store struct application
	// contains filtered or unexported fields
}

Agent used for generating application and do apply

func NewApplicationAgent

func NewApplicationAgent() *Agent

NewApplicationAgent create edge agent for list/watch

func (*Agent) Apply

func (a *Agent) Apply(app *metaserver.Application) error

func (*Agent) CloseApplication

func (a *Agent) CloseApplication(appID string)

func (*Agent) GC

func (a *Agent) GC()

func (*Agent) Generate

func (a *Agent) Generate(ctx context.Context, verb metaserver.ApplicationVerb, option interface{}, obj runtime.Object) (*metaserver.Application, error)

func (*Agent) SyncWatchAppOnConnected

func (a *Agent) SyncWatchAppOnConnected()

Jump to

Keyboard shortcuts

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