Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Command is the option for the plugin to print version Command = "capabilities" // TaskENICapability is the capability to support basic task-eni network mode TaskENICapability = "awsvpc-network-mode" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Capability ¶
type Capability struct {
Capabilities []string `json:"capabilities,omitempty"`
}
Capability indicates the capability of a plugin
func New ¶
func New(capabilities ...string) *Capability
New returns a Capability object with specified capabilities
func (*Capability) Print ¶
func (capability *Capability) Print() error
Print writes the supported capabilities info into the stdout
func (*Capability) String ¶
func (capability *Capability) String() (string, error)
String returns the JSON string of the Capability struct
Click to show internal directories.
Click to hide internal directories.