certmanagement

package
v0.0.0-...-be4dc66 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACMEConfig

type ACMEConfig struct {
	Email      string `json:"email"`
	Server     string `json:"server"`
	PrivateKey string `json:"privateKey"`
}

ACMEConfig is the config for acme

func (*ACMEConfig) ACMEPrivateKey

func (a *ACMEConfig) ACMEPrivateKey() string

ACMEPrivateKey returns the private value that will be used to create the issuer secret.

type CertificateManagementConfig

type CertificateManagementConfig struct {
	ClusterIssuerName ClusterIssuerName `json:"clusterIssuerName"`
	ACME              ACMEConfig        `json:"acme"`
	Providers         Providers         `json:"providers"`
}

CertificateManagementConfig is the bulk configuration that will be used for certificate management

func RetrieveCertificateManagementConfig

func RetrieveCertificateManagementConfig(certificateManagement *corev1.Secret) (*CertificateManagementConfig, error)

RetrieveCertificateManagementConfig retrieves the configuration for certificate management via Gardener.

type CloudDNSConfig

type CloudDNSConfig struct {
	Name           string   `json:"name"`
	Domains        []string `json:"domains"`
	Project        string   `json:"project"`
	ServiceAccount string   `json:"serviceAccount"`
}

CloudDNSConfig contains the Google CloudDNS config

func (*CloudDNSConfig) AccessKey

func (c *CloudDNSConfig) AccessKey() string

AccessKey returns the CloudDNS ServiceAccount in case Google CloudDNS provider is used.

func (*CloudDNSConfig) DNSProvider

func (c *CloudDNSConfig) DNSProvider() DNSProvider

DNSProvider returns the provider type in-use.

func (*CloudDNSConfig) DomainNames

func (c *CloudDNSConfig) DomainNames() []string

DomainNames returns the domains this provider manages.

func (*CloudDNSConfig) ProviderName

func (c *CloudDNSConfig) ProviderName() string

ProviderName returns the CloudDNS provider name.

type ClusterIssuerName

type ClusterIssuerName string

ClusterIssuerName represents the name if the ClusterIssuer

type DNSProvider

type DNSProvider string

DNSProvider string type

const (
	// Route53 is a constant string for aws-route53.
	Route53 DNSProvider = "aws-route53"
	// CloudDNS is a constant string for google-clouddns.
	CloudDNS DNSProvider = "google-clouddns"
)

type DNSProviderConfig

type DNSProviderConfig interface {
	DNSProvider() DNSProvider
	AccessKey() string
	ProviderName() string
	DomainNames() []string
}

DNSProviderConfig is an interface that will implemented by cloud provider structs

type Providers

type Providers struct {
	Route53  []Route53Config  `json:"route53"`
	CloudDNS []CloudDNSConfig `json:"clouddns"`
}

Providers are the DNS providers supported

type Route53Config

type Route53Config struct {
	Name            string   `json:"name"`
	Domains         []string `json:"domains"`
	Region          string   `json:"region"`
	AccessKeyID     string   `json:"accessKeyID"`
	SecretAccessKey string   `json:"secretAccessKey"`
}

Route53Config contains the route53 config

func (*Route53Config) AccessKey

func (r *Route53Config) AccessKey() string

AccessKey returns the route53 SecretAccessKey in case route53 provider is used.

func (*Route53Config) DNSProvider

func (r *Route53Config) DNSProvider() DNSProvider

DNSProvider returns the provider type in-use.

func (*Route53Config) DomainNames

func (r *Route53Config) DomainNames() []string

DomainNames returns the domains this provider manages.

func (*Route53Config) ProviderName

func (r *Route53Config) ProviderName() string

ProviderName returns the route53 provider name.

Jump to

Keyboard shortcuts

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