context

package
v20.10.20+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

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