provider

package
v0.5.24 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MPL-2.0 Imports: 22 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 ConfigureProvider added in v0.3.4

func ConfigureProvider(ctx context.Context, provider *provider2.ProviderConfig, context string, userOptions []string, reconfigure, skipInit bool, singleMachine *bool, log log.Logger) error

func DeleteProvider added in v0.3.4

func DeleteProvider(devPodConfig *config.Config, provider string, ignoreNotFound bool) error

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 NewListAvailableCmd added in v0.1.10

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

NewListAvailableCmd 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
	FromExisting 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

	IgnoreNotFound bool
}

DeleteCmd holds the delete cmd flags

func (*DeleteCmd) Run

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

type ListAvailableCmd added in v0.1.10

type ListAvailableCmd struct {
	flags.GlobalFlags
}

ListAvailableCmd holds the list cmd flags

func (*ListAvailableCmd) Run added in v0.1.10

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

Run runs the command logic

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

	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

	Dry bool

	Reconfigure   bool
	SingleMachine bool
	Options       []string
}

SetOptionsCmd holds the use cmd flags

func (*SetOptionsCmd) Run

func (cmd *SetOptionsCmd) Run(ctx context.Context, args []string, log log.Logger) 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

	// only for testing
	SkipInit bool
}

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