Documentation
¶
Index ¶
- type Client
- type SDKClient
- func (c *SDKClient) Create(object opSdk.Object) error
- func (c *SDKClient) Delete(object opSdk.Object, opts ...opSdk.DeleteOption) error
- func (c *SDKClient) Get(into opSdk.Object, opts ...opSdk.GetOption) error
- func (c *SDKClient) List(namespace string, into opSdk.Object, opts ...opSdk.ListOption) error
- func (c *SDKClient) Patch(object opSdk.Object, pt types.PatchType, patch []byte) error
- func (c *SDKClient) Update(object opSdk.Object) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Create(object opSdk.Object) error
Patch(object opSdk.Object, pt types.PatchType, patch []byte) error
Update(object opSdk.Object) error
Delete(object opSdk.Object, opts ...opSdk.DeleteOption) error
Get(into opSdk.Object, opts ...opSdk.GetOption) error
List(namespace string, into opSdk.Object, opts ...opSdk.ListOption) error
}
Client is an interface representing an operator-sdk client, this is needed to mock the operator-sdk client in tests.
type SDKClient ¶
type SDKClient struct{}
SDKClient represents the operator-sdk client
Click to show internal directories.
Click to hide internal directories.