client

package
v0.0.0-...-c7fba9c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

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 New

func New() *Client

func (*Client) PendingRefreshNotification

func (client *Client) PendingRefreshNotification(ctx context.Context, refreshInfo *PendingSnapRefreshInfo) error

PendingRefreshNotification broadcasts information about a refresh.

func (*Client) ServicesDaemonReload

func (client *Client) ServicesDaemonReload(ctx context.Context) error

func (*Client) ServicesStart

func (client *Client) ServicesStart(ctx context.Context, services []string) (startFailures, stopFailures []ServiceFailure, err error)

func (*Client) ServicesStop

func (client *Client) ServicesStop(ctx context.Context, services []string) (stopFailures []ServiceFailure, err error)

func (*Client) SessionInfo

func (client *Client) SessionInfo(ctx context.Context) (info map[int]SessionInfo, err error)

type Error

type Error struct {
	Kind    string      `json:"kind"`
	Value   interface{} `json:"value"`
	Message string      `json:"message"`
}

func (*Error) Error

func (e *Error) Error() string

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 ServiceFailure struct {
	Uid     int
	Service string
	Error   string
}

type SessionInfo

type SessionInfo struct {
	Version string `json:"version"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL