Documentation ¶
Index ¶
- func CreateOrJoinClusterPath() string
- func GetStatusClusterPath() string
- func StatusClusterPath(clusterID string) string
- type Client
- func (c *Client) CreateOrJoinCluster(ctx context.Context, path string, payload *CreateOrJoinClusterPayload) (*http.Response, error)
- func (c *Client) DecodeCouchbasecluster(resp *http.Response) (*Couchbasecluster, error)
- func (c *Client) GetStatusCluster(ctx context.Context, path string, payload *GetStatusClusterPayload) (*http.Response, error)
- func (c *Client) NewCreateOrJoinClusterRequest(ctx context.Context, path string, payload *CreateOrJoinClusterPayload) (*http.Request, error)
- func (c *Client) NewGetStatusClusterRequest(ctx context.Context, path string, payload *GetStatusClusterPayload) (*http.Request, error)
- func (c *Client) NewStatusClusterRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) StatusCluster(ctx context.Context, path string) (*http.Response, error)
- type Couchbasecluster
- type CreateOrJoinClusterPayload
- type GetStatusClusterPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrJoinClusterPath ¶
func CreateOrJoinClusterPath() string
CreateOrJoinClusterPath computes a request path to the create_or_join action of cluster.
func GetStatusClusterPath ¶
func GetStatusClusterPath() string
GetStatusClusterPath computes a request path to the get_status action of cluster.
func StatusClusterPath ¶
StatusClusterPath computes a request path to the status action of cluster.
Types ¶
type Client ¶
type Client struct { *goaclient.Client Encoder *goa.HTTPEncoder Decoder *goa.HTTPDecoder }
Client is the cbbootstrap service client.
func (*Client) CreateOrJoinCluster ¶
func (c *Client) CreateOrJoinCluster(ctx context.Context, path string, payload *CreateOrJoinClusterPayload) (*http.Response, error)
Create a new Couchbase Cluster
func (*Client) DecodeCouchbasecluster ¶
func (c *Client) DecodeCouchbasecluster(resp *http.Response) (*Couchbasecluster, error)
DecodeCouchbasecluster decodes the Couchbasecluster instance encoded in resp body.
func (*Client) GetStatusCluster ¶
func (c *Client) GetStatusCluster(ctx context.Context, path string, payload *GetStatusClusterPayload) (*http.Response, error)
Get Couchbase Cluster by ID. Works around URL encoding issues seen in GET with :cluster_id URL param
func (*Client) NewCreateOrJoinClusterRequest ¶
func (c *Client) NewCreateOrJoinClusterRequest(ctx context.Context, path string, payload *CreateOrJoinClusterPayload) (*http.Request, error)
NewCreateOrJoinClusterRequest create the request corresponding to the create_or_join action endpoint of the cluster resource.
func (*Client) NewGetStatusClusterRequest ¶
func (c *Client) NewGetStatusClusterRequest(ctx context.Context, path string, payload *GetStatusClusterPayload) (*http.Request, error)
NewGetStatusClusterRequest create the request corresponding to the get_status action endpoint of the cluster resource.
func (*Client) NewStatusClusterRequest ¶
NewStatusClusterRequest create the request corresponding to the status action endpoint of the cluster resource.
type Couchbasecluster ¶
type Couchbasecluster struct { // The cluster id ClusterID string `form:"cluster_id" json:"cluster_id" xml:"cluster_id"` // The initial node ip address or host that can be used to join cluster InitialNodeIPAddrOrHostname string `form:"initial_node_ip_addr_or_hostname" json:"initial_node_ip_addr_or_hostname" xml:"initial_node_ip_addr_or_hostname"` // Whether the node_ip_addr_or_hostname passed in the request represents the initial node in the cluster IsInitialNode bool `form:"is_initial_node" json:"is_initial_node" xml:"is_initial_node"` }
A CouchbaseCluster (default view)
Identifier: application/vnd.couchbasecluster+json; view=default
func (*Couchbasecluster) Validate ¶
func (mt *Couchbasecluster) Validate() (err error)
Validate validates the Couchbasecluster media type instance.
type CreateOrJoinClusterPayload ¶
type CreateOrJoinClusterPayload struct { ClusterID *string `form:"cluster_id,omitempty" json:"cluster_id,omitempty" xml:"cluster_id,omitempty"` NodeIPAddrOrHostname *string `form:"node_ip_addr_or_hostname,omitempty" json:"node_ip_addr_or_hostname,omitempty" xml:"node_ip_addr_or_hostname,omitempty"` }
CreateOrJoinClusterPayload user type.
func (*CreateOrJoinClusterPayload) Validate ¶
func (ut *CreateOrJoinClusterPayload) Validate() (err error)
Validate validates the CreateOrJoinClusterPayload type instance.
type GetStatusClusterPayload ¶
type GetStatusClusterPayload struct { ClusterID string `form:"cluster_id" json:"cluster_id" xml:"cluster_id"` NodeIPAddrOrHostname *string `form:"node_ip_addr_or_hostname,omitempty" json:"node_ip_addr_or_hostname,omitempty" xml:"node_ip_addr_or_hostname,omitempty"` }
GetStatusClusterPayload is the cluster get_status action payload.