Documentation
¶
Index ¶
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 wraps up the raw OpenAPI client with things to make it useable e.g. authorization and TLS.
func New ¶
func New(client client.Client, options *Options, clientOptions *coreclient.HTTPClientOptions) *Client
New creates a new client.
func (*Client) APIClient ¶
APIClient returns a new OpenAPI client that can be used to access the API from another API.
func (*Client) ControllerClient ¶
func (c *Client) ControllerClient(ctx context.Context, resource metav1.Object) (*openapi.ClientWithResponses, error)
ControllerClient returns a new OpenAPI client that can be used to access the API from another controller. It requires a resource that stores the identity principal information.
type Options ¶
type Options = coreclient.HTTPOptions
func NewOptions ¶
func NewOptions() *Options
NewOptions must be used to create options for consistency.
Click to show internal directories.
Click to hide internal directories.