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 DatabaseVersion ¶
type Installer ¶
type Installer interface { QuickValidateConfig() bool InstallTyger(ctx context.Context) error UninstallTyger(ctx context.Context, deleteData bool, preserveRunContainers bool) 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 UntypedPromise ¶
type UntypedPromise interface {
AwaitErr() error
}
Click to show internal directories.
Click to hide internal directories.