Documentation ¶
Index ¶
- type Client
- func (client *Client) FinishRefreshNotification(ctx context.Context, closeInfo *FinishedSnapRefreshInfo) error
- 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 FinishedSnapRefreshInfo
- 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 NewForUids ¶
NewForUids creates a Client that sends requests to a specific list of uids only.
func (*Client) FinishRefreshNotification ¶
func (client *Client) FinishRefreshNotification(ctx context.Context, closeInfo *FinishedSnapRefreshInfo) error
FinishRefreshNotification closes notification about a snap refresh.
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 FinishedSnapRefreshInfo ¶
type FinishedSnapRefreshInfo struct {
InstanceName string `json:"instance-name"`
}
FinishedSnapRefreshInfo holds information about a finished refresh provided to userd.
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.