Documentation ¶
Overview ¶
Package api provides the daemon API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Session *SessionClient Version *VersionClient // contains filtered or unexported fields }
Client exposes the daemon API.
type SessionClient ¶
type SessionClient struct {
// contains filtered or unexported fields
}
SessionClient provides access to the daemon's user session related endpoints, for logging in/out, and checking your session status.
func (*SessionClient) Get ¶
func (s *SessionClient) Get(ctx context.Context) (*apitypes.SessionStatus, error)
Get returns the status of the user's session.
type VersionClient ¶
type VersionClient struct {
// contains filtered or unexported fields
}
VersionClient provides access to the daemon's /v1/version endpoint, for inspecting the daemon's release version.
Click to show internal directories.
Click to hide internal directories.