provider

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: MPL-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) func() provider.Provider

func NewHostCertResource

func NewHostCertResource() resource.Resource

func NewUserCertResource

func NewUserCertResource() resource.Resource

Types

type Algorithm

type Algorithm string

Algorithm represents a type of private key algorithm.

const (
	RSA     Algorithm = "RSA"
	ECDSA   Algorithm = "ECDSA"
	ED25519 Algorithm = "ED25519"
)

func (Algorithm) String

func (a Algorithm) String() string

type ECDSACurve

type ECDSACurve string

ECDSACurve represents a type of ECDSA elliptic curve.

const (
	P224 ECDSACurve = "P224"
	P256 ECDSACurve = "P256"
	P384 ECDSACurve = "P384"
	P521 ECDSACurve = "P521"
)

func (ECDSACurve) String

func (e ECDSACurve) String() string

type PEMPreamble

type PEMPreamble string

PEMPreamble represents the heading used in a PEM-formatted for the "encapsulation boundaries", that is used to delimit the "encapsulated text portion" of cryptographic documents.

See https://datatracker.ietf.org/doc/html/rfc1421 and https://datatracker.ietf.org/doc/html/rfc7468.

const (
	PreamblePublicKey PEMPreamble = "PUBLIC KEY"

	PreamblePrivateKeyPKCS8   PEMPreamble = "PRIVATE KEY"
	PreamblePrivateKeyRSA     PEMPreamble = "RSA PRIVATE KEY"
	PreamblePrivateKeyEC      PEMPreamble = "EC PRIVATE KEY"
	PreamblePrivateKeyOpenSSH PEMPreamble = "OPENSSH PRIVATE KEY"

	PreambleCertificate        PEMPreamble = "CERTIFICATE"
	PreambleCertificateRequest PEMPreamble = "CERTIFICATE REQUEST"
)

func (PEMPreamble) String

func (p PEMPreamble) String() string

type ProxyScheme

type ProxyScheme string

ProxyScheme represents url schemes supported when providing proxy configuration to this provider.

const (
	HTTPProxy   ProxyScheme = "http"
	HTTPSProxy  ProxyScheme = "https"
	SOCKS5Proxy ProxyScheme = "socks5"
)

func (ProxyScheme) String

func (p ProxyScheme) String() string

type URLScheme

type URLScheme string

URLScheme represents url schemes supported by resources and data-sources of this provider.

const (
	HTTPSScheme URLScheme = "https"
	TLSScheme   URLScheme = "tls"
)

func (URLScheme) String

func (p URLScheme) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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