utils

package
v0.0.0-...-e391bab Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadAndQueryCertificateForAccount

func LoadAndQueryCertificateForAccount(ctx context.Context, cctx client.Context, keyring keyring.Keyring, opts ...LoaderOption) (tls.Certificate, error)

LoadAndQueryCertificateForAccount wraps LoadAndQueryPEMForAccount and tls.X509KeyPair

Types

type LoaderOption

type LoaderOption func(*loaderOption)

func PEMFromReader

func PEMFromReader(rd io.Reader) LoaderOption

type PEMBlocks

type PEMBlocks struct {
	Cert []byte
	Priv []byte
	Pub  []byte
}

func LoadAndQueryPEMForAccount

func LoadAndQueryPEMForAccount(ctx context.Context, cctx client.Context, keyring keyring.Keyring, opts ...LoaderOption) (PEMBlocks, error)

func LoadPEMForAccount

func LoadPEMForAccount(cctx client.Context, keyring keyring.Keyring, opts ...LoaderOption) (PEMBlocks, error)

LoadPEMForAccount load certificate/private key from file named as account name supplied in FlagFrom file must contain two PEM blocks, certificate followed by a private key

Jump to

Keyboard shortcuts

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