Documentation
¶
Index ¶
- Variables
- type Agent
- func (a *Agent) Apply(app *metaserver.Application) error
- func (a *Agent) CloseApplication(appID string)
- func (a *Agent) GC()
- func (a *Agent) Generate(ctx context.Context, verb metaserver.ApplicationVerb, option interface{}, ...) (*metaserver.Application, error)
- func (a *Agent) SyncWatchAppOnConnected()
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 (*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()
Click to show internal directories.
Click to hide internal directories.