Documentation
¶
Overview ¶
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Index ¶
- func AddCurlCmd(rootCmd *cobra.Command, opts *GlobalOptions)
- func AddExecCmd(rootCmd *cobra.Command, opts *GlobalOptions)
- func AddGitCmd(rootCmd *cobra.Command, opts *GlobalOptions)
- func AddGitPullCmd(git *cobra.Command, opts *GlobalOptions)
- func AddGoCmd(rootCmd *cobra.Command)
- func AddLegacyCmds(rootCmd *cobra.Command, opts shared.RootOptions)
- func AddLicensesCmd(rootCmd *cobra.Command)
- func AddMcpCmd(rootCmd *cobra.Command)
- func AddMonitorCmd(rootCmd *cobra.Command, opts *GlobalOptions)
- func AddOpenCmd(rootCmd *cobra.Command, opts *GlobalOptions)
- func AddOpenWorkspaceCmd(open *cobra.Command, opts *GlobalOptions)
- func AddScaleCmd(rootCmd *cobra.Command, opts *GlobalOptions)
- func AddScaleWorkspaceCmd(scale *cobra.Command, opts *GlobalOptions)
- func AddStopCmd(rootCmd *cobra.Command, opts *GlobalOptions)
- func AddStopPipelineCmd(stop *cobra.Command, opts *GlobalOptions)
- func AddSyncCmd(rootCmd *cobra.Command, opts *GlobalOptions)
- func AddSyncLandscapeCmd(sync *cobra.Command, opts *GlobalOptions)
- func AddUpdateCmd(rootCmd *cobra.Command)
- func AddVersionCmd(rootCmd *cobra.Command)
- func AddWakeUpCmd(rootCmd *cobra.Command, opts *GlobalOptions)
- func Execute()
- func GetRootCmd() *cobra.Command
- func SelfUpdate() error
- type Browser
- type Client
- type CommandExecutor
- type CurlCmd
- type CurlOptions
- type DefaultCommandExecutor
- type Env
- type ExecCmd
- type ExecOptions
- type GitCmd
- type GitPullCmd
- type GitPullOpts
- type GlobalOptions
- func (o GlobalOptions) GetApiToken() (string, error)
- func (o GlobalOptions) GetApiUrl() string
- func (o GlobalOptions) GetOrgId() (string, error)
- func (o GlobalOptions) GetTeamId() (int, error)
- func (o GlobalOptions) GetVerbose() bool
- func (o GlobalOptions) GetWorkspaceId() (int, error)
- func (o GlobalOptions) NewClient() (*api.Client, error)
- type GoCmd
- type LicensesCmd
- type McpCmd
- type MockBrowser
- type MockBrowser_Expecter
- type MockBrowser_OpenIde_Call
- type MockClient
- func (_mock *MockClient) AddTeamMember(teamId int, email string, role int) error
- func (_mock *MockClient) CreateOrganization(name string, adminEmail string) (*api.Organization, error)
- func (_mock *MockClient) CreateTeam(orgId string, name string, dcId int) (*api.Team, error)
- func (_mock *MockClient) DeleteTeam(teamId int) error
- func (_mock *MockClient) DeleteWorkspace(wsId int) error
- func (_mock *MockClient) DeployLandscape(wsId int, profile string) error
- func (_mock *MockClient) DeployWorkspace(args api.DeployWorkspaceArgs) (*api.Workspace, error)
- func (_m *MockClient) EXPECT() *MockClient_Expecter
- func (_mock *MockClient) ExecCommand(workspaceId int, command string, workdir string, env map[string]string) (string, string, error)
- func (_mock *MockClient) GetPipelineState(wsId int, stage string) ([]api.PipelineStatus, error)
- func (_mock *MockClient) GetWorkspace(workspaceId int) (api.Workspace, error)
- func (_mock *MockClient) GitPull(wsId int, remote string, branch string) error
- func (_mock *MockClient) ListBaseimages() ([]api.Baseimage, error)
- func (_mock *MockClient) ListOrganizations() ([]api.Organization, error)
- func (_mock *MockClient) ListTeamMembers(teamId int) ([]api.TeamMember, error)
- func (_mock *MockClient) ListTeams(orgId string) ([]api.Team, error)
- func (_mock *MockClient) ListWorkspacePlans() ([]api.WorkspacePlan, error)
- func (_mock *MockClient) ListWorkspaces(teamId int) ([]api.Workspace, error)
- func (_mock *MockClient) RemoveTeamMember(teamId int, userId int) error
- func (_mock *MockClient) ScaleLandscapeServices(wsId int, services map[string]int) error
- func (_mock *MockClient) ScaleWorkspace(wsId int, replicas int) error
- func (_mock *MockClient) SetEnvVarOnWorkspace(workspaceId int, vars map[string]string) error
- func (_mock *MockClient) StartPipelineStage(wsId int, profile string, stage string) error
- func (_mock *MockClient) StopPipelineStage(wsId int, stage string) error
- func (_mock *MockClient) WaitForWorkspaceRunning(workspace *api.Workspace, timeout time.Duration) error
- func (_mock *MockClient) WorkspaceStatus(workspaceId int) (*api.WorkspaceStatus, error)
- type MockClient_AddTeamMember_Call
- func (_c *MockClient_AddTeamMember_Call) Return(err error) *MockClient_AddTeamMember_Call
- func (_c *MockClient_AddTeamMember_Call) Run(run func(teamId int, email string, role int)) *MockClient_AddTeamMember_Call
- func (_c *MockClient_AddTeamMember_Call) RunAndReturn(run func(teamId int, email string, role int) error) *MockClient_AddTeamMember_Call
- type MockClient_CreateOrganization_Call
- func (_c *MockClient_CreateOrganization_Call) Return(organization *api.Organization, err error) *MockClient_CreateOrganization_Call
- func (_c *MockClient_CreateOrganization_Call) Run(run func(name string, adminEmail string)) *MockClient_CreateOrganization_Call
- func (_c *MockClient_CreateOrganization_Call) RunAndReturn(run func(name string, adminEmail string) (*api.Organization, error)) *MockClient_CreateOrganization_Call
- type MockClient_CreateTeam_Call
- func (_c *MockClient_CreateTeam_Call) Return(team *api.Team, err error) *MockClient_CreateTeam_Call
- func (_c *MockClient_CreateTeam_Call) Run(run func(orgId string, name string, dcId int)) *MockClient_CreateTeam_Call
- func (_c *MockClient_CreateTeam_Call) RunAndReturn(run func(orgId string, name string, dcId int) (*api.Team, error)) *MockClient_CreateTeam_Call
- type MockClient_DeleteTeam_Call
- type MockClient_DeleteWorkspace_Call
- func (_c *MockClient_DeleteWorkspace_Call) Return(err error) *MockClient_DeleteWorkspace_Call
- func (_c *MockClient_DeleteWorkspace_Call) Run(run func(wsId int)) *MockClient_DeleteWorkspace_Call
- func (_c *MockClient_DeleteWorkspace_Call) RunAndReturn(run func(wsId int) error) *MockClient_DeleteWorkspace_Call
- type MockClient_DeployLandscape_Call
- func (_c *MockClient_DeployLandscape_Call) Return(err error) *MockClient_DeployLandscape_Call
- func (_c *MockClient_DeployLandscape_Call) Run(run func(wsId int, profile string)) *MockClient_DeployLandscape_Call
- func (_c *MockClient_DeployLandscape_Call) RunAndReturn(run func(wsId int, profile string) error) *MockClient_DeployLandscape_Call
- type MockClient_DeployWorkspace_Call
- func (_c *MockClient_DeployWorkspace_Call) Return(workspace *api.Workspace, err error) *MockClient_DeployWorkspace_Call
- func (_c *MockClient_DeployWorkspace_Call) Run(run func(args api.DeployWorkspaceArgs)) *MockClient_DeployWorkspace_Call
- func (_c *MockClient_DeployWorkspace_Call) RunAndReturn(run func(args api.DeployWorkspaceArgs) (*api.Workspace, error)) *MockClient_DeployWorkspace_Call
- type MockClient_ExecCommand_Call
- type MockClient_Expecter
- func (_e *MockClient_Expecter) AddTeamMember(teamId any, email any, role any) *MockClient_AddTeamMember_Call
- func (_e *MockClient_Expecter) CreateOrganization(name any, adminEmail any) *MockClient_CreateOrganization_Call
- func (_e *MockClient_Expecter) CreateTeam(orgId any, name any, dcId any) *MockClient_CreateTeam_Call
- func (_e *MockClient_Expecter) DeleteTeam(teamId any) *MockClient_DeleteTeam_Call
- func (_e *MockClient_Expecter) DeleteWorkspace(wsId any) *MockClient_DeleteWorkspace_Call
- func (_e *MockClient_Expecter) DeployLandscape(wsId any, profile any) *MockClient_DeployLandscape_Call
- func (_e *MockClient_Expecter) DeployWorkspace(args any) *MockClient_DeployWorkspace_Call
- func (_e *MockClient_Expecter) ExecCommand(workspaceId any, command any, workdir any, env any) *MockClient_ExecCommand_Call
- func (_e *MockClient_Expecter) GetPipelineState(wsId any, stage any) *MockClient_GetPipelineState_Call
- func (_e *MockClient_Expecter) GetWorkspace(workspaceId any) *MockClient_GetWorkspace_Call
- func (_e *MockClient_Expecter) GitPull(wsId any, remote any, branch any) *MockClient_GitPull_Call
- func (_e *MockClient_Expecter) ListBaseimages() *MockClient_ListBaseimages_Call
- func (_e *MockClient_Expecter) ListOrganizations() *MockClient_ListOrganizations_Call
- func (_e *MockClient_Expecter) ListTeamMembers(teamId any) *MockClient_ListTeamMembers_Call
- func (_e *MockClient_Expecter) ListTeams(orgId any) *MockClient_ListTeams_Call
- func (_e *MockClient_Expecter) ListWorkspacePlans() *MockClient_ListWorkspacePlans_Call
- func (_e *MockClient_Expecter) ListWorkspaces(teamId any) *MockClient_ListWorkspaces_Call
- func (_e *MockClient_Expecter) RemoveTeamMember(teamId any, userId any) *MockClient_RemoveTeamMember_Call
- func (_e *MockClient_Expecter) ScaleLandscapeServices(wsId any, services any) *MockClient_ScaleLandscapeServices_Call
- func (_e *MockClient_Expecter) ScaleWorkspace(wsId any, replicas any) *MockClient_ScaleWorkspace_Call
- func (_e *MockClient_Expecter) SetEnvVarOnWorkspace(workspaceId any, vars any) *MockClient_SetEnvVarOnWorkspace_Call
- func (_e *MockClient_Expecter) StartPipelineStage(wsId any, profile any, stage any) *MockClient_StartPipelineStage_Call
- func (_e *MockClient_Expecter) StopPipelineStage(wsId any, stage any) *MockClient_StopPipelineStage_Call
- func (_e *MockClient_Expecter) WaitForWorkspaceRunning(workspace any, timeout any) *MockClient_WaitForWorkspaceRunning_Call
- func (_e *MockClient_Expecter) WorkspaceStatus(workspaceId any) *MockClient_WorkspaceStatus_Call
- type MockClient_GetPipelineState_Call
- func (_c *MockClient_GetPipelineState_Call) Return(pipelineStatuss []api.PipelineStatus, err error) *MockClient_GetPipelineState_Call
- func (_c *MockClient_GetPipelineState_Call) Run(run func(wsId int, stage string)) *MockClient_GetPipelineState_Call
- func (_c *MockClient_GetPipelineState_Call) RunAndReturn(run func(wsId int, stage string) ([]api.PipelineStatus, error)) *MockClient_GetPipelineState_Call
- type MockClient_GetWorkspace_Call
- func (_c *MockClient_GetWorkspace_Call) Return(workspace api.Workspace, err error) *MockClient_GetWorkspace_Call
- func (_c *MockClient_GetWorkspace_Call) Run(run func(workspaceId int)) *MockClient_GetWorkspace_Call
- func (_c *MockClient_GetWorkspace_Call) RunAndReturn(run func(workspaceId int) (api.Workspace, error)) *MockClient_GetWorkspace_Call
- type MockClient_GitPull_Call
- func (_c *MockClient_GitPull_Call) Return(err error) *MockClient_GitPull_Call
- func (_c *MockClient_GitPull_Call) Run(run func(wsId int, remote string, branch string)) *MockClient_GitPull_Call
- func (_c *MockClient_GitPull_Call) RunAndReturn(run func(wsId int, remote string, branch string) error) *MockClient_GitPull_Call
- type MockClient_ListBaseimages_Call
- func (_c *MockClient_ListBaseimages_Call) Return(baseimages []api.Baseimage, err error) *MockClient_ListBaseimages_Call
- func (_c *MockClient_ListBaseimages_Call) Run(run func()) *MockClient_ListBaseimages_Call
- func (_c *MockClient_ListBaseimages_Call) RunAndReturn(run func() ([]api.Baseimage, error)) *MockClient_ListBaseimages_Call
- type MockClient_ListOrganizations_Call
- func (_c *MockClient_ListOrganizations_Call) Return(organizations []api.Organization, err error) *MockClient_ListOrganizations_Call
- func (_c *MockClient_ListOrganizations_Call) Run(run func()) *MockClient_ListOrganizations_Call
- func (_c *MockClient_ListOrganizations_Call) RunAndReturn(run func() ([]api.Organization, error)) *MockClient_ListOrganizations_Call
- type MockClient_ListTeamMembers_Call
- func (_c *MockClient_ListTeamMembers_Call) Return(teamMembers []api.TeamMember, err error) *MockClient_ListTeamMembers_Call
- func (_c *MockClient_ListTeamMembers_Call) Run(run func(teamId int)) *MockClient_ListTeamMembers_Call
- func (_c *MockClient_ListTeamMembers_Call) RunAndReturn(run func(teamId int) ([]api.TeamMember, error)) *MockClient_ListTeamMembers_Call
- type MockClient_ListTeams_Call
- func (_c *MockClient_ListTeams_Call) Return(teams []api.Team, err error) *MockClient_ListTeams_Call
- func (_c *MockClient_ListTeams_Call) Run(run func(orgId string)) *MockClient_ListTeams_Call
- func (_c *MockClient_ListTeams_Call) RunAndReturn(run func(orgId string) ([]api.Team, error)) *MockClient_ListTeams_Call
- type MockClient_ListWorkspacePlans_Call
- func (_c *MockClient_ListWorkspacePlans_Call) Return(workspacePlans []api.WorkspacePlan, err error) *MockClient_ListWorkspacePlans_Call
- func (_c *MockClient_ListWorkspacePlans_Call) Run(run func()) *MockClient_ListWorkspacePlans_Call
- func (_c *MockClient_ListWorkspacePlans_Call) RunAndReturn(run func() ([]api.WorkspacePlan, error)) *MockClient_ListWorkspacePlans_Call
- type MockClient_ListWorkspaces_Call
- func (_c *MockClient_ListWorkspaces_Call) Return(workspaces []api.Workspace, err error) *MockClient_ListWorkspaces_Call
- func (_c *MockClient_ListWorkspaces_Call) Run(run func(teamId int)) *MockClient_ListWorkspaces_Call
- func (_c *MockClient_ListWorkspaces_Call) RunAndReturn(run func(teamId int) ([]api.Workspace, error)) *MockClient_ListWorkspaces_Call
- type MockClient_RemoveTeamMember_Call
- func (_c *MockClient_RemoveTeamMember_Call) Return(err error) *MockClient_RemoveTeamMember_Call
- func (_c *MockClient_RemoveTeamMember_Call) Run(run func(teamId int, userId int)) *MockClient_RemoveTeamMember_Call
- func (_c *MockClient_RemoveTeamMember_Call) RunAndReturn(run func(teamId int, userId int) error) *MockClient_RemoveTeamMember_Call
- type MockClient_ScaleLandscapeServices_Call
- func (_c *MockClient_ScaleLandscapeServices_Call) Return(err error) *MockClient_ScaleLandscapeServices_Call
- func (_c *MockClient_ScaleLandscapeServices_Call) Run(run func(wsId int, services map[string]int)) *MockClient_ScaleLandscapeServices_Call
- func (_c *MockClient_ScaleLandscapeServices_Call) RunAndReturn(run func(wsId int, services map[string]int) error) *MockClient_ScaleLandscapeServices_Call
- type MockClient_ScaleWorkspace_Call
- func (_c *MockClient_ScaleWorkspace_Call) Return(err error) *MockClient_ScaleWorkspace_Call
- func (_c *MockClient_ScaleWorkspace_Call) Run(run func(wsId int, replicas int)) *MockClient_ScaleWorkspace_Call
- func (_c *MockClient_ScaleWorkspace_Call) RunAndReturn(run func(wsId int, replicas int) error) *MockClient_ScaleWorkspace_Call
- type MockClient_SetEnvVarOnWorkspace_Call
- func (_c *MockClient_SetEnvVarOnWorkspace_Call) Return(err error) *MockClient_SetEnvVarOnWorkspace_Call
- func (_c *MockClient_SetEnvVarOnWorkspace_Call) Run(run func(workspaceId int, vars map[string]string)) *MockClient_SetEnvVarOnWorkspace_Call
- func (_c *MockClient_SetEnvVarOnWorkspace_Call) RunAndReturn(run func(workspaceId int, vars map[string]string) error) *MockClient_SetEnvVarOnWorkspace_Call
- type MockClient_StartPipelineStage_Call
- func (_c *MockClient_StartPipelineStage_Call) Return(err error) *MockClient_StartPipelineStage_Call
- func (_c *MockClient_StartPipelineStage_Call) Run(run func(wsId int, profile string, stage string)) *MockClient_StartPipelineStage_Call
- func (_c *MockClient_StartPipelineStage_Call) RunAndReturn(run func(wsId int, profile string, stage string) error) *MockClient_StartPipelineStage_Call
- type MockClient_StopPipelineStage_Call
- func (_c *MockClient_StopPipelineStage_Call) Return(err error) *MockClient_StopPipelineStage_Call
- func (_c *MockClient_StopPipelineStage_Call) Run(run func(wsId int, stage string)) *MockClient_StopPipelineStage_Call
- func (_c *MockClient_StopPipelineStage_Call) RunAndReturn(run func(wsId int, stage string) error) *MockClient_StopPipelineStage_Call
- type MockClient_WaitForWorkspaceRunning_Call
- func (_c *MockClient_WaitForWorkspaceRunning_Call) Return(err error) *MockClient_WaitForWorkspaceRunning_Call
- func (_c *MockClient_WaitForWorkspaceRunning_Call) Run(run func(workspace *api.Workspace, timeout time.Duration)) *MockClient_WaitForWorkspaceRunning_Call
- func (_c *MockClient_WaitForWorkspaceRunning_Call) RunAndReturn(run func(workspace *api.Workspace, timeout time.Duration) error) *MockClient_WaitForWorkspaceRunning_Call
- type MockClient_WorkspaceStatus_Call
- func (_c *MockClient_WorkspaceStatus_Call) Return(workspaceStatus *api.WorkspaceStatus, err error) *MockClient_WorkspaceStatus_Call
- func (_c *MockClient_WorkspaceStatus_Call) Run(run func(workspaceId int)) *MockClient_WorkspaceStatus_Call
- func (_c *MockClient_WorkspaceStatus_Call) RunAndReturn(run func(workspaceId int) (*api.WorkspaceStatus, error)) *MockClient_WorkspaceStatus_Call
- type MockCommandExecutor
- type MockCommandExecutor_Execute_Call
- type MockCommandExecutor_Expecter
- type MockEnv
- type MockEnv_Expecter
- func (_e *MockEnv_Expecter) GetApiToken() *MockEnv_GetApiToken_Call
- func (_e *MockEnv_Expecter) GetApiUrl() *MockEnv_GetApiUrl_Call
- func (_e *MockEnv_Expecter) GetOrgId() *MockEnv_GetOrgId_Call
- func (_e *MockEnv_Expecter) GetTeamId() *MockEnv_GetTeamId_Call
- func (_e *MockEnv_Expecter) GetWorkspaceId() *MockEnv_GetWorkspaceId_Call
- type MockEnv_GetApiToken_Call
- type MockEnv_GetApiUrl_Call
- type MockEnv_GetOrgId_Call
- type MockEnv_GetTeamId_Call
- type MockEnv_GetWorkspaceId_Call
- type MonitorCmd
- type MonitorOpts
- type OpenCmd
- type OpenWorkspaceCmd
- type Proxy
- type ScaleCmd
- type ScaleWorkspaceCmd
- type ScaleWorkspaceOpts
- type StopCmd
- type StopPipelineCmd
- type StopPipelineOpts
- type SyncCmd
- type SyncLandscapeCmd
- type SyncLandscapeOpts
- type UpdateCmd
- type VersionCmd
- type WakeUpCmd
- type WakeUpOptions
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 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 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 AddVersionCmd ¶
func AddWakeUpCmd ¶ added in v0.17.0
func AddWakeUpCmd(rootCmd *cobra.Command, opts *GlobalOptions)
func GetRootCmd ¶
func SelfUpdate ¶ added in v0.7.0
func SelfUpdate() error
Types ¶
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
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
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
type ExecOptions ¶ added in v0.3.0
type ExecOptions struct {
*GlobalOptions
EnvVar *[]string
WorkDir *string
}
type GitPullCmd ¶ added in v0.10.0
type GitPullCmd struct {
Opts GitPullOpts
// contains filtered or unexported fields
}
GitPullCmd represents the pull command
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)
type LicensesCmd ¶
type LicensesCmd struct {
// contains filtered or unexported fields
}
type MockBrowser ¶ added in v0.3.0
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
func (_e *MockBrowser_Expecter) OpenIde(path any) *MockBrowser_OpenIde_Call
OpenIde is a helper method to define mock.On call
- path string
type MockBrowser_OpenIde_Call ¶ added in v0.3.0
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 (_c *MockBrowser_OpenIde_Call) Return(err error) *MockBrowser_OpenIde_Call
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 ¶
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
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
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 (_c *MockClient_AddTeamMember_Call) Return(err error) *MockClient_AddTeamMember_Call
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
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 (_c *MockClient_CreateOrganization_Call) Return(organization *api.Organization, err error) *MockClient_CreateOrganization_Call
func (*MockClient_CreateOrganization_Call) Run ¶ added in v1.19.0
func (_c *MockClient_CreateOrganization_Call) Run(run func(name string, adminEmail string)) *MockClient_CreateOrganization_Call
func (*MockClient_CreateOrganization_Call) RunAndReturn ¶ added in v1.19.0
func (_c *MockClient_CreateOrganization_Call) RunAndReturn(run func(name string, adminEmail string) (*api.Organization, error)) *MockClient_CreateOrganization_Call
type MockClient_CreateTeam_Call ¶ added in v1.5.0
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 (_c *MockClient_CreateTeam_Call) Return(team *api.Team, err error) *MockClient_CreateTeam_Call
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
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 (_c *MockClient_DeleteTeam_Call) Return(err error) *MockClient_DeleteTeam_Call
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
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 (_c *MockClient_DeleteWorkspace_Call) Return(err error) *MockClient_DeleteWorkspace_Call
func (*MockClient_DeleteWorkspace_Call) Run ¶ added in v0.5.0
func (_c *MockClient_DeleteWorkspace_Call) Run(run func(wsId int)) *MockClient_DeleteWorkspace_Call
func (*MockClient_DeleteWorkspace_Call) RunAndReturn ¶ added in v0.5.0
func (_c *MockClient_DeleteWorkspace_Call) RunAndReturn(run func(wsId int) error) *MockClient_DeleteWorkspace_Call
type MockClient_DeployLandscape_Call ¶ added in v0.12.0
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 (_c *MockClient_DeployLandscape_Call) Return(err error) *MockClient_DeployLandscape_Call
func (*MockClient_DeployLandscape_Call) Run ¶ added in v0.12.0
func (_c *MockClient_DeployLandscape_Call) Run(run func(wsId int, profile string)) *MockClient_DeployLandscape_Call
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
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 (_c *MockClient_DeployWorkspace_Call) Return(workspace *api.Workspace, err error) *MockClient_DeployWorkspace_Call
func (*MockClient_DeployWorkspace_Call) Run ¶ added in v0.4.0
func (_c *MockClient_DeployWorkspace_Call) Run(run func(args api.DeployWorkspaceArgs)) *MockClient_DeployWorkspace_Call
func (*MockClient_DeployWorkspace_Call) RunAndReturn ¶ added in v0.4.0
func (_c *MockClient_DeployWorkspace_Call) RunAndReturn(run func(args api.DeployWorkspaceArgs) (*api.Workspace, error)) *MockClient_DeployWorkspace_Call
type MockClient_ExecCommand_Call ¶ added in v0.3.0
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 (_c *MockClient_ExecCommand_Call) Return(s string, s1 string, err error) *MockClient_ExecCommand_Call
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
func (_e *MockClient_Expecter) ListBaseimages() *MockClient_ListBaseimages_Call
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
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 (_c *MockClient_GetPipelineState_Call) Return(pipelineStatuss []api.PipelineStatus, err error) *MockClient_GetPipelineState_Call
func (*MockClient_GetPipelineState_Call) Run ¶ added in v0.6.0
func (_c *MockClient_GetPipelineState_Call) Run(run func(wsId int, stage string)) *MockClient_GetPipelineState_Call
func (*MockClient_GetPipelineState_Call) RunAndReturn ¶ added in v0.6.0
func (_c *MockClient_GetPipelineState_Call) RunAndReturn(run func(wsId int, stage string) ([]api.PipelineStatus, error)) *MockClient_GetPipelineState_Call
type MockClient_GetWorkspace_Call ¶ added in v0.3.0
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 (_c *MockClient_GetWorkspace_Call) Return(workspace api.Workspace, err error) *MockClient_GetWorkspace_Call
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
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 (_c *MockClient_GitPull_Call) Return(err error) *MockClient_GitPull_Call
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
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 (_c *MockClient_ListBaseimages_Call) Return(baseimages []api.Baseimage, err error) *MockClient_ListBaseimages_Call
func (*MockClient_ListBaseimages_Call) Run ¶ added in v0.13.0
func (_c *MockClient_ListBaseimages_Call) Run(run func()) *MockClient_ListBaseimages_Call
func (*MockClient_ListBaseimages_Call) RunAndReturn ¶ added in v0.13.0
func (_c *MockClient_ListBaseimages_Call) RunAndReturn(run func() ([]api.Baseimage, error)) *MockClient_ListBaseimages_Call
type MockClient_ListOrganizations_Call ¶ added in v1.1.0
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 (_c *MockClient_ListOrganizations_Call) Return(organizations []api.Organization, err error) *MockClient_ListOrganizations_Call
func (*MockClient_ListOrganizations_Call) Run ¶ added in v1.1.0
func (_c *MockClient_ListOrganizations_Call) Run(run func()) *MockClient_ListOrganizations_Call
func (*MockClient_ListOrganizations_Call) RunAndReturn ¶ added in v1.1.0
func (_c *MockClient_ListOrganizations_Call) RunAndReturn(run func() ([]api.Organization, error)) *MockClient_ListOrganizations_Call
type MockClient_ListTeamMembers_Call ¶ added in v1.5.0
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 (_c *MockClient_ListTeamMembers_Call) Return(teamMembers []api.TeamMember, err error) *MockClient_ListTeamMembers_Call
func (*MockClient_ListTeamMembers_Call) Run ¶ added in v1.5.0
func (_c *MockClient_ListTeamMembers_Call) Run(run func(teamId int)) *MockClient_ListTeamMembers_Call
func (*MockClient_ListTeamMembers_Call) RunAndReturn ¶ added in v1.5.0
func (_c *MockClient_ListTeamMembers_Call) RunAndReturn(run func(teamId int) ([]api.TeamMember, error)) *MockClient_ListTeamMembers_Call
type MockClient_ListTeams_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 (_c *MockClient_ListTeams_Call) Return(teams []api.Team, err error) *MockClient_ListTeams_Call
func (*MockClient_ListTeams_Call) Run ¶
func (_c *MockClient_ListTeams_Call) Run(run func(orgId string)) *MockClient_ListTeams_Call
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
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 (_c *MockClient_ListWorkspacePlans_Call) Return(workspacePlans []api.WorkspacePlan, err error) *MockClient_ListWorkspacePlans_Call
func (*MockClient_ListWorkspacePlans_Call) Run ¶ added in v0.4.0
func (_c *MockClient_ListWorkspacePlans_Call) Run(run func()) *MockClient_ListWorkspacePlans_Call
func (*MockClient_ListWorkspacePlans_Call) RunAndReturn ¶ added in v0.4.0
func (_c *MockClient_ListWorkspacePlans_Call) RunAndReturn(run func() ([]api.WorkspacePlan, error)) *MockClient_ListWorkspacePlans_Call
type MockClient_ListWorkspaces_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 (_c *MockClient_ListWorkspaces_Call) Return(workspaces []api.Workspace, err error) *MockClient_ListWorkspaces_Call
func (*MockClient_ListWorkspaces_Call) Run ¶
func (_c *MockClient_ListWorkspaces_Call) Run(run func(teamId int)) *MockClient_ListWorkspaces_Call
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
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 (_c *MockClient_RemoveTeamMember_Call) Return(err error) *MockClient_RemoveTeamMember_Call
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
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 (_c *MockClient_ScaleLandscapeServices_Call) Return(err error) *MockClient_ScaleLandscapeServices_Call
func (*MockClient_ScaleLandscapeServices_Call) Run ¶ added in v0.19.3
func (_c *MockClient_ScaleLandscapeServices_Call) Run(run func(wsId int, services map[string]int)) *MockClient_ScaleLandscapeServices_Call
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
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 (_c *MockClient_ScaleWorkspace_Call) Return(err error) *MockClient_ScaleWorkspace_Call
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 ¶
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 (_c *MockClient_SetEnvVarOnWorkspace_Call) Return(err error) *MockClient_SetEnvVarOnWorkspace_Call
func (*MockClient_SetEnvVarOnWorkspace_Call) Run ¶
func (_c *MockClient_SetEnvVarOnWorkspace_Call) Run(run func(workspaceId int, vars map[string]string)) *MockClient_SetEnvVarOnWorkspace_Call
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
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 (_c *MockClient_StartPipelineStage_Call) Return(err error) *MockClient_StartPipelineStage_Call
func (*MockClient_StartPipelineStage_Call) Run ¶ added in v0.6.0
func (_c *MockClient_StartPipelineStage_Call) Run(run func(wsId int, profile string, stage string)) *MockClient_StartPipelineStage_Call
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
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 (_c *MockClient_StopPipelineStage_Call) Return(err error) *MockClient_StopPipelineStage_Call
func (*MockClient_StopPipelineStage_Call) Run ¶ added in v1.23.0
func (_c *MockClient_StopPipelineStage_Call) Run(run func(wsId int, stage string)) *MockClient_StopPipelineStage_Call
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
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 (_c *MockClient_WaitForWorkspaceRunning_Call) Return(err error) *MockClient_WaitForWorkspaceRunning_Call
func (*MockClient_WaitForWorkspaceRunning_Call) Run ¶ added in v0.17.0
func (_c *MockClient_WaitForWorkspaceRunning_Call) Run(run func(workspace *api.Workspace, timeout time.Duration)) *MockClient_WaitForWorkspaceRunning_Call
func (*MockClient_WaitForWorkspaceRunning_Call) RunAndReturn ¶ added in v0.17.0
func (_c *MockClient_WaitForWorkspaceRunning_Call) RunAndReturn(run func(workspace *api.Workspace, timeout time.Duration) error) *MockClient_WaitForWorkspaceRunning_Call
type MockClient_WorkspaceStatus_Call ¶ added in v0.17.0
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 (_c *MockClient_WorkspaceStatus_Call) Return(workspaceStatus *api.WorkspaceStatus, err error) *MockClient_WorkspaceStatus_Call
func (*MockClient_WorkspaceStatus_Call) Run ¶ added in v0.17.0
func (_c *MockClient_WorkspaceStatus_Call) Run(run func(workspaceId int)) *MockClient_WorkspaceStatus_Call
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
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 (_m *MockCommandExecutor) EXPECT() *MockCommandExecutor_Expecter
type MockCommandExecutor_Execute_Call ¶ added in v0.17.0
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 (_c *MockCommandExecutor_Execute_Call) Return(s string, err error) *MockCommandExecutor_Execute_Call
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
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 ¶
MockEnv is an autogenerated mock type for the Env type
func NewMockEnv ¶
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 ¶
GetApiToken provides a mock function for the type MockEnv
func (*MockEnv) GetWorkspaceId ¶
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 ¶
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 (_c *MockEnv_GetApiToken_Call) Return(s string, err error) *MockEnv_GetApiToken_Call
func (*MockEnv_GetApiToken_Call) Run ¶
func (_c *MockEnv_GetApiToken_Call) Run(run func()) *MockEnv_GetApiToken_Call
func (*MockEnv_GetApiToken_Call) RunAndReturn ¶
func (_c *MockEnv_GetApiToken_Call) RunAndReturn(run func() (string, error)) *MockEnv_GetApiToken_Call
type MockEnv_GetApiUrl_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 (_c *MockEnv_GetApiUrl_Call) Return(s string) *MockEnv_GetApiUrl_Call
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
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 (_c *MockEnv_GetOrgId_Call) Return(s string) *MockEnv_GetOrgId_Call
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 ¶
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 (_c *MockEnv_GetTeamId_Call) Return(n int, err error) *MockEnv_GetTeamId_Call
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 ¶
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 (_c *MockEnv_GetWorkspaceId_Call) Return(n int, err error) *MockEnv_GetWorkspaceId_Call
func (*MockEnv_GetWorkspaceId_Call) Run ¶
func (_c *MockEnv_GetWorkspaceId_Call) Run(run func()) *MockEnv_GetWorkspaceId_Call
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.
type MonitorOpts ¶ added in v0.7.0
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
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.
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 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 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
}
type VersionCmd ¶
type VersionCmd struct {
// contains filtered or unexported fields
}
type WakeUpCmd ¶ added in v0.17.0
type WakeUpCmd struct {
Opts WakeUpOptions
// contains filtered or unexported fields
}
type WakeUpOptions ¶ added in v0.17.0
type WakeUpOptions struct {
*GlobalOptions
Timeout time.Duration
SyncLandscape bool
Profile string
}