Documentation
¶
Index ¶
- type Client
- func (c *Client) AddObjects(objs ...runtime.Object) error
- func (c *Client) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (c *Client) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
- func (c *Client) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
- func (c *Client) Get(ctx context.Context, key client.ObjectKey, obj client.Object, ...) error
- func (c *Client) GroupVersionKindFor(object runtime.Object) (schema.GroupVersionKind, error)
- func (c *Client) IsObjectNamespaced(obj runtime.Object) (bool, error)
- func (c *Client) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
- func (c *Client) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (c *Client) PrependReactor(verb string, resource string, ...)
- func (c *Client) RESTMapper() meta.RESTMapper
- func (c *Client) Scheme() *runtime.Scheme
- func (c *Client) Status() client.StatusWriter
- func (c *Client) SubResource(subResource string) client.SubResourceClient
- func (c *Client) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a fake client which implements controller runtime client.
func NewDynamicClient ¶
DEPRECATED. Use NewClient
func (*Client) DeleteAllOf ¶
func (c *Client) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
DeleteAllOf ...
func (*Client) Get ¶
func (c *Client) Get(ctx context.Context, key client.ObjectKey, obj client.Object, opts ...client.GetOption) error
Get retrieves an obj for the given object key from the Kubernetes Cluster.
func (*Client) GroupVersionKindFor ¶
TODO: just a hack
func (*Client) IsObjectNamespaced ¶
TODO: just a hack
func (*Client) List ¶
func (c *Client) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
List retrieves list of objects for a given namespace and list options.
func (*Client) Patch ¶
func (c *Client) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error
Patch ...
func (*Client) PrependReactor ¶
func (*Client) Status ¶
func (c *Client) Status() client.StatusWriter
Status returns fake status writer.
func (*Client) SubResource ¶
func (c *Client) SubResource(subResource string) client.SubResourceClient
SubResource ...
Click to show internal directories.
Click to hide internal directories.