Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Control ¶
func Control(st *state.State, appInfos []*snap.AppInfo, inst *Instruction, context *hookstate.Context) ([]*state.TaskSet, error)
Control creates a taskset for starting/stopping/restarting services via systemctl. The appInfos and inst define the services and the command to execute. Context is used to determine change conflicts - we will not conflict with tasks from same change as that of context's.
Types ¶
type Instruction ¶
type Instruction struct { Action string `json:"action"` Names []string `json:"names"` client.StartOptions client.StopOptions client.RestartOptions }
type ServiceActionConflictError ¶
type ServiceActionConflictError struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.