capabilities

package
v0.0.0-...-2a71758 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

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