Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +k8s:defaulter-gen=TypeMeta +groupName=secretgen.k14s.io
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type Certificate
- type CertificateList
- type CertificateSpec
- type CertificateStatus
- type Condition
- type ConditionType
- type GenericStatus
- type Password
- type PasswordList
- type PasswordSpec
- type PasswordStatus
- type RSAKey
- type RSAKeyList
- type RSAKeySpec
- type RSAKeyStatus
- type SSHKey
- type SSHKeyList
- type SSHKeySpec
- type SSHKeyStatus
- type SecretTemplate
- type SecretTemplateMetadata
Constants ¶
const ( CertificateSecretCertificateKey = "certificate" CertificateSecretPrivateKeyKey = "privateKey" CertificateSecretDefaultType = corev1.SecretTypeOpaque CertificateSecretDefaultCertificateKey = "crt.pem" CertificateSecretDefaultPrivateKeyKey = "key.pem" )
const ( PasswordSecretKey = "value" PasswordSecretDefaultType = corev1.SecretTypeBasicAuth PasswordSecretDefaultKey = corev1.BasicAuthPasswordKey )
const ( RSAKeySecretPublicKeyKey = "publicKey" RSAKeySecretPrivateKeyKey = "privateKey" RSAKeySecretDefaultType = corev1.SecretTypeOpaque RSAKeySecretDefaultPublicKeyKey = "pub.pem" RSAKeySecretDefaultPrivateKeyKey = "key.pem" )
const ( SSHKeySecretPrivateKeyKey = "privateKey" SSHKeySecretAuthorizedKeyKey = "authorizedKey" SSHKeySecretDefaultType = corev1.SecretTypeSSHAuth SSHKeySecretDefaultPrivateKeyKey = corev1.SSHAuthPrivateKey SSHKeySecretDefaultAuthorizedKeyKey = "ssh-authorizedkey" )
Variables ¶
var ( SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: "secretgen.k14s.io", Version: "v1alpha1"}
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Types ¶
type Certificate ¶
type Certificate struct { metav1.TypeMeta `json:",inline"` // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // +optional Spec CertificateSpec `json:"spec"` // +optional Status CertificateStatus `json:"status"` }
+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:subresource:status +kubebuilder:printcolumn:name=Description,JSONPath=.status.friendlyDescription,description=Friendly description,type=string +kubebuilder:printcolumn:name=Age,JSONPath=.metadata.creationTimestamp,description=Time since creation,type=date
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: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []Certificate `json:"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 { // +optional CARef *corev1.LocalObjectReference `json:"caRef,omitempty"` // +optional IsCA bool `json:"isCA,omitempty"` // +optional CommonName string `json:"commonName,omitempty"` // +optional Organization string `json:"organization,omitempty"` // +optional AlternativeNames []string `json:"alternativeNames,omitempty"` // +optional ExtendedKeyUsage []string `json:"extendedKeyUsage,omitempty"` // +optional Duration int64 `json:"duration,omitempty"` // +optional SecretTemplate *SecretTemplate `json:"secretTemplate,omitempty"` }
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 {
GenericStatus `json:",inline"`
}
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 Condition ¶
type Condition struct { // +optional Type ConditionType `json:"type"` // +optional Status corev1.ConditionStatus `json:"status"` // Unique, this should be a short, machine understandable string that gives the reason // for condition's last transition. If it reports "ResizeStarted" that means the underlying // persistent volume is being resized. // +optional Reason string `json:"reason,omitempty"` // Human-readable message indicating details about last transition. // +optional Message string `json:"message,omitempty"` }
func (*Condition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConditionType ¶
type ConditionType string
const ( Reconciling ConditionType = "Reconciling" ReconcileFailed ConditionType = "ReconcileFailed" ReconcileSucceeded ConditionType = "ReconcileSucceeded" // Invalid indicates that CRD's spec is not of valid form. Invalid ConditionType = "Invalid" )
type GenericStatus ¶
type GenericStatus struct { // +optional ObservedGeneration int64 `json:"observedGeneration"` // +optional Conditions []Condition `json:"conditions"` // +optional FriendlyDescription string `json:"friendlyDescription"` }
func (*GenericStatus) DeepCopy ¶
func (in *GenericStatus) DeepCopy() *GenericStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericStatus.
func (*GenericStatus) DeepCopyInto ¶
func (in *GenericStatus) DeepCopyInto(out *GenericStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Password ¶
type Password struct { metav1.TypeMeta `json:",inline"` // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // +optional Spec PasswordSpec `json:"spec"` // +optional Status PasswordStatus `json:"status"` }
+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:subresource:status +kubebuilder:printcolumn:name=Description,JSONPath=.status.friendlyDescription,description=Friendly description,type=string +kubebuilder:printcolumn:name=Age,JSONPath=.metadata.creationTimestamp,description=Time since creation,type=date
func (*Password) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Password.
func (*Password) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Password) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PasswordList ¶
type PasswordList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []Password `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*PasswordList) DeepCopy ¶
func (in *PasswordList) DeepCopy() *PasswordList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PasswordList.
func (*PasswordList) DeepCopyInto ¶
func (in *PasswordList) DeepCopyInto(out *PasswordList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PasswordList) DeepCopyObject ¶
func (in *PasswordList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PasswordSpec ¶
type PasswordSpec struct { // +optional // +kubebuilder:default:=40 Length int `json:"length"` // +optional // +kubebuilder:default:=0 Digits int `json:"digits"` // +optional // +kubebuilder:default:=0 Symbols int `json:"symbols"` // +optional // +kubebuilder:default:=0 UppercaseLetters int `json:"uppercaseLetters"` // +optional // +kubebuilder:default:=0 LowercaseLetters int `json:"lowercaseLetters"` // +optional // +kubebuilder:default:="!@#$%&*;.:" SymbolCharSet string `json:"symbolCharSet"` // +optional SecretTemplate *SecretTemplate `json:"secretTemplate,omitempty"` }
func (*PasswordSpec) DeepCopy ¶
func (in *PasswordSpec) DeepCopy() *PasswordSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PasswordSpec.
func (*PasswordSpec) DeepCopyInto ¶
func (in *PasswordSpec) DeepCopyInto(out *PasswordSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PasswordStatus ¶
type PasswordStatus struct {
GenericStatus `json:",inline"`
}
func (*PasswordStatus) DeepCopy ¶
func (in *PasswordStatus) DeepCopy() *PasswordStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PasswordStatus.
func (*PasswordStatus) DeepCopyInto ¶
func (in *PasswordStatus) DeepCopyInto(out *PasswordStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RSAKey ¶
type RSAKey struct { metav1.TypeMeta `json:",inline"` // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // +optional Spec RSAKeySpec `json:"spec"` // +optional Status RSAKeyStatus `json:"status"` }
+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:subresource:status +kubebuilder:printcolumn:name=Description,JSONPath=.status.friendlyDescription,description=Friendly description,type=string +kubebuilder:printcolumn:name=Age,JSONPath=.metadata.creationTimestamp,description=Time since creation,type=date
func (*RSAKey) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RSAKey.
func (*RSAKey) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RSAKey) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RSAKeyList ¶
type RSAKeyList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []RSAKey `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*RSAKeyList) DeepCopy ¶
func (in *RSAKeyList) DeepCopy() *RSAKeyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RSAKeyList.
func (*RSAKeyList) DeepCopyInto ¶
func (in *RSAKeyList) DeepCopyInto(out *RSAKeyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RSAKeyList) DeepCopyObject ¶
func (in *RSAKeyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RSAKeySpec ¶
type RSAKeySpec struct { // +optional SecretTemplate *SecretTemplate `json:"secretTemplate,omitempty"` }
func (*RSAKeySpec) DeepCopy ¶
func (in *RSAKeySpec) DeepCopy() *RSAKeySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RSAKeySpec.
func (*RSAKeySpec) DeepCopyInto ¶
func (in *RSAKeySpec) DeepCopyInto(out *RSAKeySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RSAKeyStatus ¶
type RSAKeyStatus struct {
GenericStatus `json:",inline"`
}
func (*RSAKeyStatus) DeepCopy ¶
func (in *RSAKeyStatus) DeepCopy() *RSAKeyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RSAKeyStatus.
func (*RSAKeyStatus) DeepCopyInto ¶
func (in *RSAKeyStatus) DeepCopyInto(out *RSAKeyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SSHKey ¶
type SSHKey struct { metav1.TypeMeta `json:",inline"` // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // +optional Spec SSHKeySpec `json:"spec"` // +optional Status SSHKeyStatus `json:"status"` }
+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:subresource:status +kubebuilder:printcolumn:name=Description,JSONPath=.status.friendlyDescription,description=Friendly description,type=string +kubebuilder:printcolumn:name=Age,JSONPath=.metadata.creationTimestamp,description=Time since creation,type=date
func (*SSHKey) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSHKey.
func (*SSHKey) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SSHKey) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SSHKeyList ¶
type SSHKeyList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []SSHKey `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*SSHKeyList) DeepCopy ¶
func (in *SSHKeyList) DeepCopy() *SSHKeyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSHKeyList.
func (*SSHKeyList) DeepCopyInto ¶
func (in *SSHKeyList) DeepCopyInto(out *SSHKeyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SSHKeyList) DeepCopyObject ¶
func (in *SSHKeyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SSHKeySpec ¶
type SSHKeySpec struct { // +optional SecretTemplate *SecretTemplate `json:"secretTemplate,omitempty"` }
func (*SSHKeySpec) DeepCopy ¶
func (in *SSHKeySpec) DeepCopy() *SSHKeySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSHKeySpec.
func (*SSHKeySpec) DeepCopyInto ¶
func (in *SSHKeySpec) DeepCopyInto(out *SSHKeySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SSHKeyStatus ¶
type SSHKeyStatus struct {
GenericStatus `json:",inline"`
}
func (*SSHKeyStatus) DeepCopy ¶
func (in *SSHKeyStatus) DeepCopy() *SSHKeyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SSHKeyStatus.
func (*SSHKeyStatus) DeepCopyInto ¶
func (in *SSHKeyStatus) DeepCopyInto(out *SSHKeyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretTemplate ¶
type SecretTemplate struct { // +optional Metadata SecretTemplateMetadata `json:"metadata,omitempty"` // +optional Type corev1.SecretType `json:"type,omitempty"` // +optional StringData map[string]string `json:"stringData,omitempty"` }
func (*SecretTemplate) DeepCopy ¶ added in v0.2.0
func (in *SecretTemplate) DeepCopy() *SecretTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretTemplate.
func (*SecretTemplate) DeepCopyInto ¶ added in v0.2.0
func (in *SecretTemplate) DeepCopyInto(out *SecretTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretTemplateMetadata ¶
type SecretTemplateMetadata struct { // +optional Annotations map[string]string `json:"annotations,omitempty"` // +optional Labels map[string]string `json:"labels,omitempty"` }
func (*SecretTemplateMetadata) DeepCopy ¶ added in v0.2.0
func (in *SecretTemplateMetadata) DeepCopy() *SecretTemplateMetadata
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretTemplateMetadata.
func (*SecretTemplateMetadata) DeepCopyInto ¶ added in v0.2.0
func (in *SecretTemplateMetadata) DeepCopyInto(out *SecretTemplateMetadata)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.