certprovider

package
v0.0.0-...-a423d60 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDirectorCertClientWithOtherSubject

func NewDirectorCertClientWithOtherSubject(t *testing.T, ctx context.Context, conf ExternalCertProviderConfig, url, cn string, skipSSLValidation bool) *gcli.Client

func NewExternalCertFromConfig

func NewExternalCertFromConfig(t *testing.T, ctx context.Context, testConfig ExternalCertProviderConfig, shouldDeleteSecret bool) (*rsa.PrivateKey, [][]byte)

Types

type ExternalCertProviderConfig

type ExternalCertProviderConfig struct {
	ExternalClientCertTestSecretName         string       `envconfig:"EXTERNAL_CLIENT_CERT_TEST_SECRET_NAME"`
	ExternalClientCertTestSecretNamespace    string       `envconfig:"EXTERNAL_CLIENT_CERT_TEST_SECRET_NAMESPACE"`
	CertSvcInstanceTestSecretName            string       `envconfig:"CERT_SVC_INSTANCE_TEST_SECRET_NAME"`
	CertSvcInstanceTestRegion2SecretName     string       `envconfig:"CERT_SVC_INSTANCE_TEST_REGION2_SECRET_NAME"`
	ExternalCertCronjobContainerName         string       `envconfig:"EXTERNAL_CERT_CRONJOB_CONTAINER_NAME"`
	ExternalCertTestJobName                  string       `envconfig:"EXTERNAL_CERT_TEST_JOB_NAME"`
	TestExternalCertSubject                  string       `envconfig:"TEST_EXTERNAL_CERT_SUBJECT"`
	TestAtomExternalCertSubject              string       `envconfig:"TEST_ATOM_EXTERNAL_CERT_SUBJECT"`
	TestExternalCertSubjectRegion2           string       `envconfig:"TEST_EXTERNAL_CERT_SUBJECT_REGION2"`
	TestExternalCertCN                       string       `envconfig:"TEST_EXTERNAL_CERT_CN"`
	ExternalClientCertCertKey                string       `envconfig:"APP_EXTERNAL_CLIENT_CERT_KEY"`
	ExternalClientCertKeyKey                 string       `envconfig:"APP_EXTERNAL_CLIENT_KEY_KEY"`
	ExternalClientCertExpectedIssuerLocality *string      `envconfig:"-"`
	ExternalClientCertSecretName             string       `envconfig:"APP_EXTERNAL_CLIENT_CERT_SECRET_NAME"`
	ExternalCertProvider                     ProviderType `envconfig:"-"`
}

type ProviderType

type ProviderType int

ProviderType missing godoc

const (
	CertificateService ProviderType = iota
	Atom
)

Jump to

Keyboard shortcuts

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