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

command

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 7 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"`
	AllowedCallers *set.Set[string] `yaml:"allowed_callers,omitempty" json:"allowed_callers,omitempty"`
	Handler        plugin.Handler   `yaml:"-" json:"-"`
	// contains filtered or unexported fields
}

func (*Command) Init

func (c *Command) Init() error

func (*Command) IsCallerAllowed added in v1.4.18

func (c *Command) IsCallerAllowed(user string) bool

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