Documentation ¶
Index ¶
- Constants
- type Resolver
- func (r *Resolver) DeprovisionRuntime(ctx context.Context, id string) (string, error)
- func (r *Resolver) Mutation() gqlschema.MutationResolver
- func (r *Resolver) ProvisionRuntime(ctx context.Context, config gqlschema.ProvisionRuntimeInput) (*gqlschema.OperationStatus, error)
- func (r *Resolver) Query() gqlschema.QueryResolver
- func (r *Resolver) ReconnectRuntimeAgent(ctx context.Context, id string) (string, error)
- func (r *Resolver) RollBackUpgradeOperation(ctx context.Context, runtimeID string) (*gqlschema.RuntimeStatus, error)
- func (r *Resolver) RuntimeOperationStatus(ctx context.Context, operationID string) (*gqlschema.OperationStatus, error)
- func (r *Resolver) RuntimeStatus(ctx context.Context, runtimeID string) (*gqlschema.RuntimeStatus, error)
- func (r *Resolver) UpgradeRuntime(ctx context.Context, runtimeId string, input gqlschema.UpgradeRuntimeInput) (*gqlschema.OperationStatus, error)
- type Validator
Constants ¶
View Source
const RuntimeAgent = "compass-runtime-agent"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func NewResolver ¶
func NewResolver(provisioningService provisioning.Service, validator Validator) *Resolver
func (*Resolver) DeprovisionRuntime ¶
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() gqlschema.MutationResolver
func (*Resolver) ProvisionRuntime ¶
func (r *Resolver) ProvisionRuntime(ctx context.Context, config gqlschema.ProvisionRuntimeInput) (*gqlschema.OperationStatus, error)
func (*Resolver) Query ¶
func (r *Resolver) Query() gqlschema.QueryResolver
func (*Resolver) ReconnectRuntimeAgent ¶
func (*Resolver) RollBackUpgradeOperation ¶
func (*Resolver) RuntimeOperationStatus ¶
func (*Resolver) RuntimeStatus ¶
func (*Resolver) UpgradeRuntime ¶
func (r *Resolver) UpgradeRuntime(ctx context.Context, runtimeId string, input gqlschema.UpgradeRuntimeInput) (*gqlschema.OperationStatus, error)
type Validator ¶
type Validator interface { ValidateProvisioningInput(input gqlschema.ProvisionRuntimeInput) error ValidateUpgradeInput(input gqlschema.UpgradeRuntimeInput) error ValidateTenant(runtimeID, tenant string) error ValidateTenantForOperation(operationID, tenant string) error }
func NewValidator ¶
func NewValidator(readSession dbsession.ReadSession) Validator
Click to show internal directories.
Click to hide internal directories.