Help us shape the future of Go! Take the 2026 Go Developer Survey

command

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCommandIDsAreNotUnique = fmt.Errorf(`command IDs are not unique`)
)

Functions

This section is empty.

Types

type Command

type Command struct {
	object.Object `yaml:",inline" json:",inline"`
	Status        status.Status    `yaml:"status,omitempty" json:"status,omitempty"`
	Plugin        string           `yaml:"plugin,omitempty" json:"plugin,omitempty"`
	IsSync        bool             `yaml:"is_sync,omitempty" json:"is_sync,omitempty"`
	ClusterTags   *set.Set[string] `yaml:"cluster_tags,omitempty" json:"cluster_tags,omitempty"`
	Handler       plugin.Handler   `yaml:"-" json:"-"`
}

func (*Command) Init

func (c *Command) Init() error

type Commands

type Commands map[string]*Command

func (*Commands) UnmarshalYAML

func (c *Commands) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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