Documentation ¶
Index ¶
- func WithNewClient(ctx context.Context, o *ClientOptions) context.Context
- type 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.NetworkListResponse, 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
- type OAuth2Authorizer
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithNewClient ¶
func WithNewClient(ctx context.Context, o *ClientOptions) context.Context
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(o *ClientOptions) *Client
func (*Client) CreateNetwork ¶
func (c *Client) CreateNetwork(ctx context.Context, r *types.NetworkRequest) (*types.NetworkResponse, error)
func (*Client) CreatePool ¶
func (*Client) CreateProvider ¶
func (*Client) DeleteProvider ¶
func (*Client) DetailNetwork ¶
func (*Client) ListNetworks ¶
func (*Client) ListProviders ¶
func (*Client) UpdateProvider ¶
type ClientOptions ¶
type OAuth2Authorizer ¶
type OAuth2Authorizer struct {
// contains filtered or unexported fields
}
func NewOAuth2Authorizer ¶
func NewOAuth2Authorizer(o *OAuth2AuthorizerOptions) (*OAuth2Authorizer, error)
func (*OAuth2Authorizer) Close ¶
func (o *OAuth2Authorizer) Close()
func (*OAuth2Authorizer) GetFromCache ¶
func (*OAuth2Authorizer) RefreshToken ¶
func (*OAuth2Authorizer) SaveToCache ¶
Click to show internal directories.
Click to hide internal directories.