secret

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

View Source
const (
	SSHAuthKnownHostsKey = "known_hosts"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuth

type BasicAuth struct {
	Username string
	Password string
}

func ReadBasicAuthSecret

func ReadBasicAuthSecret(secretVolume, secretName string) (BasicAuth, error)

type Fetcher

type Fetcher struct {
	Client k8sclient.Interface
}

func (*Fetcher) SecretsForServiceAccount

func (f *Fetcher) SecretsForServiceAccount(ctx context.Context, serviceAccount, namespace string) ([]*corev1.Secret, error)

type SSH

type SSH struct {
	PrivateKey string
	KnownHosts string
}

func ReadSshSecret

func ReadSshSecret(secretVolume, secretName string) (SSH, error)

Jump to

Keyboard shortcuts

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