cfglxccmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainerCmd

func ContainerCmd() *cobra.Command

func InterfaceCmd

func InterfaceCmd() *cobra.Command

func ProfileCmd

func ProfileCmd() *cobra.Command

func RootCmd

func RootCmd(name string) *cobra.Command

Types

type Command

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

func (*Command) Client

func (c *Command) Client() (*lxdlib.Client, error)

func (*Command) Init

func (c *Command) Init()

func (*Command) SetFlags

func (c *Command) SetFlags(cmd *cobra.Command) *cobra.Command

type ContainerCommand

type ContainerCommand struct {
	Command
	// contains filtered or unexported fields
}

func (*ContainerCommand) Create

func (c *ContainerCommand) Create(name string) error

func (*ContainerCommand) Delete

func (c *ContainerCommand) Delete(name string) error

func (*ContainerCommand) SetFlags

func (c *ContainerCommand) SetFlags(cmd *cobra.Command) *cobra.Command

type InterfaceCommand

type InterfaceCommand struct {
	Command
	// contains filtered or unexported fields
}

func (*InterfaceCommand) Add

func (c *InterfaceCommand) Add(name string, ifname string, hwaddr string) error

func (*InterfaceCommand) Delete

func (c *InterfaceCommand) Delete(name string, ifname string) error

func (*InterfaceCommand) Set

func (c *InterfaceCommand) Set(name string, ifname string, args []string) error

func (*InterfaceCommand) SetFlags

func (c *InterfaceCommand) SetFlags(cmd *cobra.Command) *cobra.Command

func (*InterfaceCommand) SetSetFlags

func (c *InterfaceCommand) SetSetFlags(cmd *cobra.Command) *cobra.Command

type ProfileCommand

type ProfileCommand struct {
	Command
	// contains filtered or unexported fields
}

func (*ProfileCommand) BackupPath

func (c *ProfileCommand) BackupPath(name string) string

func (*ProfileCommand) Clear

func (c *ProfileCommand) Clear(name string) error

func (*ProfileCommand) Load

func (c *ProfileCommand) Load(name string) error

func (*ProfileCommand) Save

func (c *ProfileCommand) Save(name string) error

func (*ProfileCommand) SetFlags

func (c *ProfileCommand) SetFlags(cmd *cobra.Command) *cobra.Command

Jump to

Keyboard shortcuts

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