context

package
v29.8.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: Apache-2.0 Imports: 4 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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

Directories

Path Synopsis
Package store provides a generic way to store credentials to connect to virtually any kind of remote system.
Package store provides a generic way to store credentials to connect to virtually any kind of remote system.

Jump to

Keyboard shortcuts

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