Documentation ¶
Index ¶
- type Client
- func (c *Client) GetCluster(ctx context.Context, req ClusterGetRequest) (res ClusterGetResponse, err error)
- func (c *Client) GetUpgradePolicy(ctx context.Context, req UpgradePolicyGetRequest) (res UpgradePolicyGetResponse, err error)
- func (c *Client) PatchUpgradePolicy(ctx context.Context, req UpgradePolicyPatchRequest) (res UpgradePolicyPatchResponse, err error)
- type ClientOptions
- type Cluster
- type ClusterGetRequest
- type ClusterGetResponse
- type OCMError
- type Option
- type UpgradePolicyGetRequest
- type UpgradePolicyGetResponse
- type UpgradePolicyPatchRequest
- type UpgradePolicyPatchResponse
- type UpgradePolicyValue
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
}
func (*Client) GetCluster ¶
func (c *Client) GetCluster( ctx context.Context, req ClusterGetRequest, ) (res ClusterGetResponse, err error)
func (*Client) GetUpgradePolicy ¶
func (c *Client) GetUpgradePolicy( ctx context.Context, req UpgradePolicyGetRequest, ) (res UpgradePolicyGetResponse, err error)
func (*Client) PatchUpgradePolicy ¶
func (c *Client) PatchUpgradePolicy( ctx context.Context, req UpgradePolicyPatchRequest, ) (res UpgradePolicyPatchResponse, err error)
type ClientOptions ¶
type ClusterGetRequest ¶
type ClusterGetRequest struct{}
type ClusterGetResponse ¶
type ClusterGetResponse struct {
Items []Cluster `json:"items"`
}
type Option ¶
type Option func(o *ClientOptions)
func WithAccessToken ¶
func WithClusterExternalID ¶
func WithEndpoint ¶
type UpgradePolicyGetRequest ¶
type UpgradePolicyGetRequest struct {
ID string `json:"id"`
}
type UpgradePolicyGetResponse ¶
type UpgradePolicyGetResponse struct { Value UpgradePolicyValue `json:"value"` Description string `json:"description"` }
type UpgradePolicyPatchRequest ¶
type UpgradePolicyPatchRequest struct { ID string `json:"id"` Value UpgradePolicyValue `json:"value"` Description string `json:"description"` }
type UpgradePolicyPatchResponse ¶
type UpgradePolicyPatchResponse struct{}
type UpgradePolicyValue ¶
type UpgradePolicyValue string
const ( UpgradePolicyValueStarted UpgradePolicyValue = "started" UpgradePolicyValueCompleted UpgradePolicyValue = "completed" )
Click to show internal directories.
Click to hide internal directories.