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 but we provide defaults so that there is some value when debugging. // We will need to update these from time to time. Alternatively, you can set the registry // values using the --set command-line argument. ContainerRegistry string = "tyger.azurecr.io" ContainerImageTag string = "v0.4.0-112-g428a5e8" )
Functions ¶
This section is empty.
Types ¶
type DatabaseVersion ¶
type Installer ¶
type Installer interface { QuickValidateConfig() bool InstallTyger(ctx context.Context) error UninstallTyger(ctx context.Context, deleteData 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.