configmap

package
v1.12.5-beta006 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package configmap is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApplySpec

func NewApplySpec(id, namespace string, stringData map[string]string) *corev1.ConfigMapApplyConfiguration

NewApplySpec is a method to return configmap apply spec

func NewSpec

func NewSpec(id, namespace string, stringData map[string]string) *v1.ConfigMap

NewSpec is a method to return configmap spec

Types

type Client

type Client struct {
	ClientSet *kubernetes.Clientset
	Log       *zap.SugaredLogger
	Namespace string
}

Client provide methods to manage configmaps

func NewClient

func NewClient(namespace string) (*Client, error)

NewClient is a method to create new configmap client

func (*Client) Apply

func (c *Client) Apply(ctx context.Context, id string, stringData map[string]string) error

Apply is a method to create or update a configmap

func (*Client) Create

func (c *Client) Create(ctx context.Context, id string, stringData map[string]string) error

Create is a method to create new configmap

func (*Client) Get

func (c *Client) Get(ctx context.Context, id string) (map[string]string, error)

Get is a method to retrieve an existing configmap

func (*Client) Update

func (c *Client) Update(ctx context.Context, id string, stringData map[string]string) error

Update is a method to update an existing configmap

type Interface added in v1.9.15

type Interface interface {
	Get(ctx context.Context, id string) (map[string]string, error)
	Create(ctx context.Context, id string, stringData map[string]string) error
	Apply(ctx context.Context, id string, stringData map[string]string) error
	Update(ctx context.Context, id string, stringData map[string]string) error
}

type MockInterface added in v1.9.15

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

MockInterface is a mock of Interface interface.

func NewMockInterface added in v1.9.15

func NewMockInterface(ctrl *gomock.Controller) *MockInterface

NewMockInterface creates a new mock instance.

func (*MockInterface) Apply added in v1.9.15

func (m *MockInterface) Apply(arg0 context.Context, arg1 string, arg2 map[string]string) error

Apply mocks base method.

func (*MockInterface) Create added in v1.9.15

func (m *MockInterface) Create(arg0 context.Context, arg1 string, arg2 map[string]string) error

Create mocks base method.

func (*MockInterface) EXPECT added in v1.9.15

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockInterface) Get added in v1.9.15

func (m *MockInterface) Get(arg0 context.Context, arg1 string) (map[string]string, error)

Get mocks base method.

func (*MockInterface) Update added in v1.9.15

func (m *MockInterface) Update(arg0 context.Context, arg1 string, arg2 map[string]string) error

Update mocks base method.

type MockInterfaceMockRecorder added in v1.9.15

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

MockInterfaceMockRecorder is the mock recorder for MockInterface.

func (*MockInterfaceMockRecorder) Apply added in v1.9.15

func (mr *MockInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call

Apply indicates an expected call of Apply.

func (*MockInterfaceMockRecorder) Create added in v1.9.15

func (mr *MockInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockInterfaceMockRecorder) Get added in v1.9.15

func (mr *MockInterfaceMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockInterfaceMockRecorder) Update added in v1.9.15

func (mr *MockInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

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