Documentation ¶
Index ¶
- Constants
- type Resolver
- func (r *Resolver) DeprovisionRuntime(ctx context.Context, id string) (string, error)
- func (r *Resolver) HibernateRuntime(ctx context.Context, runtimeID string) (*gqlschema.OperationStatus, 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)
- func (r *Resolver) UpgradeShoot(ctx context.Context, runtimeID string, input gqlschema.UpgradeShootInput) (*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) HibernateRuntime ¶
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)
func (*Resolver) UpgradeShoot ¶
func (r *Resolver) UpgradeShoot(ctx context.Context, runtimeID string, input gqlschema.UpgradeShootInput) (*gqlschema.OperationStatus, error)
type Validator ¶
type Validator interface { ValidateProvisioningInput(input gqlschema.ProvisionRuntimeInput) apperrors.AppError ValidateUpgradeInput(input gqlschema.UpgradeRuntimeInput) apperrors.AppError ValidateUpgradeShootInput(input gqlschema.UpgradeShootInput) apperrors.AppError ValidateTenant(runtimeID, tenant string) apperrors.AppError ValidateTenantForOperation(operationID, tenant string) apperrors.AppError }
func NewValidator ¶
func NewValidator(readSession dbsession.ReadSession) Validator
Click to show internal directories.
Click to hide internal directories.