cmd

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Overview

Copyright © 2025 NAME HERE <EMAIL ADDRESS>

Copyright © 2025 NAME HERE <EMAIL ADDRESS>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCurlCmd added in v0.17.0

func AddCurlCmd(rootCmd *cobra.Command, opts *GlobalOptions)

func AddExecCmd added in v0.3.0

func AddExecCmd(rootCmd *cobra.Command, opts *GlobalOptions)

func AddGitCmd added in v0.10.0

func AddGitCmd(rootCmd *cobra.Command, opts *GlobalOptions)

func AddGitPullCmd added in v0.10.0

func AddGitPullCmd(git *cobra.Command, opts *GlobalOptions)

func AddGoCmd added in v0.8.0

func AddGoCmd(rootCmd *cobra.Command)

func AddLegacyCmds added in v1.24.0

func AddLegacyCmds(rootCmd *cobra.Command, opts shared.RootOptions)

AddLegacyCmds re-adds pre-refactor command paths as deprecated aliases for the commands that moved to a different parent.

func AddLicensesCmd

func AddLicensesCmd(rootCmd *cobra.Command)

func AddMcpCmd added in v1.2.0

func AddMcpCmd(rootCmd *cobra.Command)

func AddMonitorCmd added in v0.7.0

func AddMonitorCmd(rootCmd *cobra.Command, opts *GlobalOptions)

func AddOpenCmd added in v0.3.0

func AddOpenCmd(rootCmd *cobra.Command, opts *GlobalOptions)

func AddOpenWorkspaceCmd added in v0.3.0

func AddOpenWorkspaceCmd(open *cobra.Command, opts *GlobalOptions)

func AddScaleCmd added in v0.19.3

func AddScaleCmd(rootCmd *cobra.Command, opts *GlobalOptions)

func AddScaleWorkspaceCmd added in v0.19.3

func AddScaleWorkspaceCmd(scale *cobra.Command, opts *GlobalOptions)

func AddStopCmd added in v1.23.0

func AddStopCmd(rootCmd *cobra.Command, opts *GlobalOptions)

func AddStopPipelineCmd added in v1.23.0

func AddStopPipelineCmd(stop *cobra.Command, opts *GlobalOptions)

func AddSyncCmd added in v0.12.0

func AddSyncCmd(rootCmd *cobra.Command, opts *GlobalOptions)

func AddSyncLandscapeCmd added in v0.12.0

func AddSyncLandscapeCmd(sync *cobra.Command, opts *GlobalOptions)

func AddUpdateCmd added in v0.7.0

func AddUpdateCmd(rootCmd *cobra.Command)

func AddVersionCmd

func AddVersionCmd(rootCmd *cobra.Command)

func AddWakeUpCmd added in v0.17.0

func AddWakeUpCmd(rootCmd *cobra.Command, opts *GlobalOptions)

func Execute

func Execute()

func GetRootCmd

func GetRootCmd() *cobra.Command

func SelfUpdate added in v0.7.0

func SelfUpdate() error

Types

type Browser added in v0.3.0

type Browser interface {
	OpenIde(path string) error
}

type Client

type Client interface {
	ListTeams(orgId string) ([]api.Team, error)
	ListWorkspaces(teamId int) ([]api.Workspace, error)
	ListBaseimages() ([]api.Baseimage, error)
	ListOrganizations() ([]api.Organization, error)
	CreateOrganization(name string, adminEmail string) (*api.Organization, error)
	GetWorkspace(workspaceId int) (api.Workspace, error)
	WorkspaceStatus(workspaceId int) (*api.WorkspaceStatus, error)
	WaitForWorkspaceRunning(workspace *api.Workspace, timeout time.Duration) error
	ScaleWorkspace(wsId int, replicas int) error
	ScaleLandscapeServices(wsId int, services map[string]int) error
	SetEnvVarOnWorkspace(workspaceId int, vars map[string]string) error
	ExecCommand(workspaceId int, command string, workdir string, env map[string]string) (string, string, error)
	ListWorkspacePlans() ([]api.WorkspacePlan, error)
	DeployWorkspace(args api.DeployWorkspaceArgs) (*api.Workspace, error)
	DeleteWorkspace(wsId int) error
	StartPipelineStage(wsId int, profile string, stage string) error
	StopPipelineStage(wsId int, stage string) error
	GetPipelineState(wsId int, stage string) ([]api.PipelineStatus, error)
	GitPull(wsId int, remote string, branch string) error
	DeployLandscape(wsId int, profile string) error
	CreateTeam(orgId string, name string, dcId int) (*api.Team, error)
	DeleteTeam(teamId int) error
	AddTeamMember(teamId int, email string, role int) error
	RemoveTeamMember(teamId int, userId int) error
	ListTeamMembers(teamId int) ([]api.TeamMember, error)
}

func NewClient

func NewClient(opts GlobalOptions) (Client, error)

type CommandExecutor added in v0.17.0

type CommandExecutor interface {
	// Execute runs the command, streaming to stdout/stderr as usual, and additionally
	// returns the combined stdout+stderr output that was written.
	Execute(ctx context.Context, name string, args []string, stdout, stderr io.Writer) (string, error)
}

CommandExecutor abstracts command execution for testing

type CurlCmd added in v0.17.0

type CurlCmd struct {
	Opts CurlOptions
	// contains filtered or unexported fields
}

func (*CurlCmd) CurlWorkspace added in v0.17.0

func (c *CurlCmd) CurlWorkspace(client Client, wsId int, token string, path string, curlArgs []string) error

func (*CurlCmd) RunE added in v0.17.0

func (c *CurlCmd) RunE(_ *cobra.Command, args []string) error

type CurlOptions added in v0.17.0

type CurlOptions struct {
	*GlobalOptions
	Timeout  time.Duration
	Executor CommandExecutor // Injectable for testing
}

type DefaultCommandExecutor added in v0.17.0

type DefaultCommandExecutor struct{}

DefaultCommandExecutor uses os/exec to run commands

func (*DefaultCommandExecutor) Execute added in v0.17.0

func (e *DefaultCommandExecutor) Execute(ctx context.Context, name string, args []string, stdout, stderr io.Writer) (string, error)

type Env

type Env interface {
	GetApiToken() (string, error)
	GetTeamId() (int, error)
	GetWorkspaceId() (int, error)
	GetOrgId() string
	GetApiUrl() string
}

type ExecCmd added in v0.3.0

type ExecCmd struct {
	Opts ExecOptions
	// contains filtered or unexported fields
}

func (*ExecCmd) ExecCommand added in v0.3.0

func (c *ExecCmd) ExecCommand(client Client, command string) error

func (*ExecCmd) RunE added in v0.3.0

func (c *ExecCmd) RunE(_ *cobra.Command, args []string) error

type ExecOptions added in v0.3.0

type ExecOptions struct {
	*GlobalOptions
	EnvVar  *[]string
	WorkDir *string
}

type GitCmd added in v0.10.0

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

type GitPullCmd added in v0.10.0

type GitPullCmd struct {
	Opts GitPullOpts
	// contains filtered or unexported fields
}

GitPullCmd represents the pull command

func (*GitPullCmd) RunE added in v0.10.0

func (c *GitPullCmd) RunE(_ *cobra.Command, args []string) error

type GitPullOpts added in v0.10.0

type GitPullOpts struct {
	*GlobalOptions
	Remote *string
	Branch *string
}

type GlobalOptions

type GlobalOptions struct {
	ApiUrl      string
	TeamId      int
	WorkspaceId int
	OrgId       string
	Env         Env
	Verbose     bool
}

func (GlobalOptions) GetApiToken added in v1.24.0

func (o GlobalOptions) GetApiToken() (string, error)

func (GlobalOptions) GetApiUrl

func (o GlobalOptions) GetApiUrl() string

func (GlobalOptions) GetOrgId added in v1.1.0

func (o GlobalOptions) GetOrgId() (string, error)

func (GlobalOptions) GetTeamId

func (o GlobalOptions) GetTeamId() (int, error)

func (GlobalOptions) GetVerbose added in v1.24.0

func (o GlobalOptions) GetVerbose() bool

func (GlobalOptions) GetWorkspaceId

func (o GlobalOptions) GetWorkspaceId() (int, error)

func (GlobalOptions) NewClient added in v1.24.0

func (o GlobalOptions) NewClient() (*api.Client, error)

type GoCmd added in v0.8.0

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

func (*GoCmd) RunE added in v0.8.0

func (c *GoCmd) RunE(_ *cobra.Command, args []string) error

type LicensesCmd

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

func (*LicensesCmd) RunE

func (c *LicensesCmd) RunE(_ *cobra.Command, args []string) error

type McpCmd added in v1.2.0

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

func (*McpCmd) RunE added in v1.2.0

func (c *McpCmd) RunE(_ *cobra.Command, args []string) error

type MockBrowser added in v0.3.0

type MockBrowser struct {
	mock.Mock
}

MockBrowser is an autogenerated mock type for the Browser type

func NewMockBrowser added in v0.3.0

func NewMockBrowser(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockBrowser

NewMockBrowser creates a new instance of MockBrowser. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockBrowser) EXPECT added in v0.3.0

func (_m *MockBrowser) EXPECT() *MockBrowser_Expecter

func (*MockBrowser) OpenIde added in v0.3.0

func (_mock *MockBrowser) OpenIde(path string) error

OpenIde provides a mock function for the type MockBrowser

type MockBrowser_Expecter added in v0.3.0

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

func (*MockBrowser_Expecter) OpenIde added in v0.3.0

OpenIde is a helper method to define mock.On call

  • path string

type MockBrowser_OpenIde_Call added in v0.3.0

type MockBrowser_OpenIde_Call struct {
	*mock.Call
}

MockBrowser_OpenIde_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OpenIde'

func (*MockBrowser_OpenIde_Call) Return added in v0.3.0

func (*MockBrowser_OpenIde_Call) Run added in v0.3.0

func (_c *MockBrowser_OpenIde_Call) Run(run func(path string)) *MockBrowser_OpenIde_Call

func (*MockBrowser_OpenIde_Call) RunAndReturn added in v0.3.0

func (_c *MockBrowser_OpenIde_Call) RunAndReturn(run func(path string) error) *MockBrowser_OpenIde_Call

type MockClient

type MockClient struct {
	mock.Mock
}

MockClient is an autogenerated mock type for the Client type

func NewMockClient

func NewMockClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockClient

NewMockClient creates a new instance of MockClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockClient) AddTeamMember added in v1.5.0

func (_mock *MockClient) AddTeamMember(teamId int, email string, role int) error

AddTeamMember provides a mock function for the type MockClient

func (*MockClient) CreateOrganization added in v1.19.0

func (_mock *MockClient) CreateOrganization(name string, adminEmail string) (*api.Organization, error)

CreateOrganization provides a mock function for the type MockClient

func (*MockClient) CreateTeam added in v1.5.0

func (_mock *MockClient) CreateTeam(orgId string, name string, dcId int) (*api.Team, error)

CreateTeam provides a mock function for the type MockClient

func (*MockClient) DeleteTeam added in v1.5.0

func (_mock *MockClient) DeleteTeam(teamId int) error

DeleteTeam provides a mock function for the type MockClient

func (*MockClient) DeleteWorkspace added in v0.5.0

func (_mock *MockClient) DeleteWorkspace(wsId int) error

DeleteWorkspace provides a mock function for the type MockClient

func (*MockClient) DeployLandscape added in v0.12.0

func (_mock *MockClient) DeployLandscape(wsId int, profile string) error

DeployLandscape provides a mock function for the type MockClient

func (*MockClient) DeployWorkspace added in v0.4.0

func (_mock *MockClient) DeployWorkspace(args api.DeployWorkspaceArgs) (*api.Workspace, error)

DeployWorkspace provides a mock function for the type MockClient

func (*MockClient) EXPECT

func (_m *MockClient) EXPECT() *MockClient_Expecter

func (*MockClient) ExecCommand added in v0.3.0

func (_mock *MockClient) ExecCommand(workspaceId int, command string, workdir string, env map[string]string) (string, string, error)

ExecCommand provides a mock function for the type MockClient

func (*MockClient) GetPipelineState added in v0.6.0

func (_mock *MockClient) GetPipelineState(wsId int, stage string) ([]api.PipelineStatus, error)

GetPipelineState provides a mock function for the type MockClient

func (*MockClient) GetWorkspace added in v0.3.0

func (_mock *MockClient) GetWorkspace(workspaceId int) (api.Workspace, error)

GetWorkspace provides a mock function for the type MockClient

func (*MockClient) GitPull added in v0.10.0

func (_mock *MockClient) GitPull(wsId int, remote string, branch string) error

GitPull provides a mock function for the type MockClient

func (*MockClient) ListBaseimages added in v0.13.0

func (_mock *MockClient) ListBaseimages() ([]api.Baseimage, error)

ListBaseimages provides a mock function for the type MockClient

func (*MockClient) ListOrganizations added in v1.1.0

func (_mock *MockClient) ListOrganizations() ([]api.Organization, error)

ListOrganizations provides a mock function for the type MockClient

func (*MockClient) ListTeamMembers added in v1.5.0

func (_mock *MockClient) ListTeamMembers(teamId int) ([]api.TeamMember, error)

ListTeamMembers provides a mock function for the type MockClient

func (*MockClient) ListTeams

func (_mock *MockClient) ListTeams(orgId string) ([]api.Team, error)

ListTeams provides a mock function for the type MockClient

func (*MockClient) ListWorkspacePlans added in v0.4.0

func (_mock *MockClient) ListWorkspacePlans() ([]api.WorkspacePlan, error)

ListWorkspacePlans provides a mock function for the type MockClient

func (*MockClient) ListWorkspaces

func (_mock *MockClient) ListWorkspaces(teamId int) ([]api.Workspace, error)

ListWorkspaces provides a mock function for the type MockClient

func (*MockClient) RemoveTeamMember added in v1.5.0

func (_mock *MockClient) RemoveTeamMember(teamId int, userId int) error

RemoveTeamMember provides a mock function for the type MockClient

func (*MockClient) ScaleLandscapeServices added in v0.19.3

func (_mock *MockClient) ScaleLandscapeServices(wsId int, services map[string]int) error

ScaleLandscapeServices provides a mock function for the type MockClient

func (*MockClient) ScaleWorkspace added in v0.17.0

func (_mock *MockClient) ScaleWorkspace(wsId int, replicas int) error

ScaleWorkspace provides a mock function for the type MockClient

func (*MockClient) SetEnvVarOnWorkspace

func (_mock *MockClient) SetEnvVarOnWorkspace(workspaceId int, vars map[string]string) error

SetEnvVarOnWorkspace provides a mock function for the type MockClient

func (*MockClient) StartPipelineStage added in v0.6.0

func (_mock *MockClient) StartPipelineStage(wsId int, profile string, stage string) error

StartPipelineStage provides a mock function for the type MockClient

func (*MockClient) StopPipelineStage added in v1.23.0

func (_mock *MockClient) StopPipelineStage(wsId int, stage string) error

StopPipelineStage provides a mock function for the type MockClient

func (*MockClient) WaitForWorkspaceRunning added in v0.17.0

func (_mock *MockClient) WaitForWorkspaceRunning(workspace *api.Workspace, timeout time.Duration) error

WaitForWorkspaceRunning provides a mock function for the type MockClient

func (*MockClient) WorkspaceStatus added in v0.17.0

func (_mock *MockClient) WorkspaceStatus(workspaceId int) (*api.WorkspaceStatus, error)

WorkspaceStatus provides a mock function for the type MockClient

type MockClient_AddTeamMember_Call added in v1.5.0

type MockClient_AddTeamMember_Call struct {
	*mock.Call
}

MockClient_AddTeamMember_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddTeamMember'

func (*MockClient_AddTeamMember_Call) Return added in v1.5.0

func (*MockClient_AddTeamMember_Call) Run added in v1.5.0

func (_c *MockClient_AddTeamMember_Call) Run(run func(teamId int, email string, role int)) *MockClient_AddTeamMember_Call

func (*MockClient_AddTeamMember_Call) RunAndReturn added in v1.5.0

func (_c *MockClient_AddTeamMember_Call) RunAndReturn(run func(teamId int, email string, role int) error) *MockClient_AddTeamMember_Call

type MockClient_CreateOrganization_Call added in v1.19.0

type MockClient_CreateOrganization_Call struct {
	*mock.Call
}

MockClient_CreateOrganization_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateOrganization'

func (*MockClient_CreateOrganization_Call) Return added in v1.19.0

func (*MockClient_CreateOrganization_Call) Run added in v1.19.0

func (*MockClient_CreateOrganization_Call) RunAndReturn added in v1.19.0

type MockClient_CreateTeam_Call added in v1.5.0

type MockClient_CreateTeam_Call struct {
	*mock.Call
}

MockClient_CreateTeam_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateTeam'

func (*MockClient_CreateTeam_Call) Return added in v1.5.0

func (*MockClient_CreateTeam_Call) Run added in v1.5.0

func (_c *MockClient_CreateTeam_Call) Run(run func(orgId string, name string, dcId int)) *MockClient_CreateTeam_Call

func (*MockClient_CreateTeam_Call) RunAndReturn added in v1.5.0

func (_c *MockClient_CreateTeam_Call) RunAndReturn(run func(orgId string, name string, dcId int) (*api.Team, error)) *MockClient_CreateTeam_Call

type MockClient_DeleteTeam_Call added in v1.5.0

type MockClient_DeleteTeam_Call struct {
	*mock.Call
}

MockClient_DeleteTeam_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteTeam'

func (*MockClient_DeleteTeam_Call) Return added in v1.5.0

func (*MockClient_DeleteTeam_Call) Run added in v1.5.0

func (_c *MockClient_DeleteTeam_Call) Run(run func(teamId int)) *MockClient_DeleteTeam_Call

func (*MockClient_DeleteTeam_Call) RunAndReturn added in v1.5.0

func (_c *MockClient_DeleteTeam_Call) RunAndReturn(run func(teamId int) error) *MockClient_DeleteTeam_Call

type MockClient_DeleteWorkspace_Call added in v0.5.0

type MockClient_DeleteWorkspace_Call struct {
	*mock.Call
}

MockClient_DeleteWorkspace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteWorkspace'

func (*MockClient_DeleteWorkspace_Call) Return added in v0.5.0

func (*MockClient_DeleteWorkspace_Call) Run added in v0.5.0

func (*MockClient_DeleteWorkspace_Call) RunAndReturn added in v0.5.0

type MockClient_DeployLandscape_Call added in v0.12.0

type MockClient_DeployLandscape_Call struct {
	*mock.Call
}

MockClient_DeployLandscape_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeployLandscape'

func (*MockClient_DeployLandscape_Call) Return added in v0.12.0

func (*MockClient_DeployLandscape_Call) Run added in v0.12.0

func (*MockClient_DeployLandscape_Call) RunAndReturn added in v0.12.0

func (_c *MockClient_DeployLandscape_Call) RunAndReturn(run func(wsId int, profile string) error) *MockClient_DeployLandscape_Call

type MockClient_DeployWorkspace_Call added in v0.4.0

type MockClient_DeployWorkspace_Call struct {
	*mock.Call
}

MockClient_DeployWorkspace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeployWorkspace'

func (*MockClient_DeployWorkspace_Call) Return added in v0.4.0

func (*MockClient_DeployWorkspace_Call) Run added in v0.4.0

func (*MockClient_DeployWorkspace_Call) RunAndReturn added in v0.4.0

type MockClient_ExecCommand_Call added in v0.3.0

type MockClient_ExecCommand_Call struct {
	*mock.Call
}

MockClient_ExecCommand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecCommand'

func (*MockClient_ExecCommand_Call) Return added in v0.3.0

func (*MockClient_ExecCommand_Call) Run added in v0.3.0

func (_c *MockClient_ExecCommand_Call) Run(run func(workspaceId int, command string, workdir string, env map[string]string)) *MockClient_ExecCommand_Call

func (*MockClient_ExecCommand_Call) RunAndReturn added in v0.3.0

func (_c *MockClient_ExecCommand_Call) RunAndReturn(run func(workspaceId int, command string, workdir string, env map[string]string) (string, string, error)) *MockClient_ExecCommand_Call

type MockClient_Expecter

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

func (*MockClient_Expecter) AddTeamMember added in v1.5.0

func (_e *MockClient_Expecter) AddTeamMember(teamId any, email any, role any) *MockClient_AddTeamMember_Call

AddTeamMember is a helper method to define mock.On call

  • teamId int
  • email string
  • role int

func (*MockClient_Expecter) CreateOrganization added in v1.19.0

func (_e *MockClient_Expecter) CreateOrganization(name any, adminEmail any) *MockClient_CreateOrganization_Call

CreateOrganization is a helper method to define mock.On call

  • name string
  • adminEmail string

func (*MockClient_Expecter) CreateTeam added in v1.5.0

func (_e *MockClient_Expecter) CreateTeam(orgId any, name any, dcId any) *MockClient_CreateTeam_Call

CreateTeam is a helper method to define mock.On call

  • orgId string
  • name string
  • dcId int

func (*MockClient_Expecter) DeleteTeam added in v1.5.0

func (_e *MockClient_Expecter) DeleteTeam(teamId any) *MockClient_DeleteTeam_Call

DeleteTeam is a helper method to define mock.On call

  • teamId int

func (*MockClient_Expecter) DeleteWorkspace added in v0.5.0

func (_e *MockClient_Expecter) DeleteWorkspace(wsId any) *MockClient_DeleteWorkspace_Call

DeleteWorkspace is a helper method to define mock.On call

  • wsId int

func (*MockClient_Expecter) DeployLandscape added in v0.12.0

func (_e *MockClient_Expecter) DeployLandscape(wsId any, profile any) *MockClient_DeployLandscape_Call

DeployLandscape is a helper method to define mock.On call

  • wsId int
  • profile string

func (*MockClient_Expecter) DeployWorkspace added in v0.4.0

func (_e *MockClient_Expecter) DeployWorkspace(args any) *MockClient_DeployWorkspace_Call

DeployWorkspace is a helper method to define mock.On call

  • args api.DeployWorkspaceArgs

func (*MockClient_Expecter) ExecCommand added in v0.3.0

func (_e *MockClient_Expecter) ExecCommand(workspaceId any, command any, workdir any, env any) *MockClient_ExecCommand_Call

ExecCommand is a helper method to define mock.On call

  • workspaceId int
  • command string
  • workdir string
  • env map[string]string

func (*MockClient_Expecter) GetPipelineState added in v0.6.0

func (_e *MockClient_Expecter) GetPipelineState(wsId any, stage any) *MockClient_GetPipelineState_Call

GetPipelineState is a helper method to define mock.On call

  • wsId int
  • stage string

func (*MockClient_Expecter) GetWorkspace added in v0.3.0

func (_e *MockClient_Expecter) GetWorkspace(workspaceId any) *MockClient_GetWorkspace_Call

GetWorkspace is a helper method to define mock.On call

  • workspaceId int

func (*MockClient_Expecter) GitPull added in v0.10.0

func (_e *MockClient_Expecter) GitPull(wsId any, remote any, branch any) *MockClient_GitPull_Call

GitPull is a helper method to define mock.On call

  • wsId int
  • remote string
  • branch string

func (*MockClient_Expecter) ListBaseimages added in v0.13.0

ListBaseimages is a helper method to define mock.On call

func (*MockClient_Expecter) ListOrganizations added in v1.1.0

func (_e *MockClient_Expecter) ListOrganizations() *MockClient_ListOrganizations_Call

ListOrganizations is a helper method to define mock.On call

func (*MockClient_Expecter) ListTeamMembers added in v1.5.0

func (_e *MockClient_Expecter) ListTeamMembers(teamId any) *MockClient_ListTeamMembers_Call

ListTeamMembers is a helper method to define mock.On call

  • teamId int

func (*MockClient_Expecter) ListTeams

func (_e *MockClient_Expecter) ListTeams(orgId any) *MockClient_ListTeams_Call

ListTeams is a helper method to define mock.On call

  • orgId string

func (*MockClient_Expecter) ListWorkspacePlans added in v0.4.0

func (_e *MockClient_Expecter) ListWorkspacePlans() *MockClient_ListWorkspacePlans_Call

ListWorkspacePlans is a helper method to define mock.On call

func (*MockClient_Expecter) ListWorkspaces

func (_e *MockClient_Expecter) ListWorkspaces(teamId any) *MockClient_ListWorkspaces_Call

ListWorkspaces is a helper method to define mock.On call

  • teamId int

func (*MockClient_Expecter) RemoveTeamMember added in v1.5.0

func (_e *MockClient_Expecter) RemoveTeamMember(teamId any, userId any) *MockClient_RemoveTeamMember_Call

RemoveTeamMember is a helper method to define mock.On call

  • teamId int
  • userId int

func (*MockClient_Expecter) ScaleLandscapeServices added in v0.19.3

func (_e *MockClient_Expecter) ScaleLandscapeServices(wsId any, services any) *MockClient_ScaleLandscapeServices_Call

ScaleLandscapeServices is a helper method to define mock.On call

  • wsId int
  • services map[string]int

func (*MockClient_Expecter) ScaleWorkspace added in v0.17.0

func (_e *MockClient_Expecter) ScaleWorkspace(wsId any, replicas any) *MockClient_ScaleWorkspace_Call

ScaleWorkspace is a helper method to define mock.On call

  • wsId int
  • replicas int

func (*MockClient_Expecter) SetEnvVarOnWorkspace

func (_e *MockClient_Expecter) SetEnvVarOnWorkspace(workspaceId any, vars any) *MockClient_SetEnvVarOnWorkspace_Call

SetEnvVarOnWorkspace is a helper method to define mock.On call

  • workspaceId int
  • vars map[string]string

func (*MockClient_Expecter) StartPipelineStage added in v0.6.0

func (_e *MockClient_Expecter) StartPipelineStage(wsId any, profile any, stage any) *MockClient_StartPipelineStage_Call

StartPipelineStage is a helper method to define mock.On call

  • wsId int
  • profile string
  • stage string

func (*MockClient_Expecter) StopPipelineStage added in v1.23.0

func (_e *MockClient_Expecter) StopPipelineStage(wsId any, stage any) *MockClient_StopPipelineStage_Call

StopPipelineStage is a helper method to define mock.On call

  • wsId int
  • stage string

func (*MockClient_Expecter) WaitForWorkspaceRunning added in v0.17.0

func (_e *MockClient_Expecter) WaitForWorkspaceRunning(workspace any, timeout any) *MockClient_WaitForWorkspaceRunning_Call

WaitForWorkspaceRunning is a helper method to define mock.On call

  • workspace *api.Workspace
  • timeout time.Duration

func (*MockClient_Expecter) WorkspaceStatus added in v0.17.0

func (_e *MockClient_Expecter) WorkspaceStatus(workspaceId any) *MockClient_WorkspaceStatus_Call

WorkspaceStatus is a helper method to define mock.On call

  • workspaceId int

type MockClient_GetPipelineState_Call added in v0.6.0

type MockClient_GetPipelineState_Call struct {
	*mock.Call
}

MockClient_GetPipelineState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPipelineState'

func (*MockClient_GetPipelineState_Call) Return added in v0.6.0

func (*MockClient_GetPipelineState_Call) Run added in v0.6.0

func (*MockClient_GetPipelineState_Call) RunAndReturn added in v0.6.0

type MockClient_GetWorkspace_Call added in v0.3.0

type MockClient_GetWorkspace_Call struct {
	*mock.Call
}

MockClient_GetWorkspace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWorkspace'

func (*MockClient_GetWorkspace_Call) Return added in v0.3.0

func (*MockClient_GetWorkspace_Call) Run added in v0.3.0

func (_c *MockClient_GetWorkspace_Call) Run(run func(workspaceId int)) *MockClient_GetWorkspace_Call

func (*MockClient_GetWorkspace_Call) RunAndReturn added in v0.3.0

func (_c *MockClient_GetWorkspace_Call) RunAndReturn(run func(workspaceId int) (api.Workspace, error)) *MockClient_GetWorkspace_Call

type MockClient_GitPull_Call added in v0.10.0

type MockClient_GitPull_Call struct {
	*mock.Call
}

MockClient_GitPull_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GitPull'

func (*MockClient_GitPull_Call) Return added in v0.10.0

func (*MockClient_GitPull_Call) Run added in v0.10.0

func (_c *MockClient_GitPull_Call) Run(run func(wsId int, remote string, branch string)) *MockClient_GitPull_Call

func (*MockClient_GitPull_Call) RunAndReturn added in v0.10.0

func (_c *MockClient_GitPull_Call) RunAndReturn(run func(wsId int, remote string, branch string) error) *MockClient_GitPull_Call

type MockClient_ListBaseimages_Call added in v0.13.0

type MockClient_ListBaseimages_Call struct {
	*mock.Call
}

MockClient_ListBaseimages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListBaseimages'

func (*MockClient_ListBaseimages_Call) Return added in v0.13.0

func (*MockClient_ListBaseimages_Call) Run added in v0.13.0

func (*MockClient_ListBaseimages_Call) RunAndReturn added in v0.13.0

type MockClient_ListOrganizations_Call added in v1.1.0

type MockClient_ListOrganizations_Call struct {
	*mock.Call
}

MockClient_ListOrganizations_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListOrganizations'

func (*MockClient_ListOrganizations_Call) Return added in v1.1.0

func (*MockClient_ListOrganizations_Call) Run added in v1.1.0

func (*MockClient_ListOrganizations_Call) RunAndReturn added in v1.1.0

type MockClient_ListTeamMembers_Call added in v1.5.0

type MockClient_ListTeamMembers_Call struct {
	*mock.Call
}

MockClient_ListTeamMembers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTeamMembers'

func (*MockClient_ListTeamMembers_Call) Return added in v1.5.0

func (*MockClient_ListTeamMembers_Call) Run added in v1.5.0

func (*MockClient_ListTeamMembers_Call) RunAndReturn added in v1.5.0

type MockClient_ListTeams_Call

type MockClient_ListTeams_Call struct {
	*mock.Call
}

MockClient_ListTeams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTeams'

func (*MockClient_ListTeams_Call) Return

func (*MockClient_ListTeams_Call) Run

func (*MockClient_ListTeams_Call) RunAndReturn

func (_c *MockClient_ListTeams_Call) RunAndReturn(run func(orgId string) ([]api.Team, error)) *MockClient_ListTeams_Call

type MockClient_ListWorkspacePlans_Call added in v0.4.0

type MockClient_ListWorkspacePlans_Call struct {
	*mock.Call
}

MockClient_ListWorkspacePlans_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListWorkspacePlans'

func (*MockClient_ListWorkspacePlans_Call) Return added in v0.4.0

func (*MockClient_ListWorkspacePlans_Call) Run added in v0.4.0

func (*MockClient_ListWorkspacePlans_Call) RunAndReturn added in v0.4.0

type MockClient_ListWorkspaces_Call

type MockClient_ListWorkspaces_Call struct {
	*mock.Call
}

MockClient_ListWorkspaces_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListWorkspaces'

func (*MockClient_ListWorkspaces_Call) Return

func (*MockClient_ListWorkspaces_Call) Run

func (*MockClient_ListWorkspaces_Call) RunAndReturn

func (_c *MockClient_ListWorkspaces_Call) RunAndReturn(run func(teamId int) ([]api.Workspace, error)) *MockClient_ListWorkspaces_Call

type MockClient_RemoveTeamMember_Call added in v1.5.0

type MockClient_RemoveTeamMember_Call struct {
	*mock.Call
}

MockClient_RemoveTeamMember_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveTeamMember'

func (*MockClient_RemoveTeamMember_Call) Return added in v1.5.0

func (*MockClient_RemoveTeamMember_Call) Run added in v1.5.0

func (_c *MockClient_RemoveTeamMember_Call) Run(run func(teamId int, userId int)) *MockClient_RemoveTeamMember_Call

func (*MockClient_RemoveTeamMember_Call) RunAndReturn added in v1.5.0

func (_c *MockClient_RemoveTeamMember_Call) RunAndReturn(run func(teamId int, userId int) error) *MockClient_RemoveTeamMember_Call

type MockClient_ScaleLandscapeServices_Call added in v0.19.3

type MockClient_ScaleLandscapeServices_Call struct {
	*mock.Call
}

MockClient_ScaleLandscapeServices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ScaleLandscapeServices'

func (*MockClient_ScaleLandscapeServices_Call) Return added in v0.19.3

func (*MockClient_ScaleLandscapeServices_Call) Run added in v0.19.3

func (*MockClient_ScaleLandscapeServices_Call) RunAndReturn added in v0.19.3

func (_c *MockClient_ScaleLandscapeServices_Call) RunAndReturn(run func(wsId int, services map[string]int) error) *MockClient_ScaleLandscapeServices_Call

type MockClient_ScaleWorkspace_Call added in v0.17.0

type MockClient_ScaleWorkspace_Call struct {
	*mock.Call
}

MockClient_ScaleWorkspace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ScaleWorkspace'

func (*MockClient_ScaleWorkspace_Call) Return added in v0.17.0

func (*MockClient_ScaleWorkspace_Call) Run added in v0.17.0

func (_c *MockClient_ScaleWorkspace_Call) Run(run func(wsId int, replicas int)) *MockClient_ScaleWorkspace_Call

func (*MockClient_ScaleWorkspace_Call) RunAndReturn added in v0.17.0

func (_c *MockClient_ScaleWorkspace_Call) RunAndReturn(run func(wsId int, replicas int) error) *MockClient_ScaleWorkspace_Call

type MockClient_SetEnvVarOnWorkspace_Call

type MockClient_SetEnvVarOnWorkspace_Call struct {
	*mock.Call
}

MockClient_SetEnvVarOnWorkspace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetEnvVarOnWorkspace'

func (*MockClient_SetEnvVarOnWorkspace_Call) Return

func (*MockClient_SetEnvVarOnWorkspace_Call) Run

func (*MockClient_SetEnvVarOnWorkspace_Call) RunAndReturn

func (_c *MockClient_SetEnvVarOnWorkspace_Call) RunAndReturn(run func(workspaceId int, vars map[string]string) error) *MockClient_SetEnvVarOnWorkspace_Call

type MockClient_StartPipelineStage_Call added in v0.6.0

type MockClient_StartPipelineStage_Call struct {
	*mock.Call
}

MockClient_StartPipelineStage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartPipelineStage'

func (*MockClient_StartPipelineStage_Call) Return added in v0.6.0

func (*MockClient_StartPipelineStage_Call) Run added in v0.6.0

func (*MockClient_StartPipelineStage_Call) RunAndReturn added in v0.6.0

func (_c *MockClient_StartPipelineStage_Call) RunAndReturn(run func(wsId int, profile string, stage string) error) *MockClient_StartPipelineStage_Call

type MockClient_StopPipelineStage_Call added in v1.23.0

type MockClient_StopPipelineStage_Call struct {
	*mock.Call
}

MockClient_StopPipelineStage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopPipelineStage'

func (*MockClient_StopPipelineStage_Call) Return added in v1.23.0

func (*MockClient_StopPipelineStage_Call) Run added in v1.23.0

func (*MockClient_StopPipelineStage_Call) RunAndReturn added in v1.23.0

func (_c *MockClient_StopPipelineStage_Call) RunAndReturn(run func(wsId int, stage string) error) *MockClient_StopPipelineStage_Call

type MockClient_WaitForWorkspaceRunning_Call added in v0.17.0

type MockClient_WaitForWorkspaceRunning_Call struct {
	*mock.Call
}

MockClient_WaitForWorkspaceRunning_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WaitForWorkspaceRunning'

func (*MockClient_WaitForWorkspaceRunning_Call) Return added in v0.17.0

func (*MockClient_WaitForWorkspaceRunning_Call) Run added in v0.17.0

func (*MockClient_WaitForWorkspaceRunning_Call) RunAndReturn added in v0.17.0

type MockClient_WorkspaceStatus_Call added in v0.17.0

type MockClient_WorkspaceStatus_Call struct {
	*mock.Call
}

MockClient_WorkspaceStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WorkspaceStatus'

func (*MockClient_WorkspaceStatus_Call) Return added in v0.17.0

func (*MockClient_WorkspaceStatus_Call) Run added in v0.17.0

func (*MockClient_WorkspaceStatus_Call) RunAndReturn added in v0.17.0

func (_c *MockClient_WorkspaceStatus_Call) RunAndReturn(run func(workspaceId int) (*api.WorkspaceStatus, error)) *MockClient_WorkspaceStatus_Call

type MockCommandExecutor added in v0.17.0

type MockCommandExecutor struct {
	mock.Mock
}

MockCommandExecutor is an autogenerated mock type for the CommandExecutor type

func NewMockCommandExecutor added in v0.17.0

func NewMockCommandExecutor(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCommandExecutor

NewMockCommandExecutor creates a new instance of MockCommandExecutor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockCommandExecutor) EXPECT added in v0.17.0

func (*MockCommandExecutor) Execute added in v0.17.0

func (_mock *MockCommandExecutor) Execute(ctx context.Context, name string, args []string, stdout io.Writer, stderr io.Writer) (string, error)

Execute provides a mock function for the type MockCommandExecutor

type MockCommandExecutor_Execute_Call added in v0.17.0

type MockCommandExecutor_Execute_Call struct {
	*mock.Call
}

MockCommandExecutor_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*MockCommandExecutor_Execute_Call) Return added in v0.17.0

func (*MockCommandExecutor_Execute_Call) Run added in v0.17.0

func (_c *MockCommandExecutor_Execute_Call) Run(run func(ctx context.Context, name string, args []string, stdout io.Writer, stderr io.Writer)) *MockCommandExecutor_Execute_Call

func (*MockCommandExecutor_Execute_Call) RunAndReturn added in v0.17.0

func (_c *MockCommandExecutor_Execute_Call) RunAndReturn(run func(ctx context.Context, name string, args []string, stdout io.Writer, stderr io.Writer) (string, error)) *MockCommandExecutor_Execute_Call

type MockCommandExecutor_Expecter added in v0.17.0

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

func (*MockCommandExecutor_Expecter) Execute added in v0.17.0

func (_e *MockCommandExecutor_Expecter) Execute(ctx any, name any, args any, stdout any, stderr any) *MockCommandExecutor_Execute_Call

Execute is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • args []string
  • stdout io.Writer
  • stderr io.Writer

type MockEnv

type MockEnv struct {
	mock.Mock
}

MockEnv is an autogenerated mock type for the Env type

func NewMockEnv

func NewMockEnv(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockEnv

NewMockEnv creates a new instance of MockEnv. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockEnv) EXPECT

func (_m *MockEnv) EXPECT() *MockEnv_Expecter

func (*MockEnv) GetApiToken

func (_mock *MockEnv) GetApiToken() (string, error)

GetApiToken provides a mock function for the type MockEnv

func (*MockEnv) GetApiUrl

func (_mock *MockEnv) GetApiUrl() string

GetApiUrl provides a mock function for the type MockEnv

func (*MockEnv) GetOrgId added in v1.1.0

func (_mock *MockEnv) GetOrgId() string

GetOrgId provides a mock function for the type MockEnv

func (*MockEnv) GetTeamId

func (_mock *MockEnv) GetTeamId() (int, error)

GetTeamId provides a mock function for the type MockEnv

func (*MockEnv) GetWorkspaceId

func (_mock *MockEnv) GetWorkspaceId() (int, error)

GetWorkspaceId provides a mock function for the type MockEnv

type MockEnv_Expecter

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

func (*MockEnv_Expecter) GetApiToken

func (_e *MockEnv_Expecter) GetApiToken() *MockEnv_GetApiToken_Call

GetApiToken is a helper method to define mock.On call

func (*MockEnv_Expecter) GetApiUrl

func (_e *MockEnv_Expecter) GetApiUrl() *MockEnv_GetApiUrl_Call

GetApiUrl is a helper method to define mock.On call

func (*MockEnv_Expecter) GetOrgId added in v1.1.0

func (_e *MockEnv_Expecter) GetOrgId() *MockEnv_GetOrgId_Call

GetOrgId is a helper method to define mock.On call

func (*MockEnv_Expecter) GetTeamId

func (_e *MockEnv_Expecter) GetTeamId() *MockEnv_GetTeamId_Call

GetTeamId is a helper method to define mock.On call

func (*MockEnv_Expecter) GetWorkspaceId

func (_e *MockEnv_Expecter) GetWorkspaceId() *MockEnv_GetWorkspaceId_Call

GetWorkspaceId is a helper method to define mock.On call

type MockEnv_GetApiToken_Call

type MockEnv_GetApiToken_Call struct {
	*mock.Call
}

MockEnv_GetApiToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetApiToken'

func (*MockEnv_GetApiToken_Call) Return

func (*MockEnv_GetApiToken_Call) Run

func (*MockEnv_GetApiToken_Call) RunAndReturn

func (_c *MockEnv_GetApiToken_Call) RunAndReturn(run func() (string, error)) *MockEnv_GetApiToken_Call

type MockEnv_GetApiUrl_Call

type MockEnv_GetApiUrl_Call struct {
	*mock.Call
}

MockEnv_GetApiUrl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetApiUrl'

func (*MockEnv_GetApiUrl_Call) Return

func (*MockEnv_GetApiUrl_Call) Run

func (_c *MockEnv_GetApiUrl_Call) Run(run func()) *MockEnv_GetApiUrl_Call

func (*MockEnv_GetApiUrl_Call) RunAndReturn

func (_c *MockEnv_GetApiUrl_Call) RunAndReturn(run func() string) *MockEnv_GetApiUrl_Call

type MockEnv_GetOrgId_Call added in v1.1.0

type MockEnv_GetOrgId_Call struct {
	*mock.Call
}

MockEnv_GetOrgId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrgId'

func (*MockEnv_GetOrgId_Call) Return added in v1.1.0

func (*MockEnv_GetOrgId_Call) Run added in v1.1.0

func (_c *MockEnv_GetOrgId_Call) Run(run func()) *MockEnv_GetOrgId_Call

func (*MockEnv_GetOrgId_Call) RunAndReturn added in v1.1.0

func (_c *MockEnv_GetOrgId_Call) RunAndReturn(run func() string) *MockEnv_GetOrgId_Call

type MockEnv_GetTeamId_Call

type MockEnv_GetTeamId_Call struct {
	*mock.Call
}

MockEnv_GetTeamId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTeamId'

func (*MockEnv_GetTeamId_Call) Return

func (*MockEnv_GetTeamId_Call) Run

func (_c *MockEnv_GetTeamId_Call) Run(run func()) *MockEnv_GetTeamId_Call

func (*MockEnv_GetTeamId_Call) RunAndReturn

func (_c *MockEnv_GetTeamId_Call) RunAndReturn(run func() (int, error)) *MockEnv_GetTeamId_Call

type MockEnv_GetWorkspaceId_Call

type MockEnv_GetWorkspaceId_Call struct {
	*mock.Call
}

MockEnv_GetWorkspaceId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWorkspaceId'

func (*MockEnv_GetWorkspaceId_Call) Return

func (*MockEnv_GetWorkspaceId_Call) Run

func (*MockEnv_GetWorkspaceId_Call) RunAndReturn

func (_c *MockEnv_GetWorkspaceId_Call) RunAndReturn(run func() (int, error)) *MockEnv_GetWorkspaceId_Call

type MonitorCmd added in v0.7.0

type MonitorCmd struct {
	Cmd  *cobra.Command
	Opts MonitorOpts
	Time api.Time
	Http csio.HttpServer
	Exec csio.Exec
}

func (*MonitorCmd) NewProxy added in v0.8.0

func (c *MonitorCmd) NewProxy() (*Proxy, error)

NewProxy creates and returns a new Proxy instance.

func (*MonitorCmd) RunCommandWithHealthcheck added in v0.8.0

func (c *MonitorCmd) RunCommandWithHealthcheck(ctx context.Context, cmdArgs []string) error

RunCommandWithMetrics continuously runs the given command, streams its output, and reports Prometheus metrics. It implements a restart delay of 5 seconds if a non-zero exit code occurs within 1 second of the command starting. The metrics will be served on the specified listenAddr.

func (*MonitorCmd) RunE added in v0.7.0

func (c *MonitorCmd) RunE(_ *cobra.Command, args []string) error

type MonitorOpts added in v0.7.0

type MonitorOpts struct {
	*GlobalOptions
	ListenAddress      *string
	MaxRestarts        *int
	Forward            *string
	CaCertFile         *string
	InsecureSkipVerify *bool
}

type OpenCmd added in v0.3.0

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

func (*OpenCmd) RunE added in v0.3.0

func (c *OpenCmd) RunE(_ *cobra.Command, args []string) error

type OpenWorkspaceCmd added in v0.3.0

type OpenWorkspaceCmd struct {
	Opts *GlobalOptions
	// contains filtered or unexported fields
}

func (*OpenWorkspaceCmd) OpenWorkspace added in v0.3.0

func (cmd *OpenWorkspaceCmd) OpenWorkspace(browser Browser, client Client, wsId int) error

func (*OpenWorkspaceCmd) RunE added in v0.3.0

func (c *OpenWorkspaceCmd) RunE(_ *cobra.Command, args []string) error

type Proxy added in v0.8.0

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

Proxy represents our HTTP proxy server with a fixed target URL.

func (*Proxy) ServeHTTP added in v0.8.0

func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements the http.Handler interface for our Proxy. This method will be called for every incoming HTTP request.

type ScaleCmd added in v0.19.3

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

type ScaleWorkspaceCmd added in v0.19.3

type ScaleWorkspaceCmd struct {
	Opts ScaleWorkspaceOpts
	// contains filtered or unexported fields
}

func (*ScaleWorkspaceCmd) RunE added in v0.19.3

func (c *ScaleWorkspaceCmd) RunE(_ *cobra.Command, args []string) error

func (*ScaleWorkspaceCmd) ScaleWorkspaceServices added in v0.19.3

func (c *ScaleWorkspaceCmd) ScaleWorkspaceServices(client Client, wsId int) error

type ScaleWorkspaceOpts added in v0.19.3

type ScaleWorkspaceOpts struct {
	*GlobalOptions
	Services []string // each entry is "service=replicas"
}

type StopCmd added in v1.23.0

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

type StopPipelineCmd added in v1.23.0

type StopPipelineCmd struct {
	Opts StopPipelineOpts
	// contains filtered or unexported fields
}

func (*StopPipelineCmd) RunE added in v1.23.0

func (c *StopPipelineCmd) RunE(_ *cobra.Command, args []string) error

func (*StopPipelineCmd) StopPipelineStages added in v1.23.0

func (c *StopPipelineCmd) StopPipelineStages(client Client, wsId int, stages []string) error

type StopPipelineOpts added in v1.23.0

type StopPipelineOpts struct {
	*GlobalOptions
}

type SyncCmd added in v0.12.0

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

type SyncLandscapeCmd added in v0.12.0

type SyncLandscapeCmd struct {
	Opts SyncLandscapeOpts
	// contains filtered or unexported fields
}

func (*SyncLandscapeCmd) RunE added in v0.12.0

func (c *SyncLandscapeCmd) RunE(_ *cobra.Command, args []string) error

func (*SyncLandscapeCmd) SyncLandscape added in v0.12.0

func (c *SyncLandscapeCmd) SyncLandscape(client Client, wsId int) error

type SyncLandscapeOpts added in v0.12.0

type SyncLandscapeOpts struct {
	*GlobalOptions

	Profile string
}

type UpdateCmd added in v0.7.0

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

func (*UpdateCmd) RunE added in v0.7.0

func (c *UpdateCmd) RunE(_ *cobra.Command, args []string) error

type VersionCmd

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

func (*VersionCmd) RunE

func (c *VersionCmd) RunE(_ *cobra.Command, args []string) error

type WakeUpCmd added in v0.17.0

type WakeUpCmd struct {
	Opts WakeUpOptions
	// contains filtered or unexported fields
}

func (*WakeUpCmd) RunE added in v0.17.0

func (c *WakeUpCmd) RunE(_ *cobra.Command, args []string) error

func (*WakeUpCmd) WakeUpWorkspace added in v0.17.0

func (c *WakeUpCmd) WakeUpWorkspace(client Client, wsId int) error

type WakeUpOptions added in v0.17.0

type WakeUpOptions struct {
	*GlobalOptions
	Timeout       time.Duration
	SyncLandscape bool
	Profile       string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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