Documentation ¶
Index ¶
- func FindTemplate(ctx context.Context, managementClient kube.Interface, ...) (*managementv1.DevPodWorkspaceTemplate, error)
- func GetLatestMatchedVersion(versions storagev1.VersionsAccessor, versionPattern string) (latestVersion storagev1.VersionAccessor, ...)
- func GetLatestVersion(versions storagev1.VersionsAccessor) storagev1.VersionAccessor
- func GetTemplateParameters(template *managementv1.DevPodWorkspaceTemplate, templateVersion string) ([]storagev1.AppParameter, error)
- func NewListCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewProjectsCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewTemplateOptionsCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewTemplateOptionsVersionCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewTemplatesCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func VariableToEnvironmentVariable(variable string) string
- type Option
- type OptionsFormat
- type ProjectsCmd
- type TemplateOptionsCmd
- type TemplateOptionsVersionCmd
- type TemplatesCmd
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 GetLatestVersion ¶
func GetLatestVersion(versions storagev1.VersionsAccessor) storagev1.VersionAccessor
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
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 ProjectsCmd ¶
type ProjectsCmd struct { *flags.GlobalFlags // contains filtered or unexported fields }
ProjectsCmd holds the cmd flags
type TemplateOptionsCmd ¶
type TemplateOptionsCmd struct { *flags.GlobalFlags // contains filtered or unexported fields }
TemplateOptionsCmd holds the cmd flags
type TemplateOptionsVersionCmd ¶
type TemplateOptionsVersionCmd struct { *flags.GlobalFlags // contains filtered or unexported fields }
TemplateOptionsVersionCmd holds the cmd flags
type TemplatesCmd ¶
type TemplatesCmd struct { *flags.GlobalFlags // contains filtered or unexported fields }
TemplatesCmd holds the cmd flags
Click to show internal directories.
Click to hide internal directories.