Versions in this module Expand all Collapse all v0 v0.1.0 Aug 12, 2022 v0.0.1 Jul 18, 2022 Changes in this version + func WithNewClient(ctx context.Context, o *ClientOptions) context.Context + type Client struct + func ClientFromContext(ctx context.Context) (*Client, bool) + func NewClient(o *ClientOptions) *Client + func (c *Client) CreateNetwork(ctx context.Context, r *types.NetworkRequest) (*types.NetworkResponse, error) + func (c *Client) CreatePool(ctx context.Context, r *types.PoolRequest) (*types.Pool, error) + func (c *Client) CreateProvider(ctx context.Context, r *types.ProviderRequest) (*types.Provider, error) + func (c *Client) DeleteProvider(ctx context.Context, name string) error + func (c *Client) DetailNetwork(ctx context.Context, id string) (*types.Network, error) + func (c *Client) ListNetworks(ctx context.Context) ([]*types.Network, error) + func (c *Client) ListPools(ctx context.Context) (*types.PoolListResponse, error) + func (c *Client) ListProviders(ctx context.Context) (*types.ProviderListResponse, error) + func (c *Client) UpdateProvider(ctx context.Context, name string, r *types.ProviderUpdateRequest) (*types.Provider, error) + func (c *Client) Version(ctx context.Context) (*types.Version, error) + type ClientOptions struct + Client *http.Client + Endpoint string + type OAuth2Authorizer struct + func NewOAuth2Authorizer(o *OAuth2AuthorizerOptions) (*OAuth2Authorizer, error) + func (o *OAuth2Authorizer) Authorize(ctx context.Context) (*oauth2.Token, error) + func (o *OAuth2Authorizer) Close() + func (o *OAuth2Authorizer) GetFromCache(ctx context.Context) (*oauth2.Token, error) + func (o *OAuth2Authorizer) GetToken(ctx context.Context) (*oauth2.Token, error) + func (o *OAuth2Authorizer) NewClient(ctx context.Context, t *oauth2.Token) *http.Client + func (o *OAuth2Authorizer) NewToken(ctx context.Context) (*oauth2.Token, error) + func (o *OAuth2Authorizer) RefreshToken(ctx context.Context, rt string) (*oauth2.Token, error) + func (o *OAuth2Authorizer) SaveToCache(ctx context.Context, t *oauth2.Token) error + func (o *OAuth2Authorizer) Valid(t string) (bool, error) + type OAuth2AuthorizerOptions struct + ClientID string + Issuer string + Scopes []string + TokenDir string