Documentation ¶
Index ¶
- Variables
- func Version() string
- type Client
- func (c *Client) CheckClusterExistence(opts clustermodel.CheckOptions) (*v1alpha1.ClusterInfo, error)
- func (c *Client) ConnectCluster(opts clustermodel.ConnectOptions) (*v1alpha1.ClusterInfo, error)
- func (c *Client) GetCluster(opts clustermodel.GetOptions) (*v1alpha1.ClusterInfo, error)
- func (c *Client) GetClusterClientConfig(opts clustermodel.GetOptions) (clientcmd.ClientConfig, error)
- func (c *Client) GetCurrentUser() (*api.User, error)
- func (c *Client) GetLicensePlan(licenseData, clusterID, productID string, productOwnerID int64) (string, error)
- func (c *Client) GetProductByID(productID string) (*v1alpha1.Product, error)
- func (c *Client) GetProductByOwnerAndKey(owner, key string) (*v1alpha1.Product, error)
- func (c *Client) GetProductPlan(productID, planID string) (*v1alpha1.Plan, error)
- func (c *Client) GetProductPlans(productID string) (v1alpha1.PlanList, error)
- func (c *Client) ImportCluster(opts clustermodel.ImportOptions, responseID string) (*v1alpha1.ClusterInfo, error)
- func (c *Client) ListClusters(opts clustermodel.ListOptions) (*v1alpha1.ClusterInfoList, error)
- func (c *Client) NewNatsConnection(name string) (*nats.Conn, error)
- func (c *Client) ReconfigureCluster(opts clustermodel.ReconfigureOptions, responseID string) (*v1alpha1.ClusterInfo, error)
- func (c *Client) RemoveCluster(opts clustermodel.RemovalOptions, responseID string) error
- func (c *Client) SetHTTPClient(client *http.Client)
- func (c *Client) Signin(params SignInParams) ([]http.Cookie, error)
- func (c *Client) Signout() error
- func (c *Client) VerifyLicense(licenseData string) (*api.License, error)
- func (c *Client) WithAccessToken(accessToken string) *Client
- func (c *Client) WithBasicAuth(username, password string) *Client
- func (c *Client) WithCookies(cookies []http.Cookie) *Client
- func (c *Client) WithOrganization(org string) *Client
- type SignInParams
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a ByteBuilders api client
func NewClientWithHTTP ¶
NewClientWithHTTP creates an API client with a custom http client
func (*Client) CheckClusterExistence ¶
func (c *Client) CheckClusterExistence(opts clustermodel.CheckOptions) (*v1alpha1.ClusterInfo, error)
func (*Client) ConnectCluster ¶
func (c *Client) ConnectCluster(opts clustermodel.ConnectOptions) (*v1alpha1.ClusterInfo, error)
func (*Client) GetCluster ¶
func (c *Client) GetCluster(opts clustermodel.GetOptions) (*v1alpha1.ClusterInfo, error)
func (*Client) GetClusterClientConfig ¶ added in v0.0.2
func (c *Client) GetClusterClientConfig(opts clustermodel.GetOptions) (clientcmd.ClientConfig, error)
func (*Client) GetLicensePlan ¶
func (c *Client) GetLicensePlan(licenseData, clusterID, productID string, productOwnerID int64) (string, error)
GetLicensePlan provides the plan corresponding to product id and owner id if it's still valid
func (*Client) GetProductByID ¶
GetProductByID provides the product associated with the product id
func (*Client) GetProductByOwnerAndKey ¶
GetProductByOwnerAndKey provides the product associated with the owner name and product key
func (*Client) GetProductPlan ¶
GetProductPlan provides the product plan associated with the product id and plan id
func (*Client) GetProductPlans ¶
GetProductPlans provides the product plan list associated with the product id
func (*Client) ImportCluster ¶
func (c *Client) ImportCluster(opts clustermodel.ImportOptions, responseID string) (*v1alpha1.ClusterInfo, error)
func (*Client) ListClusters ¶
func (c *Client) ListClusters(opts clustermodel.ListOptions) (*v1alpha1.ClusterInfoList, error)
func (*Client) NewNatsConnection ¶
func (*Client) ReconfigureCluster ¶
func (c *Client) ReconfigureCluster(opts clustermodel.ReconfigureOptions, responseID string) (*v1alpha1.ClusterInfo, error)
func (*Client) RemoveCluster ¶
func (c *Client) RemoveCluster(opts clustermodel.RemovalOptions, responseID string) error
func (*Client) SetHTTPClient ¶
SetHTTPClient replaces default http.Client with user given one.
func (*Client) VerifyLicense ¶
VerifyLicense returns the verified license
func (*Client) WithAccessToken ¶
func (*Client) WithBasicAuth ¶
func (*Client) WithOrganization ¶
type SignInParams ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.