cmd

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 License: Apache-2.0 Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

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 ErrResponse struct {
	Status  int    `json:"status"`
	Title   string `json:"title"`
	Detail  string `json:"detail"`
	TraceId string `json:"traceId"`
}

type GlobalOptions

type GlobalOptions struct {
	ApiUrl *string
}

func (GlobalOptions) GetApiUrl

func (o GlobalOptions) GetApiUrl() string

type ListCmd

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

type ListTeamsCmd

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

func (*ListTeamsCmd) RunE

func (l *ListTeamsCmd) RunE(_ *cobra.Command, args []string) (err error)

type ListWorkspacesCmd

type ListWorkspacesCmd struct {
	Opts ListWorkspacesOptions
	// contains filtered or unexported fields
}

func (*ListWorkspacesCmd) ListWorkspaces

func (l *ListWorkspacesCmd) ListWorkspaces(client Client) ([]api.Workspace, error)

func (*ListWorkspacesCmd) RunE

func (l *ListWorkspacesCmd) RunE(_ *cobra.Command, args []string) (err error)

type ListWorkspacesOptions

type ListWorkspacesOptions struct {
	GlobalOptions
	TeamId *int
}

type LogCmd

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

func (*LogCmd) RunE

func (l *LogCmd) RunE(_ *cobra.Command, args []string) (err error)

type LogCmdScope

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

type LogEntry

type LogEntry struct {
	Timestamp string `json:"timestamp"`
	Kind      string `json:"kind"`
	Data      string `json:"data"`
}

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

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

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() ([]api.Team, error)) *MockClient_ListTeams_Call

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 SSE

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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