k8s

package
v0.0.0-...-e3522e2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package k8s is a generated GoMock package.

Index

Constants

View Source
const (
	DefaultBurstForMaster = rest.DefaultBurst * 10
	DefaultQPSForMaster   = rest.DefaultQPS * 10
)

Variables

View Source
var ClientManager = clientManager{}

Client Manager

Functions

func Init

func Init() error

Types

type MockSecretInterface

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

MockSecretInterface is a mock of SecretInterface interface

func NewMockSecretInterface

func NewMockSecretInterface(ctrl *gomock.Controller) *MockSecretInterface

NewMockSecretInterface creates a new mock instance

func (*MockSecretInterface) DeleteData

func (m *MockSecretInterface) DeleteData() error

DeleteData mocks base method

func (*MockSecretInterface) EXPECT

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

func (*MockSecretInterface) GetData

func (m *MockSecretInterface) GetData() (map[string]string, error)

GetData mocks base method

func (*MockSecretInterface) GetName

func (m *MockSecretInterface) GetName() string

GetName mocks base method

func (*MockSecretInterface) SetData

func (m *MockSecretInterface) SetData(data map[string]string) error

SetData mocks base method

func (*MockSecretInterface) UpdateData

func (m *MockSecretInterface) UpdateData(data map[string]string) error

UpdateData mocks base method

type MockSecretInterfaceMockRecorder

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

MockSecretInterfaceMockRecorder is the mock recorder for MockSecretInterface

func (*MockSecretInterfaceMockRecorder) DeleteData

func (mr *MockSecretInterfaceMockRecorder) DeleteData() *gomock.Call

DeleteData indicates an expected call of DeleteData

func (*MockSecretInterfaceMockRecorder) GetData

GetData indicates an expected call of GetData

func (*MockSecretInterfaceMockRecorder) GetName

GetName indicates an expected call of GetName

func (*MockSecretInterfaceMockRecorder) SetData

func (mr *MockSecretInterfaceMockRecorder) SetData(data interface{}) *gomock.Call

SetData indicates an expected call of SetData

func (*MockSecretInterfaceMockRecorder) UpdateData

func (mr *MockSecretInterfaceMockRecorder) UpdateData(data interface{}) *gomock.Call

UpdateData indicates an expected call of UpdateData

type MockSecretOption

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

MockSecretOption is a mock of SecretOption interface

func NewMockSecretOption

func NewMockSecretOption(ctrl *gomock.Controller) *MockSecretOption

NewMockSecretOption creates a new mock instance

func (*MockSecretOption) EXPECT

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

type MockSecretOptionMockRecorder

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

MockSecretOptionMockRecorder is the mock recorder for MockSecretOption

type Secret

type Secret struct {
	Name string
	// contains filtered or unexported fields
}

Secret implements SecretInterface

func (*Secret) DeleteData

func (c *Secret) DeleteData() (err error)

DeleteData deletes data. Returns an error if one occurs.

func (*Secret) GetData

func (c *Secret) GetData() (data map[string]string, err error)

GetData returns the corresponding Secret data, and an error if there is any.

func (*Secret) GetName

func (c *Secret) GetName() string

GetName returns the Secret name.

func (*Secret) SetData

func (c *Secret) SetData(data map[string]string) (err error)

SetData takes data and sets it. Returns an error if one occurs.

func (*Secret) UpdateData

func (c *Secret) UpdateData(data map[string]string) (err error)

UpdateData takes data and updates it. Returns an error if one occurs.

type SecretInterface

type SecretInterface interface {
	GetName() string
	GetData() (data map[string]string, err error)
	UpdateData(data map[string]string) (err error)
	SetData(data map[string]string) (err error)
	DeleteData() (err error)
}

SecretInterface has methods to work with Secret resources.

func NewSecret

func NewSecret(name string, opts ...SecretOption) SecretInterface

NewSecret returns a Secret

type SecretOption

type SecretOption interface {
	// contains filtered or unexported methods
}

SecretOption has methods to work with Secret option.

func WithClientSet

func WithClientSet(clientSet kubernetes.Interface) SecretOption

WithClientSet sets client set in Secret option

Jump to

Keyboard shortcuts

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