delete

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: 8 Imported by: 1 module, 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 AddDeleteCmd

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

func AddDeleteTeamCmd

func AddDeleteTeamCmd(delete *cobra.Command, opts shared.RootOptions)

func AddDeleteTeamMemberCmd

func AddDeleteTeamMemberCmd(delete *cobra.Command, opts shared.RootOptions)

func AddDeleteWorkspaceCmd

func AddDeleteWorkspaceCmd(delete *cobra.Command, opts shared.RootOptions)

Types

type Client

type Client interface {
	GetWorkspace(workspaceId int) (api.Workspace, error)
	DeleteWorkspace(wsId int) error
	DeleteTeam(teamId int) error
	RemoveTeamMember(teamId int, userId int) error
}

type DeleteCmd

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

type DeleteTeamCmd

type DeleteTeamCmd struct {
	Opts          DeleteTeamOpts
	ClientFactory func(shared.RootOptions) (Client, error)
	// contains filtered or unexported fields
}

func (*DeleteTeamCmd) RunE

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

type DeleteTeamMemberCmd

type DeleteTeamMemberCmd struct {
	Opts          DeleteTeamMemberOpts
	ClientFactory func(shared.RootOptions) (Client, error)
	// contains filtered or unexported fields
}

func (*DeleteTeamMemberCmd) DeleteTeamMember

func (c *DeleteTeamMemberCmd) DeleteTeamMember(client Client, teamId int, userId int) error

func (*DeleteTeamMemberCmd) RunE

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

type DeleteTeamMemberOpts

type DeleteTeamMemberOpts struct {
	shared.RootOptions
	UserId int
}

type DeleteTeamOpts

type DeleteTeamOpts struct {
	shared.RootOptions
}

type DeleteWorkspaceCmd

type DeleteWorkspaceCmd struct {
	Opts          DeleteWorkspaceOpts
	Prompt        Prompt
	ClientFactory func(shared.RootOptions) (Client, error)
	// contains filtered or unexported fields
}

func (*DeleteWorkspaceCmd) DeleteWorkspace

func (c *DeleteWorkspaceCmd) DeleteWorkspace(client Client, wsId int) error

func (*DeleteWorkspaceCmd) RunE

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

type DeleteWorkspaceOpts

type DeleteWorkspaceOpts struct {
	shared.RootOptions
	Confirmed *bool
}

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

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

DeleteTeam provides a mock function for the type MockClient

func (*MockClient) DeleteWorkspace

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

DeleteWorkspace provides a mock function for the type MockClient

func (*MockClient) EXPECT

func (_m *MockClient) EXPECT() *MockClient_Expecter

func (*MockClient) GetWorkspace

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

GetWorkspace provides a mock function for the type MockClient

func (*MockClient) RemoveTeamMember

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

RemoveTeamMember provides a mock function for the type MockClient

type MockClient_DeleteTeam_Call

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

func (*MockClient_DeleteTeam_Call) Run

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

func (*MockClient_DeleteTeam_Call) RunAndReturn

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

type MockClient_DeleteWorkspace_Call

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

func (*MockClient_DeleteWorkspace_Call) Run

func (*MockClient_DeleteWorkspace_Call) RunAndReturn

type MockClient_Expecter

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

func (*MockClient_Expecter) DeleteTeam

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

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

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

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

type MockClient_GetWorkspace_Call

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

func (*MockClient_GetWorkspace_Call) Run

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

func (*MockClient_GetWorkspace_Call) RunAndReturn

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

type MockClient_RemoveTeamMember_Call

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

func (*MockClient_RemoveTeamMember_Call) Run

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

func (*MockClient_RemoveTeamMember_Call) RunAndReturn

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

type MockPrompt

type MockPrompt struct {
	mock.Mock
}

MockPrompt is an autogenerated mock type for the Prompt type

func NewMockPrompt

func NewMockPrompt(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPrompt

NewMockPrompt creates a new instance of MockPrompt. 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 (*MockPrompt) EXPECT

func (_m *MockPrompt) EXPECT() *MockPrompt_Expecter

func (*MockPrompt) InputPrompt

func (_mock *MockPrompt) InputPrompt(prompt string) string

InputPrompt provides a mock function for the type MockPrompt

type MockPrompt_Expecter

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

func (*MockPrompt_Expecter) InputPrompt

func (_e *MockPrompt_Expecter) InputPrompt(prompt any) *MockPrompt_InputPrompt_Call

InputPrompt is a helper method to define mock.On call

  • prompt string

type MockPrompt_InputPrompt_Call

type MockPrompt_InputPrompt_Call struct {
	*mock.Call
}

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

func (*MockPrompt_InputPrompt_Call) Return

func (*MockPrompt_InputPrompt_Call) Run

func (*MockPrompt_InputPrompt_Call) RunAndReturn

func (_c *MockPrompt_InputPrompt_Call) RunAndReturn(run func(prompt string) string) *MockPrompt_InputPrompt_Call

type Prompt

type Prompt interface {
	InputPrompt(prompt string) string
}

Jump to

Keyboard shortcuts

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