namespace

package
v0.35.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package namespace is a generated GoMock package.

Index

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 Interface

type Interface interface {
	ValidateNamespace(ctx context.Context, namespace string, workspace workspaces.Workspace) 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

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

type MockInterfaceValidateNamespaceCall struct {
	*gomock.Call
}

MockInterfaceValidateNamespaceCall wrap *gomock.Call

func (*MockInterfaceValidateNamespaceCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockInterfaceValidateNamespaceCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockInterfaceValidateNamespaceCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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