Help us shape the future of Go! Take the 2026 Go Developer Survey

pro

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MPL-2.0 Imports: 68 Imported by: 0

Documentation

Index

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")
	//nolint:staticcheck // ST1005: "Devsy Pro" is a proper noun
	ErrPlatformNotReachable = 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

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

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 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 Error

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

func (*Error) Error

func (e *Error) Error() string

func (*Error) Unwrap added in v1.6.1

func (e *Error) Unwrap() error

type HealthCmd added in v1.3.1

type HealthCmd struct {
	*flags.GlobalFlags

	Host string
}

HealthCmd holds the cmd flags.

func (*HealthCmd) Run added in v1.3.1

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

type ListCmd

type ListCmd struct {
	proflags.GlobalFlags

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

type LogoutCmd added in v1.3.1

type LogoutCmd struct {
	*proflags.GlobalFlags

	IgnoreNotFound bool
}

LogoutCmd holds the logout cmd flags.

func (*LogoutCmd) Run added in v1.3.1

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

type ProviderUpdateInfo

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

type SelfCmd

type SelfCmd struct {
	*flags.GlobalFlags

	Host string
}

SelfCmd holds the cmd flags.

func (*SelfCmd) Run

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

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.

func (*StartCmd) Run

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

Run runs the command logic.

type UpdateProviderCmd

type UpdateProviderCmd struct {
	*flags.GlobalFlags

	Host     string
	Instance string
}

UpdateProviderCmd holds the cmd flags.

func (*UpdateProviderCmd) Run

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

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

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).
get

Jump to

Keyboard shortcuts

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