Versions in this module Expand all Collapse all v0 v0.1.0 May 19, 2025 Changes in this version type Client + SetEnvVarOnWorkspace func(workspaceId int, vars map[string]string) error + type Env interface + GetApiToken func() (string, error) + GetApiUrl func() string + GetTeamId func() (int, error) + GetWorkspaceId func() (int, error) type GlobalOptions + Env Env + TeamId *int + WorkspaceId *int + func (o GlobalOptions) GetTeamId() (int, error) + func (o GlobalOptions) GetWorkspaceId() (int, error) type MockClient + func (_mock *MockClient) SetEnvVarOnWorkspace(workspaceId int, vars map[string]string) error + func (_mock *MockClient) StartPipelines(workspaceId int, pipelineStage string) error type MockClient_Expecter + func (_e *MockClient_Expecter) SetEnvVarOnWorkspace(workspaceId interface{}, vars interface{}) *MockClient_SetEnvVarOnWorkspace_Call + func (_e *MockClient_Expecter) StartPipelines(workspaceId interface{}, pipelineStage interface{}) *MockClient_StartPipelines_Call + type MockClient_SetEnvVarOnWorkspace_Call struct + 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_StartPipelines_Call struct + func (_c *MockClient_StartPipelines_Call) Return(err error) *MockClient_StartPipelines_Call + func (_c *MockClient_StartPipelines_Call) Run(run func(workspaceId int, pipelineStage string)) *MockClient_StartPipelines_Call + func (_c *MockClient_StartPipelines_Call) RunAndReturn(run func(workspaceId int, pipelineStage string) error) *MockClient_StartPipelines_Call + type MockEnv struct + func NewMockEnv(t interface{ ... }) *MockEnv + func (_m *MockEnv) EXPECT() *MockEnv_Expecter + func (_mock *MockEnv) GetApiToken() (string, error) + func (_mock *MockEnv) GetApiUrl() string + func (_mock *MockEnv) GetTeamId() (int, error) + func (_mock *MockEnv) GetWorkspaceId() (int, error) + type MockEnv_Expecter struct + func (_e *MockEnv_Expecter) GetApiToken() *MockEnv_GetApiToken_Call + func (_e *MockEnv_Expecter) GetApiUrl() *MockEnv_GetApiUrl_Call + func (_e *MockEnv_Expecter) GetTeamId() *MockEnv_GetTeamId_Call + func (_e *MockEnv_Expecter) GetWorkspaceId() *MockEnv_GetWorkspaceId_Call + type MockEnv_GetApiToken_Call struct + func (_c *MockEnv_GetApiToken_Call) Return(s string, err error) *MockEnv_GetApiToken_Call + func (_c *MockEnv_GetApiToken_Call) Run(run func()) *MockEnv_GetApiToken_Call + func (_c *MockEnv_GetApiToken_Call) RunAndReturn(run func() (string, error)) *MockEnv_GetApiToken_Call + type MockEnv_GetApiUrl_Call struct + func (_c *MockEnv_GetApiUrl_Call) Return(s string) *MockEnv_GetApiUrl_Call + func (_c *MockEnv_GetApiUrl_Call) Run(run func()) *MockEnv_GetApiUrl_Call + func (_c *MockEnv_GetApiUrl_Call) RunAndReturn(run func() string) *MockEnv_GetApiUrl_Call + type MockEnv_GetTeamId_Call struct + func (_c *MockEnv_GetTeamId_Call) Return(n int, err error) *MockEnv_GetTeamId_Call + func (_c *MockEnv_GetTeamId_Call) Run(run func()) *MockEnv_GetTeamId_Call + func (_c *MockEnv_GetTeamId_Call) RunAndReturn(run func() (int, error)) *MockEnv_GetTeamId_Call + type MockEnv_GetWorkspaceId_Call struct + func (_c *MockEnv_GetWorkspaceId_Call) Return(n int, err error) *MockEnv_GetWorkspaceId_Call + func (_c *MockEnv_GetWorkspaceId_Call) Run(run func()) *MockEnv_GetWorkspaceId_Call + func (_c *MockEnv_GetWorkspaceId_Call) RunAndReturn(run func() (int, error)) *MockEnv_GetWorkspaceId_Call + type SetEnvVarCmd struct + Opts SetEnvVarOptions + func (l *SetEnvVarCmd) RunE(_ *cobra.Command, args []string) (err error) + func (l *SetEnvVarCmd) SetEnvironmentVariables(client Client) (err error) + type SetEnvVarOptions struct + EnvVar *[]string v0.0.1 May 9, 2025 Changes in this version + func Execute() + type Client interface + ListTeams func() ([]api.Team, error) + ListWorkspaces func(teamId int) ([]api.Workspace, error) + func NewClient(opts GlobalOptions) (Client, error) + type ErrResponse struct + Detail string + Status int + Title string + TraceId string + type GlobalOptions struct + ApiUrl *string + func (o GlobalOptions) GetApiUrl() string + type ListCmd struct + type ListTeamsCmd struct + func (l *ListTeamsCmd) RunE(_ *cobra.Command, args []string) (err error) + type ListWorkspacesCmd struct + Opts ListWorkspacesOptions + func (l *ListWorkspacesCmd) ListWorkspaces(client Client) ([]api.Workspace, error) + func (l *ListWorkspacesCmd) RunE(_ *cobra.Command, args []string) (err error) + type ListWorkspacesOptions struct + TeamId *int + type LogCmd struct + func (l *LogCmd) RunE(_ *cobra.Command, args []string) (err error) + type LogCmdScope struct + type LogEntry struct + Data string + Kind string + Timestamp string + type MockClient struct + func NewMockClient(t interface{ ... }) *MockClient + func (_m *MockClient) EXPECT() *MockClient_Expecter + func (_mock *MockClient) ListTeams() ([]api.Team, error) + func (_mock *MockClient) ListWorkspaces(teamId int) ([]api.Workspace, error) + type MockClient_Expecter struct + func (_e *MockClient_Expecter) ListTeams() *MockClient_ListTeams_Call + func (_e *MockClient_Expecter) ListWorkspaces(teamId interface{}) *MockClient_ListWorkspaces_Call + type MockClient_ListTeams_Call struct + func (_c *MockClient_ListTeams_Call) Return(vs []api.Team, err error) *MockClient_ListTeams_Call + func (_c *MockClient_ListTeams_Call) Run(run func()) *MockClient_ListTeams_Call + func (_c *MockClient_ListTeams_Call) RunAndReturn(run func() ([]api.Team, error)) *MockClient_ListTeams_Call + type MockClient_ListWorkspaces_Call struct + func (_c *MockClient_ListWorkspaces_Call) Return(vs []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 SSE struct