Documentation
¶
Index ¶
- func Fetch(ctx context.Context, cfg *config.Config, toVersion int) error
- func Install(ctx context.Context, cfg *config.Config) error
- func Start(ctx context.Context, cfg *config.Config) error
- func Update(ctx context.Context, cfg *config.Config, toVersion int) error
- type AppStatus
- type BlobStats
- type CurrentStatus
- type UpdateStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CurrentStatus ¶
type CurrentStatus struct {
UpdateID string `json:"update_id"`
TargetID string `json:"target_id"`
AppStatuses []AppStatus `json:"apps"`
CompletedAt time.Time `json:"completed_at"`
}
func GetCurrentStatus ¶
type UpdateStatus ¶
type UpdateStatus struct {
ID string `json:"id"`
TargetID string `json:"target_id"`
State update.State `json:"state"`
StartTime time.Time `json:"start_time"`
UpdatedAt time.Time `json:"updated_at"`
Apps []string `json:"apps"`
Size BlobStats `json:"size"`
FetchedSize BlobStats `json:"fetched_size"`
Progress int `json:"progress"`
}
func GetUpdateStatus ¶
func GetUpdateStatus(cfg *compose.Config) (*UpdateStatus, error)
Click to show internal directories.
Click to hide internal directories.