provider

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(useCmd *cobra.Command, cmd *UseCmd)

func NewAddCmd

func NewAddCmd(flags *flags.GlobalFlags) *cobra.Command

NewAddCmd creates a new command

func NewDeleteCmd

func NewDeleteCmd(flags *flags.GlobalFlags) *cobra.Command

NewDeleteCmd creates a new command

func NewListCmd

func NewListCmd(flags *flags.GlobalFlags) *cobra.Command

NewListCmd creates a new command

func NewOptionsCmd

func NewOptionsCmd(flags *flags.GlobalFlags) *cobra.Command

NewOptionsCmd creates a new command

func NewProviderCmd

func NewProviderCmd(flags *flags.GlobalFlags) *cobra.Command

NewProviderCmd returns a new root command

func NewSetOptionsCmd

func NewSetOptionsCmd(flags *flags.GlobalFlags) *cobra.Command

NewSetOptionsCmd creates a new command

func NewUpdateCmd

func NewUpdateCmd(flags *flags.GlobalFlags) *cobra.Command

NewUpdateCmd creates a new command

func NewUseCmd

func NewUseCmd(flags *flags.GlobalFlags) *cobra.Command

NewUseCmd creates a new command

Types

type AddCmd

type AddCmd struct {
	*flags.GlobalFlags

	Use           bool
	SingleMachine bool
	Options       []string

	Name string
}

AddCmd holds the cmd flags

func (*AddCmd) Run

func (cmd *AddCmd) Run(ctx context.Context, devPodConfig *config.Config, args []string) error

type DeleteCmd

type DeleteCmd struct {
	*flags.GlobalFlags
}

DeleteCmd holds the delete cmd flags

func (*DeleteCmd) Run

func (cmd *DeleteCmd) Run(ctx context.Context, args []string) error

type ListCmd

type ListCmd struct {
	flags.GlobalFlags

	Output string
	Used   bool
}

ListCmd holds the list cmd flags

func (*ListCmd) Run

func (cmd *ListCmd) Run(ctx context.Context) error

Run runs the command logic

type OptionsCmd

type OptionsCmd struct {
	*flags.GlobalFlags

	Prefill bool
	Hidden  bool
	Output  string
}

OptionsCmd holds the options cmd flags

func (*OptionsCmd) Run

func (cmd *OptionsCmd) Run(ctx context.Context, args []string) error

Run runs the command logic

type ProviderWithDefault

type ProviderWithDefault struct {
	workspace.ProviderWithOptions `json:",inline"`

	Default bool `json:"default,omitempty"`
}

type SetOptionsCmd

type SetOptionsCmd struct {
	flags.GlobalFlags

	Reconfigure   bool
	SingleMachine bool
	Options       []string
}

SetOptionsCmd holds the use cmd flags

func (*SetOptionsCmd) Run

func (cmd *SetOptionsCmd) Run(ctx context.Context, args []string) error

Run runs the command logic

type UpdateCmd

type UpdateCmd struct {
	*flags.GlobalFlags

	Use     bool
	Options []string
}

UpdateCmd holds the cmd flags

func (*UpdateCmd) Run

func (cmd *UpdateCmd) Run(ctx context.Context, devPodConfig *config.Config, args []string) error

type UseCmd

type UseCmd struct {
	flags.GlobalFlags

	Reconfigure   bool
	SingleMachine bool
	Options       []string
}

UseCmd holds the use cmd flags

func (*UseCmd) Run

func (cmd *UseCmd) Run(ctx context.Context, providerName string) error

Run runs the command logic

Jump to

Keyboard shortcuts

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