api

package
v0.0.0-...-41f554d Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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, tenantUpdater TenantUpdater) *Resolver

func (*Resolver) DeprovisionRuntime

func (r *Resolver) DeprovisionRuntime(ctx context.Context, id string) (string, error)

func (*Resolver) HibernateRuntime

func (r *Resolver) HibernateRuntime(context.Context, string) (*gqlschema.OperationStatus, error)

func (*Resolver) Mutation

func (r *Resolver) Mutation() gqlschema.MutationResolver

func (*Resolver) ProvisionRuntime

func (*Resolver) Query

func (r *Resolver) Query() gqlschema.QueryResolver

func (*Resolver) ReconnectRuntimeAgent

func (r *Resolver) ReconnectRuntimeAgent(context.Context, string) (string, error)

func (*Resolver) RollBackUpgradeOperation

func (r *Resolver) RollBackUpgradeOperation(_ context.Context, runtimeID string) (*gqlschema.RuntimeStatus, error)

func (*Resolver) RuntimeOperationStatus

func (r *Resolver) RuntimeOperationStatus(ctx context.Context, operationID string) (*gqlschema.OperationStatus, error)

func (*Resolver) RuntimeStatus

func (r *Resolver) RuntimeStatus(ctx context.Context, runtimeID string) (*gqlschema.RuntimeStatus, error)

func (*Resolver) UpgradeRuntime

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

Directories

Path Synopsis
fake

Jump to

Keyboard shortcuts

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