Documentation ¶
Index ¶
- type AccessToken
- type CreateBindingRequest
- type CreateEnvironmentRequest
- type CreatedBindingResponse
- type CreatedEnvironmentResponse
- type Credentials
- type EnvironmentParameters
- type EnvironmentResponse
- type EnvironmentType
- type EnvironmentsResponse
- type Error
- type ErrorResponse
- type GetBindingResponse
- type KymaConfig
- type ProvisioningClient
- func (p *ProvisioningClient) AwaitEnvironmentCreated(environmentID string) error
- func (p *ProvisioningClient) AwaitEnvironmentDeleted(environmentID string) error
- func (p *ProvisioningClient) CreateBinding(environmentID string) (CreatedBindingResponse, error)
- func (p *ProvisioningClient) CreateEnvironment() (CreatedEnvironmentResponse, error)
- func (p *ProvisioningClient) DeleteBinding(environmentID, bindingID string) error
- func (p *ProvisioningClient) DeleteEnvironment(environmentID string) (EnvironmentResponse, error)
- func (p *ProvisioningClient) GetAccessToken() error
- func (p *ProvisioningClient) GetBinding(environmentID, bindingID string) (GetBindingResponse, error)
- func (p *ProvisioningClient) GetEnvironment(environmentID string) (EnvironmentResponse, error)
- func (p *ProvisioningClient) GetEnvironments() (EnvironmentsResponse, error)
- type ProvisioningConfig
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AccessToken struct {
Token string `json:"access_token"`
}
type CreateBindingRequest ¶
type CreateEnvironmentRequest ¶
type CreateEnvironmentRequest struct { EnvironmentType string `json:"environmentType"` ServiceName string `json:"serviceName"` PlanName string `json:"planName"` User string `json:"user"` Parameters EnvironmentParameters `json:"parameters"` }
type CreatedBindingResponse ¶
type CreatedBindingResponse struct { ID string Credentials Credentials `json:"credentials"` }
type CreatedEnvironmentResponse ¶
type CreatedEnvironmentResponse struct {
ID string `json:"id"`
}
type Credentials ¶
type Credentials struct {
Kubeconfig string `json:"kubeconfig"`
}
type EnvironmentParameters ¶
type EnvironmentResponse ¶
type EnvironmentResponse struct { ID string `json:"id"` State State `json:"state"` EnvironmentType EnvironmentType `json:"environmentType"` }
type EnvironmentsResponse ¶
type EnvironmentsResponse struct {
Environments []EnvironmentResponse `json:"environmentInstances"`
}
type ErrorResponse ¶
type ErrorResponse struct {
Error Error `json:"error"`
}
type GetBindingResponse ¶
type GetBindingResponse struct {
Credentials Credentials `json:"credentials"`
}
type KymaConfig ¶
type ProvisioningClient ¶
type ProvisioningClient struct {
// contains filtered or unexported fields
}
func NewProvisioningClient ¶
func NewProvisioningClient(cfg ProvisioningConfig, logger *slog.Logger, ctx context.Context, timeoutSeconds time.Duration) *ProvisioningClient
func (*ProvisioningClient) AwaitEnvironmentCreated ¶
func (p *ProvisioningClient) AwaitEnvironmentCreated(environmentID string) error
func (*ProvisioningClient) AwaitEnvironmentDeleted ¶
func (p *ProvisioningClient) AwaitEnvironmentDeleted(environmentID string) error
func (*ProvisioningClient) CreateBinding ¶
func (p *ProvisioningClient) CreateBinding(environmentID string) (CreatedBindingResponse, error)
func (*ProvisioningClient) CreateEnvironment ¶
func (p *ProvisioningClient) CreateEnvironment() (CreatedEnvironmentResponse, error)
func (*ProvisioningClient) DeleteBinding ¶
func (p *ProvisioningClient) DeleteBinding(environmentID, bindingID string) error
func (*ProvisioningClient) DeleteEnvironment ¶
func (p *ProvisioningClient) DeleteEnvironment(environmentID string) (EnvironmentResponse, error)
func (*ProvisioningClient) GetAccessToken ¶
func (p *ProvisioningClient) GetAccessToken() error
func (*ProvisioningClient) GetBinding ¶
func (p *ProvisioningClient) GetBinding(environmentID, bindingID string) (GetBindingResponse, error)
func (*ProvisioningClient) GetEnvironment ¶
func (p *ProvisioningClient) GetEnvironment(environmentID string) (EnvironmentResponse, error)
func (*ProvisioningClient) GetEnvironments ¶
func (p *ProvisioningClient) GetEnvironments() (EnvironmentsResponse, error)
type ProvisioningConfig ¶
type ProvisioningConfig struct { URL string ClientID string ClientSecret string UAA_URL string Kyma KymaConfig }
Click to show internal directories.
Click to hide internal directories.