Help us shape the future of Go! Take the 2026 Go Developer Survey

desktop

package
v5.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: Apache-2.0 Imports: 10 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
}

Client for integration with Docker Desktop features.

func NewClient

func NewClient(apiEndpoint string) *Client

NewClient creates a Desktop integration client for the provided in-memory socket address (AF_UNIX or named pipe).

func (*Client) Close

func (c *Client) Close() error

Close releases any open connections.

func (*Client) Endpoint

func (c *Client) Endpoint() string

func (*Client) FeatureFlags

func (c *Client) FeatureFlags(ctx context.Context) (FeatureFlagResponse, error)

func (*Client) Ping

func (c *Client) Ping(ctx context.Context) (*PingResponse, error)

Ping is a minimal API used to ensure that the server is available.

type FeatureFlagResponse

type FeatureFlagResponse map[string]FeatureFlagValue

type FeatureFlagValue

type FeatureFlagValue struct {
	Enabled bool `json:"enabled"`
}

type PingResponse

type PingResponse struct {
	ServerTime int64 `json:"serverTime"`
}

Jump to

Keyboard shortcuts

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