sourcesecret

package
v0.29.2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 13 Imported by: 5

Documentation

Index

Constants

View Source
const (
	UsernameSecretKey   = "username"
	PasswordSecretKey   = "password"
	CAFileSecretKey     = "caFile"
	CertFileSecretKey   = "certFile"
	KeyFileSecretKey    = "keyFile"
	PrivateKeySecretKey = "identity"
	PublicKeySecretKey  = "identity.pub"
	KnownHostsSecretKey = "known_hosts"
)

Variables

This section is empty.

Functions

func Generate

func Generate(options Options) (*manifestgen.Manifest, error)

Types

type Options

type Options struct {
	Name                string
	Namespace           string
	Labels              map[string]string
	SSHHostname         string
	PrivateKeyAlgorithm PrivateKeyAlgorithm
	RSAKeyBits          int
	ECDSACurve          elliptic.Curve
	PrivateKeyPath      string
	Username            string
	Password            string
	CAFilePath          string
	CertFilePath        string
	KeyFilePath         string
	TargetPath          string
	ManifestFile        string
}

func MakeDefaultOptions

func MakeDefaultOptions() Options

type PrivateKeyAlgorithm

type PrivateKeyAlgorithm string
const (
	RSAPrivateKeyAlgorithm     PrivateKeyAlgorithm = "rsa"
	ECDSAPrivateKeyAlgorithm   PrivateKeyAlgorithm = "ecdsa"
	Ed25519PrivateKeyAlgorithm PrivateKeyAlgorithm = "ed25519"
)

Jump to

Keyboard shortcuts

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