delete

package
v1.49.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: Apache-2.0 Imports: 7 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 AddDeleteOrganizationMemberCmd added in v1.47.0

func AddDeleteOrganizationMemberCmd(parent *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 DeleteCmd

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

type DeleteOrganizationMemberCmd added in v1.47.0

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

func (*DeleteOrganizationMemberCmd) DeleteOrganizationMember added in v1.47.0

func (c *DeleteOrganizationMemberCmd) DeleteOrganizationMember(client shared.Client, orgId string, userId int) error

func (*DeleteOrganizationMemberCmd) RunE added in v1.47.0

type DeleteOrganizationMemberOpts added in v1.47.0

type DeleteOrganizationMemberOpts struct {
	shared.RootOptions
	UserId int
}

type DeleteTeamCmd

type DeleteTeamCmd struct {
	Opts          DeleteTeamOpts
	ClientFactory func(shared.RootOptions) (shared.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) (shared.Client, error)
	// contains filtered or unexported fields
}

func (*DeleteTeamMemberCmd) DeleteTeamMember

func (c *DeleteTeamMemberCmd) DeleteTeamMember(client shared.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) (shared.Client, error)
	// contains filtered or unexported fields
}

func (*DeleteWorkspaceCmd) DeleteWorkspace

func (c *DeleteWorkspaceCmd) DeleteWorkspace(client shared.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 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