plug

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

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(app xtypes.App) xinstance.Instancer

Types

type PlugInstancer

type PlugInstancer struct {
	// contains filtered or unexported fields
}

func (*PlugInstancer) Instance

func (pi *PlugInstancer) Instance(opts xinstance.Options) (*xinstance.Response, error)

type PlugOptions

type PlugOptions struct {
	Id string `json:"id,omitempty"`
}

type PlugResponse

type PlugResponse struct {
	Agents           []string                     `json:"agents,omitempty"`
	Resources        []string                     `json:"resources,omitempty"`
	ErrAgents        map[string]string            `json:"err_agents,omitempty"`
	ErrAgentResource map[string]map[string]string `json:"err_agent_resources,omitempty"`
}

func (*PlugResponse) AddAgentErr

func (pr *PlugResponse) AddAgentErr(agent string, err error)

func (*PlugResponse) AddResourceErr

func (pr *PlugResponse) AddResourceErr(agent, res string, err error)

Jump to

Keyboard shortcuts

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