pro

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: MPL-2.0 Imports: 75 Imported by: 0

Documentation

Index

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")
)

Functions

func NewCheckHealthCmd

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

NewCheckHealthCmd creates a new command

func NewCheckUpdateCmd

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

NewCheckUpdateCmd creates a new command

func NewCreateWorkspaceCmd

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

NewCreateWorkspaceCmd creates a new command

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 NewListClustersCmd

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

NewListClustersCmd creates a new command

func NewListCmd

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

NewListCmd creates a new command

func NewListProjectsCmd

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

NewListProjectsCmd creates a new command

func NewListTemplatesCmd

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

NewListTemplatesCmd creates a new command

func NewListWorkspacesCmd

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

NewListWorkspacesCmd 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

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

NewRebuildCmd creates a new command

func NewSelfCmd

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

NewSelfCmd creates a new command

func NewSleepCmd

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

NewSleepCmd 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 NewUpdateWorkspaceCmd

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

NewUpdateWorkspaceCmd creates a new command

func NewVersionCmd

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

NewVersionCmd creates a new command

func NewWakeupCmd

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

NewWakeupCmd creates a new command

func NewWatchWorkspacesCmd

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

NewWatchWorkspacesCmd creates a new command

func PrintSuccessMessageDockerInstall

func PrintSuccessMessageDockerInstall(host, password string, log log.Logger)

func WrapCommandError

func WrapCommandError(stdout []byte, err error) error

Types

type Capability

type Capability string

type CheckHealthCmd

type CheckHealthCmd struct {
	*flags.GlobalFlags
	Log log.Logger

	Host string
}

CheckHealthCmd holds the cmd flags

func (*CheckHealthCmd) Run

func (cmd *CheckHealthCmd) Run(ctx context.Context, devPodConfig *config.Config, provider *provider.ProviderConfig) error

type CheckUpdateCmd

type CheckUpdateCmd struct {
	*flags.GlobalFlags
	Log log.Logger

	Host string
}

CheckUpdateCmd holds the cmd flags

func (*CheckUpdateCmd) Run

func (cmd *CheckUpdateCmd) Run(ctx context.Context, devPodConfig *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 ContainerDetailsConfig struct {
	Labels map[string]string `json:"Labels,omitempty"`
	Image  string            `json:"Image,omitempty"`
	User   string            `json:"User,omitempty"`
	Env    []string          `json:"Env,omitempty"`
}

type ContainerDetailsState

type ContainerDetailsState struct {
	Status    string `json:"Status,omitempty"`
	StartedAt string `json:"StartedAt,omitempty"`
}

type ContainerNetworkSettings

type ContainerNetworkSettings struct {
	Ports map[string][]ContainerPort `json:"ports,omitempty"`
}

type ContainerPort

type ContainerPort struct {
	HostIP   string `json:"HostIp,omitempty"`
	HostPort string `json:"HostPort,omitempty"`
}

type CreateWorkspaceCmd

type CreateWorkspaceCmd struct {
	*flags.GlobalFlags
	Log log.Logger

	Host     string
	Instance string
}

CreateWorkspaceCmd holds the cmd flags

func (*CreateWorkspaceCmd) Run

func (cmd *CreateWorkspaceCmd) Run(ctx context.Context, devPodConfig *config.Config, provider *provider.ProviderConfig) error

type DeleteCmd

type DeleteCmd struct {
	*proflags.GlobalFlags

	IgnoreNotFound bool
}

DeleteCmd holds the delete cmd flags

func (*DeleteCmd) Run

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

type Error

type Error struct {
	// contains filtered or unexported fields
}

func (*Error) Error

func (e *Error) Error() string

type ImportCmd

type ImportCmd struct {
	*proflags.GlobalFlags

	WorkspaceId      string
	WorkspaceUid     string
	WorkspaceProject string

	Own bool
	// contains filtered or unexported fields
}

func (*ImportCmd) Run

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

type ListClustersCmd

type ListClustersCmd struct {
	*flags.GlobalFlags
	Log log.Logger

	Host    string
	Project string
}

ListClustersCmd holds the cmd flags

func (*ListClustersCmd) Run

func (cmd *ListClustersCmd) Run(ctx context.Context, devPodConfig *config.Config, provider *provider.ProviderConfig) error

type ListCmd

type ListCmd struct {
	proflags.GlobalFlags

	Output string
	Login  bool
}

ListCmd holds the list cmd flags

func (*ListCmd) Run

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

Run runs the command logic

type ListProjectsCmd

type ListProjectsCmd struct {
	*flags.GlobalFlags
	Log log.Logger

	Host string
}

ListProjectsCmd holds the cmd flags

func (*ListProjectsCmd) Run

func (cmd *ListProjectsCmd) Run(ctx context.Context, devPodConfig *config.Config, provider *provider.ProviderConfig) error

type ListTemplatesCmd

type ListTemplatesCmd struct {
	*flags.GlobalFlags
	Log log.Logger

	Host    string
	Project string
}

ListTemplatesCmd holds the cmd flags

func (*ListTemplatesCmd) Run

func (cmd *ListTemplatesCmd) Run(ctx context.Context, devPodConfig *config.Config, provider *provider.ProviderConfig) error

type ListWorkspacesCmd

type ListWorkspacesCmd struct {
	*flags.GlobalFlags
	Log log.Logger

	Host string
}

ListWorkspacesCmd holds the cmd flags

func (*ListWorkspacesCmd) Run

func (cmd *ListWorkspacesCmd) Run(ctx context.Context, devPodConfig *config.Config, provider *provider.ProviderConfig) error

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

func (*LoginCmd) Run

func (cmd *LoginCmd) Run(ctx context.Context, fullURL string, log log.Logger) error

Run runs the command logic

type ProviderUpdateInfo

type ProviderUpdateInfo struct {
	Available  bool   `json:"available,omitempty"`
	NewVersion string `json:"newVersion,omitempty"`
}

type RebuildCmd

type RebuildCmd struct {
	*flags.GlobalFlags
	Log log.Logger

	Project string
	Host    string
}

RebuildCmd holds the cmd flags

func (*RebuildCmd) Run

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

type SelfCmd

type SelfCmd struct {
	*flags.GlobalFlags
	Log log.Logger

	Host string
}

SelfCmd holds the cmd flags

func (*SelfCmd) Run

func (cmd *SelfCmd) Run(ctx context.Context, devPodConfig *config.Config, provider *provider.ProviderConfig) error

type SleepCmd

type SleepCmd struct {
	*flags.GlobalFlags
	Log log.Logger

	Project       string
	Host          string
	ForceDuration int64
}

SleepCmd holds the cmd flags

func (*SleepCmd) Run

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

type StartCmd

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

func (*StartCmd) Run

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

Run runs the command logic

type UpdateProviderCmd

type UpdateProviderCmd struct {
	*flags.GlobalFlags
	Log log.Logger

	Host     string
	Instance string
}

UpdateProviderCmd holds the cmd flags

func (*UpdateProviderCmd) Run

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

type UpdateWorkspaceCmd

type UpdateWorkspaceCmd struct {
	*flags.GlobalFlags
	Log log.Logger

	Host     string
	Instance string
}

UpdateWorkspaceCmd holds the cmd flags

func (*UpdateWorkspaceCmd) Run

func (cmd *UpdateWorkspaceCmd) Run(ctx context.Context, devPodConfig *config.Config, provider *provider.ProviderConfig) error

type VersionCmd

type VersionCmd struct {
	*flags.GlobalFlags
	Log log.Logger

	Host string
}

VersionCmd holds the cmd flags

func (*VersionCmd) Run

func (cmd *VersionCmd) Run(ctx context.Context, devPodConfig *config.Config, providerConfig *provider.ProviderConfig) error

type WakeupCmd

type WakeupCmd struct {
	*flags.GlobalFlags
	Log log.Logger

	Project string
	Host    string
}

WakeupCmd holds the cmd flags

func (*WakeupCmd) Run

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

type WatchWorkspacesCmd

type WatchWorkspacesCmd struct {
	*flags.GlobalFlags
	Log log.Logger

	Host          string
	Project       string
	FilterByOwner bool
}

WatchWorkspacesCmd holds the cmd flags

func (*WatchWorkspacesCmd) Run

func (cmd *WatchWorkspacesCmd) Run(ctx context.Context, devPodConfig *config.Config, providerConfig *provider.ProviderConfig) error

Directories

Path Synopsis
get

Jump to

Keyboard shortcuts

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