fetcher

package
v1.59.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertBundleFetcher

type CertBundleFetcher interface {
	BundleBytes() ([]byte, error)
}

CertBundleFetcher is an interface for retreiving CA Certbundles

type CertFetcher

type CertFetcher interface {
	KeyBytes() ([]byte, error)
	CertBytes() ([]byte, error)
}

CertFetcher is an interface for retreiving certs

type ConfigMapCertBundleFetcher

type ConfigMapCertBundleFetcher struct {
	Name   string
	Client corev1.ConfigMapInterface
}

ConfigMapCertBundleFetcher reads bundles from ConfigMaps

func (*ConfigMapCertBundleFetcher) BundleBytes

func (f *ConfigMapCertBundleFetcher) BundleBytes() ([]byte, error)

BundleBytes returns bundle bytes

type FileCertFetcher

type FileCertFetcher struct {
	KeyFileName  string
	CertFileName string
}

FileCertFetcher reads certs from files

func (*FileCertFetcher) CertBytes

func (f *FileCertFetcher) CertBytes() ([]byte, error)

CertBytes returns cert bytes

func (*FileCertFetcher) KeyBytes

func (f *FileCertFetcher) KeyBytes() ([]byte, error)

KeyBytes returns key bytes

type MemCertBundleFetcher

type MemCertBundleFetcher struct {
	Bundle []byte
}

MemCertBundleFetcher reads bundles

func (*MemCertBundleFetcher) BundleBytes

func (f *MemCertBundleFetcher) BundleBytes() ([]byte, error)

BundleBytes returns bundle bytes

type MemCertFetcher

type MemCertFetcher struct {
	Cert, Key []byte
}

MemCertFetcher reads certs from files

func (*MemCertFetcher) CertBytes

func (f *MemCertFetcher) CertBytes() ([]byte, error)

CertBytes returns cert bytes

func (*MemCertFetcher) KeyBytes

func (f *MemCertFetcher) KeyBytes() ([]byte, error)

KeyBytes returns key bytes

Jump to

Keyboard shortcuts

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