Documentation
¶
Index ¶
- func Marshal(value any) ([]byte, error)
- type Manager
- func (m Manager) Deploy(ctx context.Context, cfg config.Config, request Request) (Report, error)
- func (m Manager) Prune(cfg config.Config, keep int, apply bool) ([]string, error)
- func (m Manager) Rollback(ctx context.Context, cfg config.Config) (state.Record, error)
- func (m Manager) Status(ctx context.Context, cfg config.Config) (Status, error)
- type Operator
- type Report
- type Request
- type Status
- type SystemOperator
- func (o SystemOperator) IsActive(ctx context.Context, unit string) (bool, error)
- func (o SystemOperator) Probe(ctx context.Context, address, host, path, contains string) error
- func (o SystemOperator) ProbeURL(ctx context.Context, value, contains string) error
- func (o SystemOperator) ReloadCaddy(ctx context.Context) error
- func (o SystemOperator) Restart(ctx context.Context, unit string) error
- func (o SystemOperator) StartCandidate(ctx context.Context, unit, binary, environmentFile string, ...) error
- func (o SystemOperator) Stop(ctx context.Context, unit string) error
- func (o SystemOperator) ValidateCaddy(ctx context.Context, path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager struct {
Operator Operator
Now func() time.Time
Prepare func(config.Config, string, string, string) (string, error)
Inspect func(config.Config, string, string, string) error
ReadIdentity func(string) (releaseIdentity, error)
OperationID func() (string, error)
AppendEvent func(string, eventlog.Event) error
Sleep func(context.Context, time.Duration) error
}
func NewManager ¶
type Operator ¶
type Operator interface {
Restart(context.Context, string) error
Stop(context.Context, string) error
IsActive(context.Context, string) (bool, error)
StartCandidate(context.Context, string, string, string, map[string]string) error
ValidateCaddy(context.Context, string) error
ReloadCaddy(context.Context) error
Probe(context.Context, string, string, string, string) error
ProbeURL(context.Context, string, string) error
}
type SystemOperator ¶
func (SystemOperator) Probe ¶
func (o SystemOperator) Probe(ctx context.Context, address, host, path, contains string) error
func (SystemOperator) ProbeURL ¶
func (o SystemOperator) ProbeURL(ctx context.Context, value, contains string) error
func (SystemOperator) ReloadCaddy ¶
func (o SystemOperator) ReloadCaddy(ctx context.Context) error
func (SystemOperator) Restart ¶
func (o SystemOperator) Restart(ctx context.Context, unit string) error
func (SystemOperator) StartCandidate ¶
func (SystemOperator) ValidateCaddy ¶
func (o SystemOperator) ValidateCaddy(ctx context.Context, path string) error
Click to show internal directories.
Click to hide internal directories.