docker

package
v29.10.0-rc.1+incompat... Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// DockerEndpoint is the name of the docker endpoint in a stored context
	DockerEndpoint = "docker"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	EndpointMeta
	TLSData *context.TLSData
}

Endpoint is a typed wrapper around a context-store generic endpoint describing a Docker Engine endpoint, with its tls data

func WithTLSData

func WithTLSData(s store.Reader, contextName string, m EndpointMeta) (Endpoint, error)

WithTLSData loads TLS materials for the endpoint

func (*Endpoint) ClientOpts

func (ep *Endpoint) ClientOpts() ([]client.Opt, error)

ClientOpts returns a slice of Client options to configure an API client with this endpoint

type EndpointMeta

type EndpointMeta = context.EndpointMetaBase

EndpointMeta is a typed wrapper around a context-store generic endpoint describing a Docker Engine endpoint, without its tls config

func EndpointFromContext

func EndpointFromContext(metadata store.Metadata) (EndpointMeta, error)

EndpointFromContext parses a context docker endpoint metadata into a typed EndpointMeta structure

Jump to

Keyboard shortcuts

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