config

package
v0.0.0-...-d68cec5 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const GroupName = "certificate-service.extensions.config.gardener.cloud"

GroupName is the group name use in this package

Variables

View Source
var (
	// SchemeBuilder used to register the Shoot resource.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a pointer to SchemeBuilder.AddToScheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ACME

type ACME struct {
	Email      string
	Server     string
	PrivateKey *string
}

ACME holds information about the ACME issuer used for the certificate service.

func (*ACME) DeepCopy

func (in *ACME) DeepCopy() *ACME

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACME.

func (*ACME) DeepCopyInto

func (in *ACME) DeepCopyInto(out *ACME)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CloudDNS

type CloudDNS struct {
	Domains        []string
	Name           string
	Project        string
	ServiceAccount string
}

CloudDNS is a DNS provider used for ACME DNS01 challenges.

func (*CloudDNS) AccessKey

func (c *CloudDNS) AccessKey() string

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

func (*CloudDNS) DNSProvider

func (c *CloudDNS) DNSProvider() DNSProvider

DNSProvider returns the provider type in-use.

func (*CloudDNS) DeepCopy

func (in *CloudDNS) DeepCopy() *CloudDNS

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudDNS.

func (*CloudDNS) DeepCopyInto

func (in *CloudDNS) DeepCopyInto(out *CloudDNS)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CloudDNS) DomainNames

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

DomainNames returns the domains this provider manages.

func (*CloudDNS) ProviderName

func (c *CloudDNS) ProviderName() string

ProviderName returns the CloudDNS provider name.

type Configuration

type Configuration struct {
	metav1.TypeMeta

	Spec ConfigurationSpec
}

Configuration contains information about the certificate service configuration.

func (*Configuration) DeepCopy

func (in *Configuration) DeepCopy() *Configuration

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Configuration.

func (*Configuration) DeepCopyInto

func (in *Configuration) DeepCopyInto(out *Configuration)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Configuration) DeepCopyObject

func (in *Configuration) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ConfigurationSpec

type ConfigurationSpec struct {
	LifecycleSync     metav1.Duration
	ServiceSync       metav1.Duration
	IssuerName        string
	NamespaceRef      string
	ResourceNamespace string
	ACME              ACME
	Providers         DNSProviders
}

ConfigurationSpec contains information about the certificate service configuration.

func (*ConfigurationSpec) DeepCopy

func (in *ConfigurationSpec) DeepCopy() *ConfigurationSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationSpec.

func (*ConfigurationSpec) DeepCopyInto

func (in *ConfigurationSpec) DeepCopyInto(out *ConfigurationSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DNSProvider

type DNSProvider string

DNSProvider string type

const (
	// Route53Provider is a constant string for aws-route53.
	Route53Provider DNSProvider = "aws-route53"
	// CloudDNSProvider is a constant string for google-clouddns.
	CloudDNSProvider 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 DNSProviders

type DNSProviders struct {
	Route53  []Route53
	CloudDNS []CloudDNS
}

DNSProviders hold information about information about DNS providers used for ACME DNS01 challenges.

func (*DNSProviders) DeepCopy

func (in *DNSProviders) DeepCopy() *DNSProviders

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSProviders.

func (*DNSProviders) DeepCopyInto

func (in *DNSProviders) DeepCopyInto(out *DNSProviders)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Route53

type Route53 struct {
	Domains         []string
	Name            string
	Region          string
	AccessKeyID     string
	SecretAccessKey string
}

Route53 is a DNS provider used for ACME DNS01 challenges.

func (*Route53) AccessKey

func (r *Route53) AccessKey() string

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

func (*Route53) DNSProvider

func (r *Route53) DNSProvider() DNSProvider

DNSProvider returns the provider type in-use.

func (*Route53) DeepCopy

func (in *Route53) DeepCopy() *Route53

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Route53.

func (*Route53) DeepCopyInto

func (in *Route53) DeepCopyInto(out *Route53)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Route53) DomainNames

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

DomainNames returns the domains this provider manages.

func (*Route53) ProviderName

func (r *Route53) ProviderName() string

ProviderName returns the route53 provider name.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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