Documentation ¶
Overview ¶
Package k8s is a generated GoMock package.
Index ¶
- Constants
- Variables
- func Init() error
- type MockSecretInterface
- func (m *MockSecretInterface) DeleteData() error
- func (m *MockSecretInterface) EXPECT() *MockSecretInterfaceMockRecorder
- func (m *MockSecretInterface) GetData() (map[string]string, error)
- func (m *MockSecretInterface) GetName() string
- func (m *MockSecretInterface) SetData(data map[string]string) error
- func (m *MockSecretInterface) UpdateData(data map[string]string) error
- type MockSecretInterfaceMockRecorder
- func (mr *MockSecretInterfaceMockRecorder) DeleteData() *gomock.Call
- func (mr *MockSecretInterfaceMockRecorder) GetData() *gomock.Call
- func (mr *MockSecretInterfaceMockRecorder) GetName() *gomock.Call
- func (mr *MockSecretInterfaceMockRecorder) SetData(data interface{}) *gomock.Call
- func (mr *MockSecretInterfaceMockRecorder) UpdateData(data interface{}) *gomock.Call
- type MockSecretOption
- type MockSecretOptionMockRecorder
- type Secret
- type SecretInterface
- type SecretOption
Constants ¶
const ( DefaultBurstForMaster = rest.DefaultBurst * 10 DefaultQPSForMaster = rest.DefaultQPS * 10 )
Variables ¶
var ClientManager = clientManager{}
Client Manager
Functions ¶
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 ¶
func (m *MockSecretInterface) EXPECT() *MockSecretInterfaceMockRecorder
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 ¶
func (mr *MockSecretInterfaceMockRecorder) GetData() *gomock.Call
GetData indicates an expected call of GetData
func (*MockSecretInterfaceMockRecorder) GetName ¶
func (mr *MockSecretInterfaceMockRecorder) GetName() *gomock.Call
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 ¶
func (m *MockSecretOption) EXPECT() *MockSecretOptionMockRecorder
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 ¶
DeleteData deletes data. Returns an error if one occurs.
func (*Secret) GetData ¶
GetData returns the corresponding Secret data, and an error if there is any.
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