kubelego

package
v0.0.0-...-7f30ba2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const AcmeHttpChallengePath = "/.well-known/acme-challenge"
View Source
const AcmeHttpSelfTest = "/.well-known/acme-challenge/_selftest"
View Source
const AcmePrivateKey = k8sApi.TLSPrivateKeyKey
View Source
const AcmeRegistration = "acme-registration.json"
View Source
const AcmeRegistrationUrl = "acme-registration-url"
View Source
const AnnotationEnabled = "kubernetes.io/tls-acme"
View Source
const AnnotationIngressChallengeEndpoints = "kubernetes.io/tls-acme-challenge-endpoints"
View Source
const AnnotationIngressChallengeEndpointsHash = "kubernetes.io/tls-acme-challenge-endpoints-hash"
View Source
const AnnotationIngressClass = "kubernetes.io/ingress.class"
View Source
const AnnotationKubeLegoManaged = "kubernetes.io/kube-lego-managed"
View Source
const AnnotationSslRedirect = "ingress.kubernetes.io/ssl-redirect"
View Source
const RsaKeySize = 2048
View Source
const TLSCaKey = "ca.crt"
View Source
const TLSCertKey = k8sApi.TLSCertKey
View Source
const TLSPrivateKeyKey = k8sApi.TLSPrivateKeyKey

Variables

View Source
var SupportedIngressClasses = []string{"nginx", "gce"}

Functions

This section is empty.

Types

type Acme

type Acme interface {
	ObtainCertificate(domains []string) (map[string][]byte, error)
}

type Ingress

type Ingress interface {
	Object() *k8sExtensions.Ingress
	KubeLego() KubeLego
	Log() *logrus.Entry
	Save() error
	Delete() error
	IngressClass() string
	Tls() []Tls
	Ignore() bool
}

type IngressProvider

type IngressProvider interface {
	Log() *logrus.Entry
	Process(Ingress) error
	Reset() error
	Finalize() error
}

type KubeLego

type KubeLego interface {
	KubeClient() *k8sClient.Client
	Log() *logrus.Entry
	AcmeClient() Acme
	LegoHTTPPort() intstr.IntOrString
	LegoEmail() string
	LegoURL() string
	LegoNamespace() string
	LegoIngressNameNginx() string
	LegoServiceNameNginx() string
	LegoServiceNameGce() string
	LegoDefaultIngressClass() string
	LegoCheckInterval() time.Duration
	LegoMinimumValidity() time.Duration
	LegoPodIP() net.IP
	IngressProvider(string) (IngressProvider, error)
	Version() string
	AcmeUser() (map[string][]byte, error)
	SaveAcmeUser(map[string][]byte) error
}

type Secret

type Secret interface {
	Object() *k8sApi.Secret
	KubeLego() KubeLego
	Exists() bool
	Save() error
	TlsDomains() ([]string, error)
	TlsDomainsInclude(domains []string) bool
	TlsExpireTime() (time.Time, error)
}

type Service

type Service interface {
	Object() *k8sApi.Service
	SetKubeLegoSpec()
	SetEndpoints([]string) error
	Save() error
	Delete() error
}

type Tls

type Tls interface {
	Hosts() []string
	SecretMetadata() *k8sApi.ObjectMeta
	IngressMetadata() *k8sApi.ObjectMeta
	Process() error
}

Jump to

Keyboard shortcuts

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