Documentation ¶
Index ¶
- type BrokerOAuthConfig
- type Client
- func (c *Client) AwaitOperationSucceeded(operationID string, timeout time.Duration) error
- func (c *Client) ClusterName() string
- func (c *Client) DeprovisionRuntime() (string, error)
- func (c *Client) FetchDashboardURL() (string, error)
- func (c *Client) GlobalAccountID() string
- func (c *Client) InstanceID() string
- func (c *Client) ProvisionRuntime(kymaVersion string) (string, error)
- func (c *Client) SetInstanceID(id string)
- func (c *Client) SubAccountID() string
- func (c *Client) SuspendRuntime() error
- func (c *Client) UnsuspendRuntime() error
- func (c *Client) UserID() string
- type Config
- type OrchestrationResponse
- type Runtime
- type RuntimeTarget
- type Target
- type UpgradeClient
- type UpgradeRuntimeRequest
- type UpgradeRuntimeResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrokerOAuthConfig ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(ctx context.Context, config Config, globalAccountID, instanceID, subAccountID, userID string, oAuthCfg BrokerOAuthConfig, log logrus.FieldLogger) *Client
func (*Client) AwaitOperationSucceeded ¶
func (*Client) ClusterName ¶
func (*Client) DeprovisionRuntime ¶
func (*Client) FetchDashboardURL ¶
func (*Client) GlobalAccountID ¶
func (*Client) InstanceID ¶
func (*Client) ProvisionRuntime ¶
ProvisionRuntime requests Runtime provisioning in KEB kymaVersion is optional, if it is empty, the default KEB version will be used
func (*Client) SetInstanceID ¶
func (*Client) SubAccountID ¶
func (*Client) SuspendRuntime ¶
func (*Client) UnsuspendRuntime ¶
type OrchestrationResponse ¶
type RuntimeTarget ¶
type RuntimeTarget struct {
RuntimeID string `json:"runtimeId,omitempty"`
}
type Target ¶
type Target struct {
Include []RuntimeTarget `json:"include"`
}
type UpgradeClient ¶
type UpgradeClient struct { URL string // contains filtered or unexported fields }
func NewUpgradeClient ¶
func NewUpgradeClient(ctx context.Context, oAuthConfig BrokerOAuthConfig, config Config, log logrus.FieldLogger) *UpgradeClient
func (*UpgradeClient) AwaitOperationFinished ¶
func (c *UpgradeClient) AwaitOperationFinished(orchestrationID string, timeout time.Duration) error
func (*UpgradeClient) FetchRuntimeID ¶
func (c *UpgradeClient) FetchRuntimeID(instanceID string) (string, error)
func (*UpgradeClient) UpgradeRuntime ¶
func (c *UpgradeClient) UpgradeRuntime(runtimeID string) (string, error)
type UpgradeRuntimeRequest ¶
type UpgradeRuntimeRequest struct {
Targets Target `json:"targets"`
}
type UpgradeRuntimeResponse ¶
type UpgradeRuntimeResponse struct {
OrchestrationID string `json:"orchestration_id"`
}
Click to show internal directories.
Click to hide internal directories.