namespace

package
v0.27.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 4 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) 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) 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) 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 interface{}) *gomock.Call

ValidateNamespace indicates an expected call of ValidateNamespace.

Jump to

Keyboard shortcuts

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