Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +groupName=cert
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type ACMESpec
- type Certificate
- type CertificateList
- type CertificateSpec
- type CertificateStatus
- type Issuer
- type IssuerList
- type IssuerRef
- type IssuerRefWithNamespace
- type IssuerSpec
- type IssuerStatus
Constants ¶
const ( // Version is the version of the API. Version = "v1alpha1" // GroupName is the group name of the API. GroupName = cert.GroupName // IssuerKind is the issuer kind. IssuerKind = "Issuer" // IssuerPlural is its plural form. IssuerPlural = "issuers" // IssuerShort is the short name. IssuerShort = "issuer" // CertificateKind is the certificate kind. CertificateKind = "Certificate" // CertificatePlural is its plural form. CertificatePlural = "certificates" // CertificateShort is the short name. CertificateShort = "cert" )
const ( // StatePending is the pending state. StatePending = "Pending" // StateError is the error state. StateError = "Error" // StateReady is the ready state. StateReady = "Ready" )
Variables ¶
var ( // SchemeBuilder is a new Scheme Builder which registers our API. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a reference to the Scheme Builder's AddToScheme function. AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: cert.GroupName, Version: Version}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resources and returns a Group qualified GroupResource
Types ¶
type ACMESpec ¶
type ACMESpec struct { // Server is the URL of the ACME server. Server string `json:"server"` // Email is the email address to use for user registration. Email string `json:"email"` // AutoRegistration is the flag if automatic registration should be applied if needed. // +optional AutoRegistration bool `json:"autoRegistration,omitempty"` // PrivateKeySecretRef is the secret ref to the ACME private key. // +optional PrivateKeySecretRef *corev1.SecretReference `json:"privateKeySecretRef,omitempty"` }
ACMESpec is the ACME specific part of the spec.
func (*ACMESpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ACMESpec.
func (*ACMESpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Certificate ¶
type Certificate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CertificateSpec `json:"spec"` Status CertificateStatus `json:"status"` }
Certificate is the certificate CR. +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*Certificate) DeepCopy ¶
func (in *Certificate) DeepCopy() *Certificate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Certificate.
func (*Certificate) DeepCopyInto ¶
func (in *Certificate) DeepCopyInto(out *Certificate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Certificate) DeepCopyObject ¶
func (in *Certificate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CertificateList ¶
type CertificateList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata metav1.ListMeta `json:"metadata,omitempty"` Items []Certificate `json:"items"` }
CertificateList is the list of Certificate items. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*CertificateList) DeepCopy ¶
func (in *CertificateList) DeepCopy() *CertificateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateList.
func (*CertificateList) DeepCopyInto ¶
func (in *CertificateList) DeepCopyInto(out *CertificateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CertificateList) DeepCopyObject ¶
func (in *CertificateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CertificateSpec ¶
type CertificateSpec struct { // CommonName is the CN for the certificate (max. 64 chars). CommonName *string `json:"commonName,omitempty"` // DNSNames are the optional additional domain names of the certificate. // +optional DNSNames []string `json:"dnsNames,omitempty"` // CSR is the alternative way to provide CN,DNSNames and other information. // +optional CSR []byte `json:"csr,omitempty"` // IssuerRef is the reference of the issuer to use. IssuerRef *IssuerRef `json:"issuerRef,omitempty"` // SecretName is the name of the secret object to use for storing the certificate. SecretName *string `json:"secretName,omitempty"` // SecretRef is the reference of the secret object to use for storing the certificate. SecretRef *corev1.SecretReference `json:"secretRef,omitempty"` }
CertificateSpec is the spec of the certificate to request.
func (*CertificateSpec) DeepCopy ¶
func (in *CertificateSpec) DeepCopy() *CertificateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSpec.
func (*CertificateSpec) DeepCopyInto ¶
func (in *CertificateSpec) DeepCopyInto(out *CertificateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CertificateStatus ¶
type CertificateStatus struct { // ObservedGeneration is the observed generation of the spec. ObservedGeneration int64 `json:"observedGeneration,omitempty"` // State is the certificate state. State string `json:"state"` // Message is the status or error message. Message *string `json:"message,omitempty"` // LastPendingTimestamp contains the start timestamp of the last pending status. LastPendingTimestamp *metav1.Time `json:"lastPendingTimestamp"` // CommonName is the current CN. CommonName *string `json:"commonName,omitempty"` // DNSNames are the current domain names. DNSNames []string `json:"dnsNames,omitempty"` // IssuerRef is the used issuer. IssuerRef *IssuerRefWithNamespace `json:"issuerRef,omitempty"` // ExpirationDate shows the notAfter validity date. ExpirationDate *string `json:"expirationDate,omitempty"` }
CertificateStatus is the status of the certificate request.
func (*CertificateStatus) DeepCopy ¶
func (in *CertificateStatus) DeepCopy() *CertificateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateStatus.
func (*CertificateStatus) DeepCopyInto ¶
func (in *CertificateStatus) DeepCopyInto(out *CertificateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Issuer ¶
type Issuer struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec IssuerSpec `json:"spec"` Status IssuerStatus `json:"status"` }
Issuer is the issuer CR. +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*Issuer) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Issuer.
func (*Issuer) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Issuer) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IssuerList ¶
type IssuerList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata metav1.ListMeta `json:"metadata,omitempty"` Items []Issuer `json:"items"` }
IssuerList is the list of Issuers +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*IssuerList) DeepCopy ¶
func (in *IssuerList) DeepCopy() *IssuerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IssuerList.
func (*IssuerList) DeepCopyInto ¶
func (in *IssuerList) DeepCopyInto(out *IssuerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IssuerList) DeepCopyObject ¶
func (in *IssuerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IssuerRef ¶
type IssuerRef struct { // Name is the name of the issuer CR in the same namespace. Name string `json:"name"` }
IssuerRef is the reference of the issuer by name.
func (*IssuerRef) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IssuerRef.
func (*IssuerRef) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IssuerRefWithNamespace ¶
type IssuerRefWithNamespace struct { // Name is the name of the issuer CR. Name string `json:"name"` // Namespace is the namespace of the issuer CR. Namespace string `json:"namespace"` }
IssuerRefWithNamespace is the full qualified issuer reference.
func (*IssuerRefWithNamespace) DeepCopy ¶
func (in *IssuerRefWithNamespace) DeepCopy() *IssuerRefWithNamespace
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IssuerRefWithNamespace.
func (*IssuerRefWithNamespace) DeepCopyInto ¶
func (in *IssuerRefWithNamespace) DeepCopyInto(out *IssuerRefWithNamespace)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IssuerSpec ¶
type IssuerSpec struct { // ACME is the ACME protocol specific spec. // +optional ACME *ACMESpec `json:"acme,omitempty"` }
IssuerSpec is the spec of the issuer.
func (*IssuerSpec) DeepCopy ¶
func (in *IssuerSpec) DeepCopy() *IssuerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IssuerSpec.
func (*IssuerSpec) DeepCopyInto ¶
func (in *IssuerSpec) DeepCopyInto(out *IssuerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IssuerStatus ¶
type IssuerStatus struct { // ObservedGeneration is the observed generation of the spec. ObservedGeneration int64 `json:"observedGeneration,omitempty"` // State is either empty, 'Pending', 'Error', or 'Ready'. State string `json:"state"` // Message is the status or error message. Message *string `json:"message,omitempty"` // Type is the issuer type. Currently only 'acme' is supported. Type *string `json:"type"` // ACME is the ACME specific status. ACME *runtime.RawExtension `json:"acme,omitempty"` }
IssuerStatus is the status of the issuer.
func (*IssuerStatus) DeepCopy ¶
func (in *IssuerStatus) DeepCopy() *IssuerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IssuerStatus.
func (*IssuerStatus) DeepCopyInto ¶
func (in *IssuerStatus) DeepCopyInto(out *IssuerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.