installer

package
v0.0.0-...-9ffa3d9 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCertName = "cert"
	DefaultKeyName  = "key"

	FilePermissions = 0755
	DirPermissions  = 0755
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureKeyVaultInstaller

type AzureKeyVaultInstaller struct {
	// contains filtered or unexported fields
}

func NewAzureKeyVaultInstaller

func NewAzureKeyVaultInstaller(
	client azure.KeyVaultClient, certificateName string,
) (AzureKeyVaultInstaller, error)

func (AzureKeyVaultInstaller) Install

func (installer AzureKeyVaultInstaller) Install(
	ctx context.Context, cert *x509.Certificate, key *rsa.PrivateKey,
) error

type Installer

type Installer interface {
	Install(ctx context.Context, cert *x509.Certificate, key *rsa.PrivateKey) error
}

type LocalInstaller

type LocalInstaller struct {
	// contains filtered or unexported fields
}

func NewLocalInstaller

func NewLocalInstaller(directory string, fileType cert.FileType, config *LocalInstallerConfig) (LocalInstaller, error)

func (LocalInstaller) Install

func (installer LocalInstaller) Install(ctx context.Context, certificate *x509.Certificate, key *rsa.PrivateKey) (err error)

type LocalInstallerConfig

type LocalInstallerConfig struct {
	CertName string
	KeyName  string
}

Jump to

Keyboard shortcuts

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