provisioner

package
v0.0.0-...-a592c90 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0, Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

func (c *FakeClient) DeprovisionRuntime(accountID, runtimeID string) (string, error)

func (*FakeClient) FindOperationByRuntimeIDAndType

func (c *FakeClient) FindOperationByRuntimeIDAndType(runtimeID string, operationType schema.OperationType) schema.OperationStatus

func (*FakeClient) FinishProvisionerOperation

func (c *FakeClient) FinishProvisionerOperation(id string)

func (*FakeClient) GetProvisionRuntimeInput

func (c *FakeClient) GetProvisionRuntimeInput(index int) schema.ProvisionRuntimeInput

func (*FakeClient) IsRuntimeUpgraded

func (c *FakeClient) IsRuntimeUpgraded(runtimeID string) bool

func (*FakeClient) ProvisionRuntime

func (c *FakeClient) ProvisionRuntime(accountID, subAccountID 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)

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) GCPProviderConfigInputToGraphQL

func (g *Graphqlizer) GCPProviderConfigInputToGraphQL(in gqlschema.GCPProviderConfigInput) (string, error)

func (*Graphqlizer) GardenerConfigInputToGraphQL

func (g *Graphqlizer) GardenerConfigInputToGraphQL(in gqlschema.GardenerConfigInput) (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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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