Documentation ¶
Index ¶
- type Client
- type FakeClient
- func (c *FakeClient) DeprovisionRuntime(accountID, runtimeID string) (string, error)
- func (c *FakeClient) FindOperationByRuntimeIDAndType(runtimeID string, operationType schema.OperationType) schema.OperationStatus
- func (c *FakeClient) FinishProvisionerOperation(id string)
- func (c *FakeClient) GetProvisionRuntimeInput(index int) schema.ProvisionRuntimeInput
- func (c *FakeClient) IsRuntimeUpgraded(runtimeID string) bool
- func (c *FakeClient) ProvisionRuntime(accountID, subAccountID string, config schema.ProvisionRuntimeInput) (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)
- 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) GCPProviderConfigInputToGraphQL(in gqlschema.GCPProviderConfigInput) (string, error)
- func (g *Graphqlizer) GardenerConfigInputToGraphQL(in gqlschema.GardenerConfigInput) (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)
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.