Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAlreadyLoggedError = errors.New("already logged error") ErrDependencyFailed = errors.New("dependency failed") )
View Source
var ( // Set during build ContainerRegistry string = "" ContainerRegistryDirectory string = "" ContainerImageTag string = "" GetNormalizedContainerRegistryDirectory = sync.OnceValue(func() string { normalized := ContainerRegistryDirectory if !strings.HasPrefix(normalized, "/") { normalized = "/" + normalized } if !strings.HasSuffix(normalized, "/") { normalized = normalized + "/" } return normalized }) )
Functions ¶
Types ¶
type ConfigFileCommon ¶
type ConfigFileCommon struct {
Kind string `yaml:"kind"`
}
type DatabaseVersion ¶
type Installer ¶
type Installer interface {
GetConfig() ValidatableConfig
ApplySingleOrgFilter(org string) error
ApplyMultiOrgFilter(orgs []string) error
InstallTyger(ctx context.Context) error
UninstallTyger(ctx context.Context, deleteData bool, preserveRunContainers bool) error
GetServerLogs(ctx context.Context, options ServerLogOptions) error
ListDatabaseVersions(ctx context.Context, all bool) ([]DatabaseVersion, error)
ApplyMigrations(ctx context.Context, targetVersion int, latest bool, offline bool, wait bool) error
GetMigrationLogs(ctx context.Context, id int, destination io.Writer) error
}
type Promise ¶
type Promise[T any] struct { // contains filtered or unexported fields }
func NewPromise ¶
func NewPromiseAfter ¶
func NewPromiseAfter[T any](ctx context.Context, group *PromiseGroup, function func(context.Context) (T, error), dependencies ...UntypedPromise) *Promise[T]
type PromiseGroup ¶
type PromiseGroup []UntypedPromise
type ServerLogOptions ¶
type UntypedPromise ¶
type UntypedPromise interface {
AwaitErr() error
}
type ValidatableConfig ¶
Click to show internal directories.
Click to hide internal directories.