Documentation ¶
Index ¶
- func BoolPtr(b bool) *bool
- 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 ¶
Types ¶
type BrokerOAuthConfig ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
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 Config ¶
type Config struct { ClientName string ClientID string ClientSecret string Scope string `envconfig:"default=broker:write"` TokenURL string URL string PlanID string Region string PlatformRegion string `envconfig:"optional"` }
s
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 *slog.Logger) *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.