Documentation
¶
Index ¶
- Variables
- func Activate(ctx context.Context, eligible []domain.EligibleAssignment, ...) (*domain.ActivationResult, error)
- func ClearProgress(w io.Writer)
- func Deactivate(ctx context.Context, active []domain.ActiveAssignment, ...) (*domain.DeactivationResult, error)
- func IsTerminal() bool
- func PickContext(ctx context.Context, contexts []domain.TenantContext) (domain.TenantContext, error)
- func PickSubscription(ctx context.Context, subscriptions []domain.Subscription) (domain.Subscription, error)
- func WithSpinner[T any](ctx context.Context, w io.Writer, msg string, enabled bool, ...) (T, error)
- type ActivationInput
- type Activity
- type DeactivationInput
- type Spinner
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCanceled = errors.New("interactive flow canceled")
View Source
var IsTerminalFn = IsTerminal
Functions ¶
func Activate ¶
func Activate( ctx context.Context, eligible []domain.EligibleAssignment, svc *app.ActivationService, cfg *config.Config, input ActivationInput, ) (*domain.ActivationResult, error)
func ClearProgress ¶
func Deactivate ¶
func Deactivate( ctx context.Context, active []domain.ActiveAssignment, svc *app.DeactivationService, input DeactivationInput, ) (*domain.DeactivationResult, error)
func IsTerminal ¶
func IsTerminal() bool
func PickContext ¶
func PickContext(ctx context.Context, contexts []domain.TenantContext) (domain.TenantContext, error)
func PickSubscription ¶
func PickSubscription(ctx context.Context, subscriptions []domain.Subscription) (domain.Subscription, error)
Types ¶
type ActivationInput ¶
type Activity ¶
type Activity struct {
// contains filtered or unexported fields
}
func NewActivity ¶
type DeactivationInput ¶
Click to show internal directories.
Click to hide internal directories.