Documentation ¶
Overview ¶
Package configmap is a generated GoMock package.
Index ¶
- func NewApplySpec(id, namespace string, stringData map[string]string) *corev1.ConfigMapApplyConfiguration
- func NewSpec(id, namespace string, stringData map[string]string) *v1.ConfigMap
- type Client
- func (c *Client) Apply(ctx context.Context, id string, stringData map[string]string) error
- func (c *Client) Create(ctx context.Context, id string, stringData map[string]string) error
- func (c *Client) Get(ctx context.Context, id string) (map[string]string, error)
- func (c *Client) Update(ctx context.Context, id string, stringData map[string]string) error
- type Interface
- type MockInterface
- func (m *MockInterface) Apply(arg0 context.Context, arg1 string, arg2 map[string]string) error
- func (m *MockInterface) Create(arg0 context.Context, arg1 string, arg2 map[string]string) error
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) Get(arg0 context.Context, arg1 string) (map[string]string, error)
- func (m *MockInterface) Update(arg0 context.Context, arg1 string, arg2 map[string]string) error
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call
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
Types ¶
type Client ¶
type Client struct { ClientSet *kubernetes.Clientset Log *zap.SugaredLogger Namespace string }
Client provide methods to manage configmaps
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) EXPECT ¶ added in v1.9.15
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.
Click to show internal directories.
Click to hide internal directories.