Documentation ¶
Index ¶
- type Client
- func (client *Client) PendingRefreshNotification(ctx context.Context, refreshInfo *PendingSnapRefreshInfo) error
- func (client *Client) ServicesDaemonReload(ctx context.Context) error
- func (client *Client) ServicesStart(ctx context.Context, services []string) (startFailures, stopFailures []ServiceFailure, err error)
- func (client *Client) ServicesStop(ctx context.Context, services []string) (stopFailures []ServiceFailure, err error)
- func (client *Client) SessionInfo(ctx context.Context) (info map[int]SessionInfo, err error)
- type Error
- type PendingSnapRefreshInfo
- type ServiceFailure
- type SessionInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) PendingRefreshNotification ¶
func (client *Client) PendingRefreshNotification(ctx context.Context, refreshInfo *PendingSnapRefreshInfo) error
PendingRefreshNotification broadcasts information about a refresh.
func (*Client) ServicesDaemonReload ¶
func (*Client) ServicesStart ¶
func (*Client) ServicesStop ¶
func (*Client) SessionInfo ¶
type Error ¶
type PendingSnapRefreshInfo ¶
type PendingSnapRefreshInfo struct { InstanceName string `json:"instance-name"` TimeRemaining time.Duration `json:"time-remaining,omitempty"` BusyAppName string `json:"busy-app-name,omitempty"` BusyAppDesktopEntry string `json:"busy-app-desktop-entry,omitempty"` }
PendingSnapRefreshInfo holds information about pending snap refresh provided to userd.
type ServiceFailure ¶
type SessionInfo ¶
type SessionInfo struct {
Version string `json:"version"`
}
Click to show internal directories.
Click to hide internal directories.