Documentation ¶
Index ¶
- Constants
- type InputDataWriter
- type Resolver
- func (r *Resolver) DeprovisionRuntime(ctx context.Context, id string) (string, error)
- func (r *Resolver) HibernateRuntime(context.Context, 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(context.Context, string) (string, error)
- func (r *Resolver) RollBackUpgradeOperation(_ 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(_ context.Context, runtimeID string, _ gqlschema.UpgradeRuntimeInput) (*gqlschema.OperationStatus, error)
- func (r *Resolver) UpgradeShoot(ctx context.Context, runtimeID string, input gqlschema.UpgradeShootInput) (*gqlschema.OperationStatus, error)
- type TenantUpdater
- type Validator
Constants ¶
View Source
const RuntimeAgent = "compass-runtime-agent"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InputDataWriter ¶
type InputDataWriter interface { PersistGraphQL(mutation gqlschema.ProvisionRuntimeInput) (string, error) Enabled() bool }
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func NewResolver ¶
func NewResolver(provisioningService provisioning.Service, validator Validator, tenantUpdater TenantUpdater, testDataWriter InputDataWriter) *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(_ context.Context, runtimeID string, _ gqlschema.UpgradeRuntimeInput) (*gqlschema.OperationStatus, error)
func (*Resolver) UpgradeShoot ¶
func (r *Resolver) UpgradeShoot(ctx context.Context, runtimeID string, input gqlschema.UpgradeShootInput) (*gqlschema.OperationStatus, error)
type TenantUpdater ¶
type TenantUpdater interface { GetTenant(ctx context.Context) (string, apperrors.AppError) GetAndUpdateTenant(runtimeID string, ctx context.Context) apperrors.AppError }
func NewTenantUpdater ¶
func NewTenantUpdater(readWriteSession dbsession.ReadWriteSession) TenantUpdater
type Validator ¶
type Validator interface { ValidateProvisioningInput(input gqlschema.ProvisionRuntimeInput) apperrors.AppError ValidateUpgradeShootInput(input gqlschema.UpgradeShootInput) apperrors.AppError }
func NewValidator ¶
func NewValidator() Validator
Click to show internal directories.
Click to hide internal directories.