Documentation ¶
Index ¶
- func OperationStatusLastError(lastErr *schema.LastError) kebError.ErrorReporter
- type Client
- type FakeClient
- func (c *FakeClient) DeprovisionRuntime(accountID, runtimeID string) (string, error)
- func (c *FakeClient) EnableRequestDumping()
- func (c *FakeClient) FindOperationByProvisionerOperationID(provisionerOperationID string) schema.OperationStatus
- func (c *FakeClient) FindOperationByRuntimeIDAndType(runtimeID string, operationType schema.OperationType) schema.OperationStatus
- func (c *FakeClient) FinishProvisionerOperation(id string, state schema.OperationState)
- func (c *FakeClient) GetLatestProvisionRuntimeInput() schema.ProvisionRuntimeInput
- func (c *FakeClient) IsRuntimeUpgraded(runtimeID string, version string) bool
- func (c *FakeClient) IsShootUpgraded(runtimeID string) bool
- func (c *FakeClient) LastProvisioning() schema.ProvisionRuntimeInput
- func (c *FakeClient) LastShootUpgrade(runtimeID string) (schema.UpgradeShootInput, bool)
- func (c *FakeClient) Provision(operation internal.ProvisioningOperation) (schema.OperationStatus, error)
- func (c *FakeClient) ProvisionRuntime(accountID, subAccountID string, config schema.ProvisionRuntimeInput) (schema.OperationStatus, error)
- func (c *FakeClient) ProvisionRuntimeWithIDs(accountID, subAccountID, runtimeID, operationID string, ...) (schema.OperationStatus, error)
- func (c *FakeClient) ReconnectRuntimeAgent(accountID, runtimeID string) (string, error)
- func (c *FakeClient) RuntimeOperationStatus(accountID, operationID string) (schema.OperationStatus, error)
- func (c *FakeClient) RuntimeStatus(accountID, runtimeID string) (schema.RuntimeStatus, error)
- func (c *FakeClient) SetOperation(id string, operation schema.OperationStatus)
- func (c *FakeClient) UpgradeRuntime(accountID, runtimeID string, config schema.UpgradeRuntimeInput) (schema.OperationStatus, error)
- func (c *FakeClient) UpgradeShoot(accountID, runtimeID string, config schema.UpgradeShootInput) (schema.OperationStatus, error)
- type Graphqlizer
- func (g *Graphqlizer) AWSProviderConfigInputToGraphQL(in gqlschema.AWSProviderConfigInput) (string, error)
- func (g *Graphqlizer) AzureProviderConfigInputToGraphQL(in gqlschema.AzureProviderConfigInput) (string, error)
- func (g *Graphqlizer) ClusterConfigToGraphQL(in gqlschema.ClusterConfigInput) (string, error)
- func (g *Graphqlizer) DNSConfigInputToGraphQL(in gqlschema.DNSConfigInput) (string, error)
- func (g *Graphqlizer) GCPProviderConfigInputToGraphQL(in gqlschema.GCPProviderConfigInput) (string, error)
- func (g *Graphqlizer) GardenerConfigInputToGraphQL(in gqlschema.GardenerConfigInput) (string, error)
- func (g *Graphqlizer) GardenerUpgradeInputToGraphQL(in gqlschema.GardenerUpgradeInput) (string, error)
- func (g *Graphqlizer) KymaConfigToGraphQL(in gqlschema.KymaConfigInput) (string, error)
- func (g *Graphqlizer) LabelsToGQL(in gqlschema.Labels) (string, error)
- func (g *Graphqlizer) OpenStackProviderConfigInputToGraphQL(in gqlschema.OpenStackProviderConfigInput) (string, error)
- func (g *Graphqlizer) ProvisionRuntimeInputToGraphQL(in gqlschema.ProvisionRuntimeInput) (string, error)
- func (g *Graphqlizer) RuntimeInputToGraphQL(in gqlschema.RuntimeInput) (string, error)
- func (g *Graphqlizer) UpgradeRuntimeInputToGraphQL(in gqlschema.UpgradeRuntimeInput) (string, error)
- func (g Graphqlizer) UpgradeShootInputToGraphQL(in gqlschema.UpgradeShootInput) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OperationStatusLastError ¶
func OperationStatusLastError(lastErr *schema.LastError) kebError.ErrorReporter
Types ¶
type Client ¶
type Client interface { ProvisionRuntime(accountID, subAccountID string, config schema.ProvisionRuntimeInput) (schema.OperationStatus, error) DeprovisionRuntime(accountID, runtimeID string) (string, error) UpgradeRuntime(accountID, runtimeID string, config schema.UpgradeRuntimeInput) (schema.OperationStatus, error) UpgradeShoot(accountID, runtimeID string, config schema.UpgradeShootInput) (schema.OperationStatus, error) ReconnectRuntimeAgent(accountID, runtimeID string) (string, error) RuntimeOperationStatus(accountID, operationID string) (schema.OperationStatus, error) RuntimeStatus(accountID, runtimeID string) (schema.RuntimeStatus, error) }
func NewProvisionerClient ¶
type FakeClient ¶
type FakeClient struct {
// contains filtered or unexported fields
}
func NewFakeClient ¶
func NewFakeClient() *FakeClient
func NewFakeClientWithGardener ¶
func NewFakeClientWithGardener(gc dynamic.Interface, ns string) *FakeClient
func (*FakeClient) DeprovisionRuntime ¶
func (c *FakeClient) DeprovisionRuntime(accountID, runtimeID string) (string, error)
func (*FakeClient) EnableRequestDumping ¶
func (c *FakeClient) EnableRequestDumping()
func (*FakeClient) FindOperationByProvisionerOperationID ¶
func (c *FakeClient) FindOperationByProvisionerOperationID(provisionerOperationID string) schema.OperationStatus
func (*FakeClient) FindOperationByRuntimeIDAndType ¶
func (c *FakeClient) FindOperationByRuntimeIDAndType(runtimeID string, operationType schema.OperationType) schema.OperationStatus
func (*FakeClient) FinishProvisionerOperation ¶
func (c *FakeClient) FinishProvisionerOperation(id string, state schema.OperationState)
func (*FakeClient) GetLatestProvisionRuntimeInput ¶
func (c *FakeClient) GetLatestProvisionRuntimeInput() schema.ProvisionRuntimeInput
func (*FakeClient) IsRuntimeUpgraded ¶
func (c *FakeClient) IsRuntimeUpgraded(runtimeID string, version string) bool
func (*FakeClient) IsShootUpgraded ¶
func (c *FakeClient) IsShootUpgraded(runtimeID string) bool
func (*FakeClient) LastProvisioning ¶
func (c *FakeClient) LastProvisioning() schema.ProvisionRuntimeInput
func (*FakeClient) LastShootUpgrade ¶
func (c *FakeClient) LastShootUpgrade(runtimeID string) (schema.UpgradeShootInput, bool)
func (*FakeClient) Provision ¶
func (c *FakeClient) Provision(operation internal.ProvisioningOperation) (schema.OperationStatus, error)
func (*FakeClient) ProvisionRuntime ¶
func (c *FakeClient) ProvisionRuntime(accountID, subAccountID string, config schema.ProvisionRuntimeInput) (schema.OperationStatus, error)
func (*FakeClient) ProvisionRuntimeWithIDs ¶
func (c *FakeClient) ProvisionRuntimeWithIDs(accountID, subAccountID, runtimeID, operationID string, config schema.ProvisionRuntimeInput) (schema.OperationStatus, error)
func (*FakeClient) ReconnectRuntimeAgent ¶
func (c *FakeClient) ReconnectRuntimeAgent(accountID, runtimeID string) (string, error)
func (*FakeClient) RuntimeOperationStatus ¶
func (c *FakeClient) RuntimeOperationStatus(accountID, operationID string) (schema.OperationStatus, error)
func (*FakeClient) RuntimeStatus ¶
func (c *FakeClient) RuntimeStatus(accountID, runtimeID string) (schema.RuntimeStatus, error)
func (*FakeClient) SetOperation ¶
func (c *FakeClient) SetOperation(id string, operation schema.OperationStatus)
func (*FakeClient) UpgradeRuntime ¶
func (c *FakeClient) UpgradeRuntime(accountID, runtimeID string, config schema.UpgradeRuntimeInput) (schema.OperationStatus, error)
func (*FakeClient) UpgradeShoot ¶
func (c *FakeClient) UpgradeShoot(accountID, runtimeID string, config schema.UpgradeShootInput) (schema.OperationStatus, error)
type Graphqlizer ¶
type Graphqlizer struct{}
Graphqlizer is responsible for converting Go objects to input arguments in graphql format
func (*Graphqlizer) AWSProviderConfigInputToGraphQL ¶
func (g *Graphqlizer) AWSProviderConfigInputToGraphQL(in gqlschema.AWSProviderConfigInput) (string, error)
func (*Graphqlizer) AzureProviderConfigInputToGraphQL ¶
func (g *Graphqlizer) AzureProviderConfigInputToGraphQL(in gqlschema.AzureProviderConfigInput) (string, error)
func (*Graphqlizer) ClusterConfigToGraphQL ¶
func (g *Graphqlizer) ClusterConfigToGraphQL(in gqlschema.ClusterConfigInput) (string, error)
func (*Graphqlizer) DNSConfigInputToGraphQL ¶
func (g *Graphqlizer) DNSConfigInputToGraphQL(in gqlschema.DNSConfigInput) (string, error)
func (*Graphqlizer) GCPProviderConfigInputToGraphQL ¶
func (g *Graphqlizer) GCPProviderConfigInputToGraphQL(in gqlschema.GCPProviderConfigInput) (string, error)
func (*Graphqlizer) GardenerConfigInputToGraphQL ¶
func (g *Graphqlizer) GardenerConfigInputToGraphQL(in gqlschema.GardenerConfigInput) (string, error)
func (*Graphqlizer) GardenerUpgradeInputToGraphQL ¶
func (g *Graphqlizer) GardenerUpgradeInputToGraphQL(in gqlschema.GardenerUpgradeInput) (string, error)
func (*Graphqlizer) KymaConfigToGraphQL ¶
func (g *Graphqlizer) KymaConfigToGraphQL(in gqlschema.KymaConfigInput) (string, error)
func (*Graphqlizer) LabelsToGQL ¶
func (g *Graphqlizer) LabelsToGQL(in gqlschema.Labels) (string, error)
func (*Graphqlizer) OpenStackProviderConfigInputToGraphQL ¶
func (g *Graphqlizer) OpenStackProviderConfigInputToGraphQL(in gqlschema.OpenStackProviderConfigInput) (string, error)
func (*Graphqlizer) ProvisionRuntimeInputToGraphQL ¶
func (g *Graphqlizer) ProvisionRuntimeInputToGraphQL(in gqlschema.ProvisionRuntimeInput) (string, error)
func (*Graphqlizer) RuntimeInputToGraphQL ¶
func (g *Graphqlizer) RuntimeInputToGraphQL(in gqlschema.RuntimeInput) (string, error)
func (*Graphqlizer) UpgradeRuntimeInputToGraphQL ¶
func (g *Graphqlizer) UpgradeRuntimeInputToGraphQL(in gqlschema.UpgradeRuntimeInput) (string, error)
func (Graphqlizer) UpgradeShootInputToGraphQL ¶
func (g Graphqlizer) UpgradeShootInputToGraphQL(in gqlschema.UpgradeShootInput) (string, error)
Click to show internal directories.
Click to hide internal directories.