provision: github.com/digitalrebar/provision/cli Index | Files

package cli

import "github.com/digitalrebar/provision/cli"

DigitalRebar Provision CLI provides the core parts of the CLI. This CLI uses an access core based upon a set of generated files from the generated swagger.json file.

Index

Package Files

bootenv.go common.go contents.go doc.go events.go files.go info.go interfaces.go isos.go jobs.go lease.go machines.go params.go plugin_providers.go plugins.go prefs.go process_jobs.go profiles.go reservation.go stages.go subnet.go tasks.go template.go user.go

Variables

var (
    App = &cobra.Command{
        Use:   "drpcli",
        Short: "A CLI application for interacting with the DigitalRebar Provision API",
    }
)

func Create Uses

func Create(input string, ptrs CreateOps) (interface{}, error)

func Delete Uses

func Delete(id string, ptrs DeleteOps) (interface{}, error)

func Get Uses

func Get(id string, gptrs GetOp) (interface{}, error)

func Log Uses

func Log(uuid *strfmt.UUID, echo bool, s string, args ...interface{}) error

func MyUsage Uses

func MyUsage(c *cobra.Command) error

func PatchWithFunction Uses

func PatchWithFunction(key string, ptrs PatchWithOps, fn func(interface{}) (interface{}, bool)) error

The input function takes the object and returns the modified object and if the object changed.

func PatchWithString Uses

func PatchWithString(key, js string, ptrs PatchWithOps) error

func Update Uses

func Update(id, input string, ptrs ModOps, replace bool) (interface{}, error)

type BootEnvOps Uses

type BootEnvOps struct{ CommonOps }

func (BootEnvOps) Create Uses

func (be BootEnvOps) Create(obj interface{}) (interface{}, error)

func (BootEnvOps) Delete Uses

func (be BootEnvOps) Delete(id string) (interface{}, error)

func (BootEnvOps) Get Uses

func (be BootEnvOps) Get(id string) (interface{}, error)

func (BootEnvOps) GetId Uses

func (be BootEnvOps) GetId(obj interface{}) (string, error)

func (BootEnvOps) GetIndexes Uses

func (be BootEnvOps) GetIndexes() map[string]string

func (BootEnvOps) GetType Uses

func (be BootEnvOps) GetType() interface{}

func (BootEnvOps) List Uses

func (be BootEnvOps) List(parms map[string]string) (interface{}, error)

func (BootEnvOps) Patch Uses

func (be BootEnvOps) Patch(id string, obj interface{}) (interface{}, error)

func (BootEnvOps) Update Uses

func (be BootEnvOps) Update(id string, obj interface{}) (interface{}, error)

type CommandRunner Uses

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

func NewCommandRunner Uses

func NewCommandRunner(uuid *strfmt.UUID, name, content, loc string) (*CommandRunner, error)

func (*CommandRunner) ReadLog Uses

func (cr *CommandRunner) ReadLog()

func (*CommandRunner) ReadReply Uses

func (cr *CommandRunner) ReadReply()

func (*CommandRunner) Run Uses

func (cr *CommandRunner) Run() (failed, incomplete, reboot, poweroff, stop bool)

type CommonOps Uses

type CommonOps struct {
    Name         string
    SingularName string
}

func (CommonOps) GetName Uses

func (co CommonOps) GetName() string

func (CommonOps) GetSingularName Uses

func (co CommonOps) GetSingularName() string

type CommonTypeOps Uses

type CommonTypeOps interface {
    GetType() interface{}
    GetId(interface{}) (string, error)
}

type ContentOps Uses

type ContentOps struct{ CommonOps }

func (ContentOps) Create Uses

func (be ContentOps) Create(obj interface{}) (interface{}, error)

func (ContentOps) Delete Uses

func (be ContentOps) Delete(id string) (interface{}, error)

func (ContentOps) Get Uses

func (be ContentOps) Get(id string) (interface{}, error)

func (ContentOps) GetId Uses

func (be ContentOps) GetId(obj interface{}) (string, error)

func (ContentOps) GetIndexes Uses

func (be ContentOps) GetIndexes() map[string]string

func (ContentOps) GetType Uses

func (be ContentOps) GetType() interface{}

func (ContentOps) List Uses

func (be ContentOps) List(parms map[string]string) (interface{}, error)

func (ContentOps) Update Uses

func (be ContentOps) Update(id string, obj interface{}) (interface{}, error)

type CreateOps Uses

type CreateOps interface {
    ICommonOps
    CommonTypeOps
    Create(interface{}) (interface{}, error)
}

type DeleteOps Uses

type DeleteOps interface {
    ICommonOps
    Delete(string) (interface{}, error)
}

type FileOps Uses

type FileOps struct{ CommonOps }

func (FileOps) Delete Uses

func (be FileOps) Delete(id string) (interface{}, error)

func (FileOps) Get Uses

func (be FileOps) Get(path string) (interface{}, error)

func (FileOps) GetIndexes Uses

func (be FileOps) GetIndexes() map[string]string

func (FileOps) List Uses

func (be FileOps) List(parms map[string]string) (interface{}, error)

func (FileOps) Upload Uses

func (be FileOps) Upload(path string, f *os.File) (interface{}, error)

type GetOp Uses

type GetOp interface {
    ICommonOps
    Get(string) (interface{}, error)
    GetIndexes() map[string]string
}

type ICommonOps Uses

type ICommonOps interface {
    GetName() string
    GetSingularName() string
}

type InterfaceOps Uses

type InterfaceOps struct{ CommonOps }

func (InterfaceOps) Get Uses

func (be InterfaceOps) Get(id string) (interface{}, error)

func (InterfaceOps) GetIndexes Uses

func (be InterfaceOps) GetIndexes() map[string]string

func (InterfaceOps) List Uses

func (be InterfaceOps) List(parms map[string]string) (interface{}, error)

type IsoOps Uses

type IsoOps struct{ CommonOps }

func (IsoOps) Delete Uses

func (be IsoOps) Delete(id string) (interface{}, error)

func (IsoOps) GetIndexes Uses

func (be IsoOps) GetIndexes() map[string]string

func (IsoOps) List Uses

func (be IsoOps) List(parms map[string]string) (interface{}, error)

func (IsoOps) Upload Uses

func (be IsoOps) Upload(path string, f *os.File) (interface{}, error)

type JobOps Uses

type JobOps struct{ CommonOps }

func (JobOps) Create Uses

func (be JobOps) Create(obj interface{}) (interface{}, error)

func (JobOps) Delete Uses

func (be JobOps) Delete(id string) (interface{}, error)

func (JobOps) Get Uses

func (be JobOps) Get(id string) (interface{}, error)

func (JobOps) GetId Uses

func (be JobOps) GetId(obj interface{}) (string, error)

func (JobOps) GetIndexes Uses

func (be JobOps) GetIndexes() map[string]string

func (JobOps) GetType Uses

func (be JobOps) GetType() interface{}

func (JobOps) List Uses

func (be JobOps) List(parms map[string]string) (interface{}, error)

func (JobOps) Patch Uses

func (be JobOps) Patch(id string, obj interface{}) (interface{}, error)

type LeaseOps Uses

type LeaseOps struct{ CommonOps }

func (LeaseOps) Create Uses

func (be LeaseOps) Create(obj interface{}) (interface{}, error)

func (LeaseOps) Delete Uses

func (be LeaseOps) Delete(id string) (interface{}, error)

func (LeaseOps) Get Uses

func (be LeaseOps) Get(id string) (interface{}, error)

func (LeaseOps) GetId Uses

func (be LeaseOps) GetId(obj interface{}) (string, error)

func (LeaseOps) GetIndexes Uses

func (be LeaseOps) GetIndexes() map[string]string

func (LeaseOps) GetType Uses

func (be LeaseOps) GetType() interface{}

func (LeaseOps) List Uses

func (be LeaseOps) List(parms map[string]string) (interface{}, error)

func (LeaseOps) Patch Uses

func (be LeaseOps) Patch(id string, obj interface{}) (interface{}, error)

type ListOp Uses

type ListOp interface {
    ICommonOps
    List(params map[string]string) (interface{}, error)
    GetIndexes() map[string]string
}

type MachineOps Uses

type MachineOps struct{ CommonOps }

func (MachineOps) Create Uses

func (be MachineOps) Create(obj interface{}) (interface{}, error)

func (MachineOps) Delete Uses

func (be MachineOps) Delete(id string) (interface{}, error)

func (MachineOps) DoWait Uses

func (be MachineOps) DoWait(id, field, value string, timeout int64) (string, error)

func (MachineOps) Get Uses

func (be MachineOps) Get(id string) (interface{}, error)

func (MachineOps) GetId Uses

func (be MachineOps) GetId(obj interface{}) (string, error)

func (MachineOps) GetIndexes Uses

func (be MachineOps) GetIndexes() map[string]string

func (MachineOps) GetType Uses

func (be MachineOps) GetType() interface{}

func (MachineOps) List Uses

func (be MachineOps) List(parms map[string]string) (interface{}, error)

func (MachineOps) Patch Uses

func (be MachineOps) Patch(id string, obj interface{}) (interface{}, error)

type ModOps Uses

type ModOps interface {
    ICommonOps
    CommonTypeOps
}

type ParamOps Uses

type ParamOps struct{ CommonOps }

func (ParamOps) Create Uses

func (be ParamOps) Create(obj interface{}) (interface{}, error)

func (ParamOps) Delete Uses

func (be ParamOps) Delete(id string) (interface{}, error)

func (ParamOps) Get Uses

func (be ParamOps) Get(id string) (interface{}, error)

func (ParamOps) GetId Uses

func (be ParamOps) GetId(obj interface{}) (string, error)

func (ParamOps) GetIndexes Uses

func (be ParamOps) GetIndexes() map[string]string

func (ParamOps) GetType Uses

func (be ParamOps) GetType() interface{}

func (ParamOps) List Uses

func (be ParamOps) List(parms map[string]string) (interface{}, error)

func (ParamOps) Patch Uses

func (be ParamOps) Patch(id string, obj interface{}) (interface{}, error)

type PatchOps Uses

type PatchOps interface {
    ModOps
    Patch(string, interface{}) (interface{}, error)
}

type PatchWithOps Uses

type PatchWithOps interface {
    ModOps
    Get(string) (interface{}, error)
    Patch(string, interface{}) (interface{}, error)
}

type Payloader Uses

type Payloader interface {
    GetPayload() interface{}
}

type PluginOps Uses

type PluginOps struct{ CommonOps }

func (PluginOps) Create Uses

func (be PluginOps) Create(obj interface{}) (interface{}, error)

func (PluginOps) Delete Uses

func (be PluginOps) Delete(id string) (interface{}, error)

func (PluginOps) Get Uses

func (be PluginOps) Get(id string) (interface{}, error)

func (PluginOps) GetId Uses

func (be PluginOps) GetId(obj interface{}) (string, error)

func (PluginOps) GetIndexes Uses

func (be PluginOps) GetIndexes() map[string]string

func (PluginOps) GetType Uses

func (be PluginOps) GetType() interface{}

func (PluginOps) List Uses

func (be PluginOps) List(parms map[string]string) (interface{}, error)

func (PluginOps) Patch Uses

func (be PluginOps) Patch(id string, obj interface{}) (interface{}, error)

type PluginProviderOps Uses

type PluginProviderOps struct{ CommonOps }

func (PluginProviderOps) Delete Uses

func (be PluginProviderOps) Delete(name string) (interface{}, error)

func (PluginProviderOps) Get Uses

func (be PluginProviderOps) Get(id string) (interface{}, error)

func (PluginProviderOps) GetIndexes Uses

func (be PluginProviderOps) GetIndexes() map[string]string

func (PluginProviderOps) List Uses

func (be PluginProviderOps) List(parms map[string]string) (interface{}, error)

func (PluginProviderOps) Upload Uses

func (be PluginProviderOps) Upload(name string, f *os.File) (interface{}, error)

type ProfileOps Uses

type ProfileOps struct{ CommonOps }

func (ProfileOps) Create Uses

func (be ProfileOps) Create(obj interface{}) (interface{}, error)

func (ProfileOps) Delete Uses

func (be ProfileOps) Delete(id string) (interface{}, error)

func (ProfileOps) Get Uses

func (be ProfileOps) Get(id string) (interface{}, error)

func (ProfileOps) GetId Uses

func (be ProfileOps) GetId(obj interface{}) (string, error)

func (ProfileOps) GetIndexes Uses

func (be ProfileOps) GetIndexes() map[string]string

func (ProfileOps) GetType Uses

func (be ProfileOps) GetType() interface{}

func (ProfileOps) List Uses

func (be ProfileOps) List(parms map[string]string) (interface{}, error)

func (ProfileOps) Patch Uses

func (be ProfileOps) Patch(id string, obj interface{}) (interface{}, error)

type ReservationOps Uses

type ReservationOps struct{ CommonOps }

func (ReservationOps) Create Uses

func (be ReservationOps) Create(obj interface{}) (interface{}, error)

func (ReservationOps) Delete Uses

func (be ReservationOps) Delete(id string) (interface{}, error)

func (ReservationOps) Get Uses

func (be ReservationOps) Get(id string) (interface{}, error)

func (ReservationOps) GetId Uses

func (be ReservationOps) GetId(obj interface{}) (string, error)

func (ReservationOps) GetIndexes Uses

func (be ReservationOps) GetIndexes() map[string]string

func (ReservationOps) GetType Uses

func (be ReservationOps) GetType() interface{}

func (ReservationOps) List Uses

func (be ReservationOps) List(parms map[string]string) (interface{}, error)

func (ReservationOps) Patch Uses

func (be ReservationOps) Patch(id string, obj interface{}) (interface{}, error)

type StageOps Uses

type StageOps struct{ CommonOps }

func (StageOps) Create Uses

func (be StageOps) Create(obj interface{}) (interface{}, error)

func (StageOps) Delete Uses

func (be StageOps) Delete(id string) (interface{}, error)

func (StageOps) Get Uses

func (be StageOps) Get(id string) (interface{}, error)

func (StageOps) GetId Uses

func (be StageOps) GetId(obj interface{}) (string, error)

func (StageOps) GetIndexes Uses

func (be StageOps) GetIndexes() map[string]string

func (StageOps) GetType Uses

func (be StageOps) GetType() interface{}

func (StageOps) List Uses

func (be StageOps) List(parms map[string]string) (interface{}, error)

func (StageOps) Patch Uses

func (be StageOps) Patch(id string, obj interface{}) (interface{}, error)

type SubnetOps Uses

type SubnetOps struct{ CommonOps }

func (SubnetOps) Create Uses

func (be SubnetOps) Create(obj interface{}) (interface{}, error)

func (SubnetOps) Delete Uses

func (be SubnetOps) Delete(id string) (interface{}, error)

func (SubnetOps) Get Uses

func (be SubnetOps) Get(id string) (interface{}, error)

func (SubnetOps) GetId Uses

func (be SubnetOps) GetId(obj interface{}) (string, error)

func (SubnetOps) GetIndexes Uses

func (be SubnetOps) GetIndexes() map[string]string

func (SubnetOps) GetType Uses

func (be SubnetOps) GetType() interface{}

func (SubnetOps) List Uses

func (be SubnetOps) List(parms map[string]string) (interface{}, error)

func (SubnetOps) Patch Uses

func (be SubnetOps) Patch(id string, obj interface{}) (interface{}, error)

type TaskOps Uses

type TaskOps struct{ CommonOps }

func (TaskOps) Create Uses

func (be TaskOps) Create(obj interface{}) (interface{}, error)

func (TaskOps) Delete Uses

func (be TaskOps) Delete(id string) (interface{}, error)

func (TaskOps) Get Uses

func (be TaskOps) Get(id string) (interface{}, error)

func (TaskOps) GetId Uses

func (be TaskOps) GetId(obj interface{}) (string, error)

func (TaskOps) GetIndexes Uses

func (be TaskOps) GetIndexes() map[string]string

func (TaskOps) GetType Uses

func (be TaskOps) GetType() interface{}

func (TaskOps) List Uses

func (be TaskOps) List(parms map[string]string) (interface{}, error)

func (TaskOps) Patch Uses

func (be TaskOps) Patch(id string, obj interface{}) (interface{}, error)

type TemplateOps Uses

type TemplateOps struct{ CommonOps }

func (TemplateOps) Create Uses

func (be TemplateOps) Create(obj interface{}) (interface{}, error)

func (TemplateOps) Delete Uses

func (be TemplateOps) Delete(id string) (interface{}, error)

func (TemplateOps) Get Uses

func (be TemplateOps) Get(id string) (interface{}, error)

func (TemplateOps) GetId Uses

func (be TemplateOps) GetId(obj interface{}) (string, error)

func (TemplateOps) GetIndexes Uses

func (be TemplateOps) GetIndexes() map[string]string

func (TemplateOps) GetType Uses

func (be TemplateOps) GetType() interface{}

func (TemplateOps) List Uses

func (be TemplateOps) List(parms map[string]string) (interface{}, error)

func (TemplateOps) Patch Uses

func (be TemplateOps) Patch(id string, obj interface{}) (interface{}, error)

func (TemplateOps) Upload Uses

func (be TemplateOps) Upload(id string, f *os.File) (interface{}, error)

type UpdateOps Uses

type UpdateOps interface {
    ModOps
    Update(string, interface{}) (interface{}, error)
}

type UploadOp Uses

type UploadOp interface {
    ICommonOps
    Upload(string, *os.File) (interface{}, error)
}

type UserOps Uses

type UserOps struct{ CommonOps }

func (UserOps) Create Uses

func (be UserOps) Create(obj interface{}) (interface{}, error)

func (UserOps) Delete Uses

func (be UserOps) Delete(id string) (interface{}, error)

func (UserOps) Get Uses

func (be UserOps) Get(id string) (interface{}, error)

func (UserOps) GetId Uses

func (be UserOps) GetId(obj interface{}) (string, error)

func (UserOps) GetIndexes Uses

func (be UserOps) GetIndexes() map[string]string

func (UserOps) GetType Uses

func (be UserOps) GetType() interface{}

func (UserOps) List Uses

func (be UserOps) List(parms map[string]string) (interface{}, error)

func (UserOps) Patch Uses

func (be UserOps) Patch(id string, obj interface{}) (interface{}, error)

Package cli imports 60 packages (graph). Updated 2017-10-23. Refresh now. Tools for package owners.