Documentation
¶
Index ¶
- func AppendCleanup(ctx context.Context, fn ...Cleanup) context.Context
- func IntoContext(ctx context.Context, client *Client) context.Context
- func RunCleanups(ctx context.Context) error
- type Cleanup
- type Client
- func (c *Client) CreateResource(ctx context.Context, name string) (*examplev1.Resource, Cleanup, error)
- func (c *Client) DeleteResource(ctx context.Context, id string) error
- func (c *Client) GetResource(ctx context.Context, id string) (*examplev1.Resource, error)
- func (c *Client) ListResources(ctx context.Context, limit int32) ([]*examplev1.Resource, string, error)
- func (c *Client) UpdateResource(ctx context.Context, id string, name string) (*examplev1.Resource, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IntoContext ¶ added in v0.0.114
IntoContext returns a child context with the Client within.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
...
func FromContext ¶
FromContext retrieves a Client from the given context.
func (*Client) CreateResource ¶
func (c *Client) CreateResource( ctx context.Context, name string, ) (*examplev1.Resource, Cleanup, error)
...
func (*Client) DeleteResource ¶
...
func (*Client) GetResource ¶
...
Click to show internal directories.
Click to hide internal directories.