Documentation ¶
Overview ¶
Package state is a generated GoMock package.
Index ¶
- func Wrap(s State, f func(State, *cobra.Command, []string) error) func(*cobra.Command, []string) error
- func WrapCtx(ctx context.Context, fn func(context.Context, *cobra.Command, []string) error) func(*cobra.Command, []string) error
- type ActionWaiter
- type MockActionWaiter
- type MockActionWaiterMockRecorder
- type MockTokenEnsurer
- type MockTokenEnsurerMockRecorder
- type State
- type TokenEnsurer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActionWaiter ¶ added in v1.23.0
type MockActionWaiter ¶ added in v1.23.0
type MockActionWaiter struct {
// contains filtered or unexported fields
}
MockActionWaiter is a mock of ActionWaiter interface.
func NewMockActionWaiter ¶ added in v1.23.0
func NewMockActionWaiter(ctrl *gomock.Controller) *MockActionWaiter
NewMockActionWaiter creates a new mock instance.
func (*MockActionWaiter) EXPECT ¶ added in v1.23.0
func (m *MockActionWaiter) EXPECT() *MockActionWaiterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockActionWaiter) WaitForActions ¶ added in v1.23.0
func (m *MockActionWaiter) WaitForActions(arg0 context.Context, arg1 *cobra.Command, arg2 ...*hcloud.Action) error
WaitForActions mocks base method.
type MockActionWaiterMockRecorder ¶ added in v1.23.0
type MockActionWaiterMockRecorder struct {
// contains filtered or unexported fields
}
MockActionWaiterMockRecorder is the mock recorder for MockActionWaiter.
func (*MockActionWaiterMockRecorder) WaitForActions ¶ added in v1.23.0
func (mr *MockActionWaiterMockRecorder) WaitForActions(arg0, arg1 any, arg2 ...any) *gomock.Call
WaitForActions indicates an expected call of WaitForActions.
type MockTokenEnsurer ¶ added in v1.23.0
type MockTokenEnsurer struct {
// contains filtered or unexported fields
}
MockTokenEnsurer is a mock of TokenEnsurer interface.
func NewMockTokenEnsurer ¶ added in v1.23.0
func NewMockTokenEnsurer(ctrl *gomock.Controller) *MockTokenEnsurer
NewMockTokenEnsurer creates a new mock instance.
func (*MockTokenEnsurer) EXPECT ¶ added in v1.23.0
func (m *MockTokenEnsurer) EXPECT() *MockTokenEnsurerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTokenEnsurer) EnsureToken ¶ added in v1.23.0
func (m *MockTokenEnsurer) EnsureToken(cmd *cobra.Command, args []string) error
EnsureToken mocks base method.
type MockTokenEnsurerMockRecorder ¶ added in v1.23.0
type MockTokenEnsurerMockRecorder struct {
// contains filtered or unexported fields
}
MockTokenEnsurerMockRecorder is the mock recorder for MockTokenEnsurer.
func (*MockTokenEnsurerMockRecorder) EnsureToken ¶ added in v1.23.0
func (mr *MockTokenEnsurerMockRecorder) EnsureToken(cmd, args any) *gomock.Call
EnsureToken indicates an expected call of EnsureToken.