provisioner

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

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

func NewProvisionerClient(endpoint string, queryDumping bool) Client

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 (*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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL