Documentation
¶
Index ¶
- Constants
- Variables
- func LoftConfigPath(devPodConfig *config.Config, providerName string) (string, error)
- func NewDeleteCmd(flags *proflags.GlobalFlags) *cobra.Command
- func NewImportCmd(globalFlags *proflags.GlobalFlags) *cobra.Command
- func NewListCmd(flags *proflags.GlobalFlags) *cobra.Command
- func NewLoginCmd(flags *proflags.GlobalFlags) *cobra.Command
- func NewProCmd(flags *flags.GlobalFlags, streamLogger *log.StreamLogger) *cobra.Command
- func NewRebuildCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewStartCmd(flags *proflags.GlobalFlags) *cobra.Command
- func PrintSuccessMessageDockerInstall(host, password string, log log.Logger)
- func WrapCommandError(stdout []byte, err error) error
- type ContainerDetails
- type ContainerDetailsConfig
- type ContainerDetailsState
- type ContainerNetworkSettings
- type ContainerPort
- type DeleteCmd
- type Error
- type ImportCmd
- type ListCmd
- type LoginCmd
- type RebuildCmd
- type StartCmd
Constants ¶
View Source
const AllWorkspaces = "all"
View Source
const LoftRouterDomainSecret = "loft-router-domain"
View Source
const PROVIDER_BINARY = "PRO_PROVIDER"
Variables ¶
View Source
var ( ErrMissingContainer = errors.New("missing container") ErrLoftNotReachable = errors.New("DevPod Pro is not reachable") )
View Source
var CriticalStatus = map[string]bool{ "Error": true, "Unknown": true, "ImagePullBackOff": true, "CrashLoopBackOff": true, "RunContainerError": true, "ErrImagePull": true, "CreateContainerConfigError": true, "InvalidImageName": true, }
CriticalStatus container status
Functions ¶
func LoftConfigPath ¶ added in v0.5.11
func NewDeleteCmd ¶
func NewDeleteCmd(flags *proflags.GlobalFlags) *cobra.Command
NewDeleteCmd creates a new command
func NewImportCmd ¶
func NewImportCmd(globalFlags *proflags.GlobalFlags) *cobra.Command
NewImportCmd creates a new command
func NewListCmd ¶
func NewListCmd(flags *proflags.GlobalFlags) *cobra.Command
NewListCmd creates a new command
func NewLoginCmd ¶
func NewLoginCmd(flags *proflags.GlobalFlags) *cobra.Command
NewLoginCmd creates a new command
func NewProCmd ¶
func NewProCmd(flags *flags.GlobalFlags, streamLogger *log.StreamLogger) *cobra.Command
NewProCmd returns a new command
func NewRebuildCmd ¶ added in v0.5.9
func NewRebuildCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewRebuildCmd creates a new command
func NewStartCmd ¶ added in v0.5.8
func NewStartCmd(flags *proflags.GlobalFlags) *cobra.Command
NewStartCmd creates a new command
func PrintSuccessMessageDockerInstall ¶ added in v0.5.8
func WrapCommandError ¶ added in v0.5.8
Types ¶
type ContainerDetails ¶ added in v0.5.8
type ContainerDetails struct {
NetworkSettings ContainerNetworkSettings `json:"NetworkSettings,omitempty"`
State ContainerDetailsState `json:"State,omitempty"`
ID string `json:"ID,omitempty"`
Created string `json:"Created,omitempty"`
Config ContainerDetailsConfig `json:"Config,omitempty"`
}
type ContainerDetailsConfig ¶ added in v0.5.8
type ContainerDetailsState ¶ added in v0.5.8
type ContainerNetworkSettings ¶ added in v0.5.8
type ContainerNetworkSettings struct {
Ports map[string][]ContainerPort `json:"ports,omitempty"`
}
type ContainerPort ¶ added in v0.5.8
type DeleteCmd ¶
type DeleteCmd struct {
*proflags.GlobalFlags
IgnoreNotFound bool
}
DeleteCmd holds the delete cmd flags
type ImportCmd ¶
type ListCmd ¶
type ListCmd struct {
proflags.GlobalFlags
Output string
Login bool
}
ListCmd holds the list cmd flags
type LoginCmd ¶
type LoginCmd struct {
proflags.GlobalFlags
AccessKey string
Provider string
Version string
ProviderSource string
Options []string
Login bool
Use bool
}
LoginCmd holds the login cmd flags
type RebuildCmd ¶ added in v0.5.9
type RebuildCmd struct {
*flags.GlobalFlags
Log log.Logger
Project string
}
RebuildCmd holds the cmd flags
type StartCmd ¶ added in v0.5.8
type StartCmd struct {
proflags.GlobalFlags
KubeClient kubernetes.Interface
Log log.Logger
RestConfig *rest.Config
Context string
Values string
LocalPort string
Version string
DockerImage string
Namespace string
Password string
Host string
Email string
ChartRepo string
Product string
ChartName string
ChartPath string
DockerArgs []string
Reset bool
NoPortForwarding bool
NoTunnel bool
NoLogin bool
NoWait bool
Upgrade bool
ReuseValues bool
Docker bool
}
StartCmd holds the login cmd flags
Source Files
¶
Click to show internal directories.
Click to hide internal directories.