list

package
v0.5.8-alpha.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindTemplate

func FindTemplate(ctx context.Context, managementClient kube.Interface, projectName, templateName string) (*managementv1.DevPodWorkspaceTemplate, error)

func GetLatestMatchedVersion

func GetLatestMatchedVersion(versions storagev1.VersionsAccessor, versionPattern string) (latestVersion storagev1.VersionAccessor, latestMatchedVersion storagev1.VersionAccessor, err error)

func GetTemplateParameters

func GetTemplateParameters(template *managementv1.DevPodWorkspaceTemplate, templateVersion string) ([]storagev1.AppParameter, error)

func NewListCmd

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

NewListCmd creates a new cobra command

func NewProjectsCmd

func NewProjectsCmd(globalFlags *flags.GlobalFlags) *cobra.Command

NewProjectsCmd creates a new command

func NewTemplateOptionsCmd

func NewTemplateOptionsCmd(globalFlags *flags.GlobalFlags) *cobra.Command

NewTemplateOptionsCmd creates a new command

func NewTemplateOptionsVersionCmd

func NewTemplateOptionsVersionCmd(globalFlags *flags.GlobalFlags) *cobra.Command

NewTemplateOptionsVersionCmd creates a new command

func NewTemplatesCmd

func NewTemplatesCmd(globalFlags *flags.GlobalFlags) *cobra.Command

NewTemplatesCmd creates a new command

func VariableToEnvironmentVariable

func VariableToEnvironmentVariable(variable string) string

Types

type Option

type Option struct {
	// DisplayName of the option, preferred over the option name by a supporting tool.
	DisplayName string `json:"displayName,omitempty"`

	// A description of the option displayed to the user by a supporting tool.
	Description string `json:"description,omitempty"`

	// If required is true and the user doesn't supply a value, devpod will ask the user
	Required bool `json:"required,omitempty"`

	// Suggestions are suggestions to show in the DevPod UI for this option
	Suggestions []string `json:"suggestions,omitempty"`

	// Allowed values for this option.
	Enum []string `json:"enum,omitempty"`

	// Default value if the user omits this option from their configuration.
	Default string `json:"default,omitempty"`

	// SubOptionsCommand is the command to run to fetch sub options
	SubOptionsCommand string `json:"subOptionsCommand,omitempty"`

	// Mutable specifies if an option can be changed on the workspace or machine after creating it
	Mutable bool `json:"mutable,omitempty"`
}

type OptionsFormat

type OptionsFormat struct {
	// Options holds the provider options
	Options map[string]*Option `json:"options,omitempty"`
}

type ProjectsCmd

type ProjectsCmd struct {
	*flags.GlobalFlags
	// contains filtered or unexported fields
}

ProjectsCmd holds the cmd flags

func (*ProjectsCmd) Run

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

type TemplateOptionsCmd

type TemplateOptionsCmd struct {
	*flags.GlobalFlags
	// contains filtered or unexported fields
}

TemplateOptionsCmd holds the cmd flags

func (*TemplateOptionsCmd) Run

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

type TemplateOptionsVersionCmd

type TemplateOptionsVersionCmd struct {
	*flags.GlobalFlags
	// contains filtered or unexported fields
}

TemplateOptionsVersionCmd holds the cmd flags

func (*TemplateOptionsVersionCmd) Run

type TemplatesCmd

type TemplatesCmd struct {
	*flags.GlobalFlags
	// contains filtered or unexported fields
}

TemplatesCmd holds the cmd flags

func (*TemplatesCmd) Run

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

Jump to

Keyboard shortcuts

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