Documentation ¶
Overview ¶
Package namespace is a generated GoMock package.
Index ¶
- type Impl
- type Interface
- type MockInterface
- type MockInterfaceMockRecorder
- type MockInterfaceValidateNamespaceCall
- func (c *MockInterfaceValidateNamespaceCall) Do(f func(context.Context, string, workspaces.Workspace) error) *MockInterfaceValidateNamespaceCall
- func (c *MockInterfaceValidateNamespaceCall) DoAndReturn(f func(context.Context, string, workspaces.Workspace) error) *MockInterfaceValidateNamespaceCall
- func (c *MockInterfaceValidateNamespaceCall) Return(arg0 error) *MockInterfaceValidateNamespaceCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Impl ¶
type Impl struct { }
func (*Impl) ValidateNamespace ¶
func (i *Impl) ValidateNamespace(ctx context.Context, namespace string, workspace workspaces.Workspace) error
ValidateNamespace creates a Kubernetes client and checks if the given namespace exists. If it does not exist, creates it. If unsuccessful, returns an error.
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) ValidateNamespace ¶
func (m *MockInterface) ValidateNamespace(arg0 context.Context, arg1 string, arg2 workspaces.Workspace) error
ValidateNamespace mocks base method.
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) ValidateNamespace ¶
func (mr *MockInterfaceMockRecorder) ValidateNamespace(arg0, arg1, arg2 any) *MockInterfaceValidateNamespaceCall
ValidateNamespace indicates an expected call of ValidateNamespace.
type MockInterfaceValidateNamespaceCall ¶ added in v0.35.0
MockInterfaceValidateNamespaceCall wrap *gomock.Call
func (*MockInterfaceValidateNamespaceCall) Do ¶ added in v0.35.0
func (c *MockInterfaceValidateNamespaceCall) Do(f func(context.Context, string, workspaces.Workspace) error) *MockInterfaceValidateNamespaceCall
Do rewrite *gomock.Call.Do
func (*MockInterfaceValidateNamespaceCall) DoAndReturn ¶ added in v0.35.0
func (c *MockInterfaceValidateNamespaceCall) DoAndReturn(f func(context.Context, string, workspaces.Workspace) error) *MockInterfaceValidateNamespaceCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInterfaceValidateNamespaceCall) Return ¶ added in v0.35.0
func (c *MockInterfaceValidateNamespaceCall) Return(arg0 error) *MockInterfaceValidateNamespaceCall
Return rewrite *gomock.Call.Return