Documentation
¶
Index ¶
- func Execute()
- type Client
- type ErrResponse
- type GlobalOptions
- type ListCmd
- type ListTeamsCmd
- type ListWorkspacesCmd
- type ListWorkspacesOptions
- type LogCmd
- type LogCmdScope
- type LogEntry
- type MockClient
- type MockClient_Expecter
- type MockClient_ListTeams_Call
- type MockClient_ListWorkspaces_Call
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface {
ListTeams() ([]api.Team, error)
ListWorkspaces(teamId int) ([]api.Workspace, error)
}
func NewClient ¶
func NewClient(opts GlobalOptions) (Client, error)
type ErrResponse ¶
type GlobalOptions ¶
type GlobalOptions struct {
ApiUrl *string
}
func (GlobalOptions) GetApiUrl ¶
func (o GlobalOptions) GetApiUrl() string
type ListTeamsCmd ¶
type ListTeamsCmd struct {
// contains filtered or unexported fields
}
type ListWorkspacesCmd ¶
type ListWorkspacesCmd struct {
Opts ListWorkspacesOptions
// contains filtered or unexported fields
}
func (*ListWorkspacesCmd) ListWorkspaces ¶
func (l *ListWorkspacesCmd) ListWorkspaces(client Client) ([]api.Workspace, error)
type ListWorkspacesOptions ¶
type ListWorkspacesOptions struct {
GlobalOptions
TeamId *int
}
type LogCmdScope ¶
type LogCmdScope struct {
// contains filtered or unexported fields
}
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) EXPECT ¶
func (_m *MockClient) EXPECT() *MockClient_Expecter
func (*MockClient) ListTeams ¶
func (_mock *MockClient) ListTeams() ([]api.Team, error)
ListTeams 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
type MockClient_Expecter ¶
type MockClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockClient_Expecter) ListTeams ¶
func (_e *MockClient_Expecter) ListTeams() *MockClient_ListTeams_Call
ListTeams is a helper method to define mock.On call
func (*MockClient_Expecter) ListWorkspaces ¶
func (_e *MockClient_Expecter) ListWorkspaces(teamId interface{}) *MockClient_ListWorkspaces_Call
ListWorkspaces is a helper method to define mock.On call
- teamId
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(vs []api.Team, err error) *MockClient_ListTeams_Call
func (*MockClient_ListTeams_Call) Run ¶
func (_c *MockClient_ListTeams_Call) Run(run func()) *MockClient_ListTeams_Call
func (*MockClient_ListTeams_Call) RunAndReturn ¶
func (_c *MockClient_ListTeams_Call) RunAndReturn(run func() ([]api.Team, error)) *MockClient_ListTeams_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(vs []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