package context

import "github.com/docker/cli/cli/context"

Index

Types

type EndpointMetaBase

type EndpointMetaBase struct {
	Host          string `json:",omitempty"`
	SkipTLSVerify bool
}

EndpointMetaBase contains fields we expect to be common for most context endpoints

type TLSData

type TLSData struct {
	CA   []byte
	Key  []byte
	Cert []byte
}

TLSData holds ca/cert/key raw data

func LoadTLSData

func LoadTLSData(s store.Reader, contextName, endpointName string) (*TLSData, error)

LoadTLSData loads TLS data from the store

func TLSDataFromFiles

func TLSDataFromFiles(caPath, certPath, keyPath string) (*TLSData, error)

TLSDataFromFiles reads files into a TLSData struct (or returns nil if all paths are empty)

func (*TLSData) ToStoreTLSData

func (data *TLSData) ToStoreTLSData() *store.EndpointTLSData

ToStoreTLSData converts TLSData to the store representation

Source Files

endpoint.go tlsdata.go

Directories

PathSynopsis
cli/context/docker
cli/context/storePackage store provides a generic way to store credentials to connect to virtually any kind of remote system.
Version
v28.1.1+incompatible (latest)
Published
Apr 18, 2025
Platform
js/wasm
Imports
4 packages
Last checked
4 hours ago

Tools for package owners.