sourcesecret

package
v0.41.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 15 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"
	BearerTokenKey      = "bearerToken"
)

Variables

This section is empty.

Functions

func Generate

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

func LoadKeyPair added in v0.37.0

func LoadKeyPair(privateKey []byte, password string) (*ssh.KeyPair, error)

func LoadKeyPairFromPath added in v0.37.0

func LoadKeyPairFromPath(path, password string) (*ssh.KeyPair, error)

func ScanHostKey added in v0.37.0

func ScanHostKey(host string) ([]byte, error)

Types

type DockerConfig added in v0.32.0

type DockerConfig map[string]DockerConfigEntry

DockerConfig represents the config file used by the docker CLI. This config that represents the credentials that should be used when pulling images from specific image repositories.

type DockerConfigEntry added in v0.32.0

type DockerConfigEntry struct {
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
	Email    string `json:"email,omitempty"`
	Auth     string `json:"auth,omitempty"`
}

DockerConfigEntry holds the user information that grant the access to docker registry

type DockerConfigJSON added in v0.32.0

type DockerConfigJSON struct {
	Auths DockerConfig `json:"auths"`
}

DockerConfigJSON represents a local docker auth config file for pulling images.

type Options

type Options struct {
	Name                string
	Namespace           string
	Labels              map[string]string
	Registry            string
	SSHHostname         string
	PrivateKeyAlgorithm PrivateKeyAlgorithm
	RSAKeyBits          int
	ECDSACurve          elliptic.Curve
	Keypair             *ssh.KeyPair
	Username            string
	Password            string
	CAFile              []byte
	CertFile            []byte
	KeyFile             []byte
	TargetPath          string
	ManifestFile        string
	BearerToken         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