Documentation ¶
Index ¶
- type Client
- func (c *Client) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (c *Client) CreateCapture() CreateCapture
- 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) GetStatus() *Status
- 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) RESTMapper() meta.RESTMapper
- func (c *Client) Scheme() *runtime.Scheme
- func (c *Client) Status() client.StatusWriter
- func (c *Client) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
- func (c *Client) UpdateCapture() UpdateCapture
- type ClientOption
- type Create
- type CreateCapture
- type Get
- type GetCapture
- type List
- type ListCapture
- type ParameterCapture
- type RestMapper
- func (r *RestMapper) KindFor(resource schema.GroupVersionResource) (schema.GroupVersionKind, error)
- func (r *RestMapper) KindsFor(resource schema.GroupVersionResource) ([]schema.GroupVersionKind, error)
- func (r *RestMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*meta.RESTMapping, error)
- func (r *RestMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*meta.RESTMapping, error)
- func (r *RestMapper) ResourceFor(input schema.GroupVersionResource) (schema.GroupVersionResource, error)
- func (r *RestMapper) ResourceSingularizer(resource string) (singular string, err error)
- func (r *RestMapper) ResourcesFor(input schema.GroupVersionResource) ([]schema.GroupVersionResource, error)
- type Status
- type StatusUpdate
- type StatusUpdateCapture
- type Update
- type UpdateCapture
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
}
func NewClient ¶
func NewClient(opts ...ClientOption) *Client
func (*Client) CreateCapture ¶
func (c *Client) CreateCapture() CreateCapture
func (*Client) DeleteAllOf ¶
func (*Client) List ¶
func (c *Client) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
func (*Client) RESTMapper ¶
func (c *Client) RESTMapper() meta.RESTMapper
func (*Client) Status ¶
func (c *Client) Status() client.StatusWriter
func (*Client) UpdateCapture ¶
func (c *Client) UpdateCapture() UpdateCapture
type ClientOption ¶
type ClientOption func(*Client)
func WithCreate ¶
func WithCreate(b Create) ClientOption
func WithGet ¶
func WithGet(g Get) ClientOption
func WithList ¶
func WithList(l List) ClientOption
func WithStatus ¶
func WithStatus(s *Status) ClientOption
func WithUpdate ¶
func WithUpdate(u Update) ClientOption
type Create ¶
type Create struct { Error error Capture CreateCapture }
type CreateCapture ¶
type CreateCapture struct { ParameterCapture Objects []client.Object }
type GetCapture ¶
type GetCapture struct {
ParameterCapture
}
type List ¶
type List struct { ObjectList client.ObjectList Error error Capture ListCapture }
type ListCapture ¶
type ListCapture struct {
ParameterCapture
}
type ParameterCapture ¶
type ParameterCapture struct {
Called int
}
type RestMapper ¶
type RestMapper struct{}
func NewRestMapper ¶
func NewRestMapper() *RestMapper
func (*RestMapper) KindFor ¶
func (r *RestMapper) KindFor(resource schema.GroupVersionResource) (schema.GroupVersionKind, error)
func (*RestMapper) KindsFor ¶
func (r *RestMapper) KindsFor(resource schema.GroupVersionResource) ([]schema.GroupVersionKind, error)
func (*RestMapper) RESTMapping ¶
func (r *RestMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*meta.RESTMapping, error)
func (*RestMapper) RESTMappings ¶
func (r *RestMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*meta.RESTMapping, error)
func (*RestMapper) ResourceFor ¶
func (r *RestMapper) ResourceFor(input schema.GroupVersionResource) (schema.GroupVersionResource, error)
func (*RestMapper) ResourceSingularizer ¶
func (r *RestMapper) ResourceSingularizer(resource string) (singular string, err error)
func (*RestMapper) ResourcesFor ¶
func (r *RestMapper) ResourcesFor(input schema.GroupVersionResource) ([]schema.GroupVersionResource, error)
type Status ¶
type Status struct {
// contains filtered or unexported fields
}
func (*Status) UpdateCapture ¶
func (s *Status) UpdateCapture() StatusUpdateCapture
type StatusUpdate ¶
type StatusUpdate struct { Error error Capture StatusUpdateCapture }
type StatusUpdateCapture ¶
type StatusUpdateCapture struct { ParameterCapture Objects []client.Object }
type Update ¶
type Update struct { Error error Capture UpdateCapture }
type UpdateCapture ¶
type UpdateCapture struct { ParameterCapture Objects []client.Object }
Click to show internal directories.
Click to hide internal directories.