Documentation
¶
Index ¶
- Constants
- Variables
- func NewCheckUpdateCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewHealthCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewListCmd(flags *proflags.GlobalFlags) *cobra.Command
- func NewLoginCmd(flags *proflags.GlobalFlags) *cobra.Command
- func NewLogoutCmd(flags *proflags.GlobalFlags) *cobra.Command
- func NewProCmd(flags *flags.GlobalFlags) *cobra.Command
- func NewSelfCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewStartCmd(flags *proflags.GlobalFlags) *cobra.Command
- func NewUpdateProviderCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewVersionCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func PrintSuccessMessageDockerInstall(host, password string)
- func WrapCommandError(stdout []byte, err error) error
- type Capability
- type CheckUpdateCmd
- type ContainerDetails
- type ContainerDetailsConfig
- type ContainerDetailsState
- type ContainerNetworkSettings
- type ContainerPort
- type Error
- type HealthCmd
- type ListCmd
- type LoginCmd
- type LogoutCmd
- type ProviderUpdateInfo
- type SelfCmd
- type StartCmd
- type UpdateProviderCmd
- type VersionCmd
Constants ¶
View Source
const (
LoftRouterDomainSecret = "loft-router-domain" // #nosec G101
)
View Source
const (
PROVIDER_BINARY = "PRO_PROVIDER"
)
Variables ¶
View Source
var ( ErrMissingContainer = errors.New("missing container") ErrLoftNotReachable = errors.New("Devsy Pro is not reachable") )
Functions ¶
func NewCheckUpdateCmd ¶
func NewCheckUpdateCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewCheckUpdateCmd creates a new command.
func NewHealthCmd ¶ added in v1.3.1
func NewHealthCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewHealthCmd 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 NewLogoutCmd ¶ added in v1.3.1
func NewLogoutCmd(flags *proflags.GlobalFlags) *cobra.Command
NewLogoutCmd creates a new command.
func NewProCmd ¶
func NewProCmd(flags *flags.GlobalFlags) *cobra.Command
NewProCmd returns a new command.
func NewSelfCmd ¶
func NewSelfCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewSelfCmd creates a new command.
func NewStartCmd ¶
func NewStartCmd(flags *proflags.GlobalFlags) *cobra.Command
NewStartCmd creates a new command.
func NewUpdateProviderCmd ¶
func NewUpdateProviderCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewUpdateProviderCmd creates a new command.
func NewVersionCmd ¶
func NewVersionCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewVersionCmd creates a new command.
func PrintSuccessMessageDockerInstall ¶
func PrintSuccessMessageDockerInstall(host, password string)
func WrapCommandError ¶
Types ¶
type Capability ¶
type Capability string
type CheckUpdateCmd ¶
type CheckUpdateCmd struct {
*flags.GlobalFlags
Host string
}
CheckUpdateCmd holds the cmd flags.
func (*CheckUpdateCmd) Run ¶
func (cmd *CheckUpdateCmd) Run( ctx context.Context, devsyConfig *config.Config, provider *provider.ProviderConfig, ) error
type ContainerDetails ¶
type ContainerDetails struct {
NetworkSettings ContainerNetworkSettings `json:"NetworkSettings"`
State ContainerDetailsState `json:"State"`
ID string `json:"ID,omitempty"`
Created string `json:"Created,omitempty"`
Config ContainerDetailsConfig `json:"Config"`
}
type ContainerDetailsConfig ¶
type ContainerDetailsState ¶
type ContainerNetworkSettings ¶
type ContainerNetworkSettings struct {
Ports map[string][]ContainerPort `json:"ports,omitempty"`
}
type ContainerPort ¶
type HealthCmd ¶ added in v1.3.1
type HealthCmd struct {
*flags.GlobalFlags
Host string
}
HealthCmd holds the cmd flags.
type ListCmd ¶
type ListCmd struct {
proflags.GlobalFlags
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
ForceBrowser bool
}
LoginCmd holds the login cmd flags.
type LogoutCmd ¶ added in v1.3.1
type LogoutCmd struct {
*proflags.GlobalFlags
IgnoreNotFound bool
}
LogoutCmd holds the logout cmd flags.
type ProviderUpdateInfo ¶
type StartCmd ¶
type StartCmd struct {
proflags.GlobalFlags
KubeClient kubernetes.Interface
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.
type UpdateProviderCmd ¶
type UpdateProviderCmd struct {
*flags.GlobalFlags
Host string
Instance string
}
UpdateProviderCmd holds the cmd flags.
type VersionCmd ¶
type VersionCmd struct {
*flags.GlobalFlags
Host string
}
VersionCmd holds the cmd flags.
func (*VersionCmd) Run ¶
func (cmd *VersionCmd) Run( ctx context.Context, devsyConfig *config.Config, providerConfig *provider.ProviderConfig, ) error
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package proutil contains shared helpers used by the 'devsy pro' command and its resource sub-groups (workspace, cluster, project, template).
|
Package proutil contains shared helpers used by the 'devsy pro' command and its resource sub-groups (workspace, cluster, project, template). |
Click to show internal directories.
Click to hide internal directories.