Documentation ¶
Index ¶
- type AddOnStatusGetRequest
- type AddOnStatusPatchRequest
- type AddOnStatusPostRequest
- type AddOnStatusResponse
- type Client
- func (c *Client) GetAddOnStatus(ctx context.Context, addonID string) (AddOnStatusResponse, error)
- 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) PatchAddOnStatus(ctx context.Context, addonID string, payload AddOnStatusPatchRequest) (AddOnStatusResponse, error)
- func (c *Client) PatchUpgradePolicy(ctx context.Context, req UpgradePolicyPatchRequest) (res UpgradePolicyPatchResponse, err error)
- func (c *Client) PostAddOnStatus(ctx context.Context, payload AddOnStatusPostRequest) (AddOnStatusResponse, 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 AddOnStatusGetRequest ¶ added in v1.7.0
type AddOnStatusGetRequest struct{}
type AddOnStatusPatchRequest ¶ added in v1.7.0
type AddOnStatusPatchRequest struct { // Correlation ID for co-relating current AddonCR revision and reported status. CorrelationID string `json:"correlation_id"` // Reported addon status conditions StatusConditions []addonsv1alpha1.AddOnStatusCondition `json:"status_conditions"` }
type AddOnStatusPostRequest ¶ added in v1.7.0
type AddOnStatusPostRequest struct { AddonID string `json:"addon_id"` // Correlation ID for co-relating current AddonCR revision and reported status. CorrelationID string `json:"correlation_id"` // Reported addon status conditions StatusConditions []addonsv1alpha1.AddOnStatusCondition `json:"status_conditions"` }
type AddOnStatusResponse ¶ added in v1.7.0
type AddOnStatusResponse struct { Kind string `json:"kind"` AddonID string `json:"addon_id"` // Correlation ID for co-relating current AddonCR revision and reported status. CorrelationID string `json:"correlation_id"` // Reported addon status conditions StatusConditions []addonsv1alpha1.AddOnStatusCondition `json:"status_conditions"` }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetAddOnStatus ¶ added in v1.7.0
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) PatchAddOnStatus ¶ added in v1.7.0
func (c *Client) PatchAddOnStatus(ctx context.Context, addonID string, payload AddOnStatusPatchRequest) (AddOnStatusResponse, error)
func (*Client) PatchUpgradePolicy ¶
func (c *Client) PatchUpgradePolicy( ctx context.Context, req UpgradePolicyPatchRequest, ) (res UpgradePolicyPatchResponse, err error)
func (*Client) PostAddOnStatus ¶ added in v1.7.0
func (c *Client) PostAddOnStatus(ctx context.Context, payload AddOnStatusPostRequest) (AddOnStatusResponse, 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 ( UpgradePolicyValueNone UpgradePolicyValue = "" UpgradePolicyValuePending UpgradePolicyValue = "pending" UpgradePolicyValueScheduled UpgradePolicyValue = "scheduled" UpgradePolicyValueStarted UpgradePolicyValue = "started" UpgradePolicyValueCompleted UpgradePolicyValue = "completed" )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.