Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=dhs.dockhand.dev
+k8s:deepcopy-gen=package +groupName=dhs.dockhand.dev
+k8s:deepcopy-gen=package +groupName=dhs.dockhand.dev
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type AwsSecretsManager
- type AzureKeyVault
- type GcpSecretsManager
- type Profile
- type ProfileList
- type ProfileRef
- type Secret
- type SecretList
- type SecretRef
- type SecretSpec
- type SecretState
- type SecretStatus
- type Vault
Constants ¶
const ( AutoUpdateLabelKey = "dhs.dockhand.dev/autoUpdate" DockhandSecretLabelKey = "dhs.dockhand.dev/ownedByDockhandSecret" DockhandSecretNamesLabelPrefixKey = "secret.dhs.dockhand.dev/" SecretNamesAnnotationKey = "dhs.dockhand.dev/secretNames" SecretChecksumAnnotationKey = "dhs.dockhand.dev/secretChecksum" Ready SecretState = "Ready" Pending SecretState = "Pending" ErrApplied SecretState = "ErrApplied" )
Variables ¶
var ( ProfileResourceName = "profiles" SecretResourceName = "secrets" )
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: dhs.GroupName, Version: "v1alpha2"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type AwsSecretsManager ¶
type AwsSecretsManager struct { CacheTTL string `json:"cacheTTL"` Region string `json:"region"` AccessKeyId *string `json:"accessKeyId,omitempty"` SecretAccessKeyRef *SecretRef `json:"secretAccessKeyRef,omitempty"` }
AwsSecretsManager specifies the configuration for accessing AWS Secrets.
func (*AwsSecretsManager) DeepCopy ¶
func (in *AwsSecretsManager) DeepCopy() *AwsSecretsManager
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsSecretsManager.
func (*AwsSecretsManager) DeepCopyInto ¶
func (in *AwsSecretsManager) DeepCopyInto(out *AwsSecretsManager)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzureKeyVault ¶
type AzureKeyVault struct { CacheTTL string `json:"cacheTTL"` Tenant string `json:"tenant"` ClientId *string `json:"clientId,omitempty"` ClientSecretRef *SecretRef `json:"clientSecretRef,omitempty"` KeyVault string `json:"keyVault"` }
AzureKeyVault specifies the configuration for accessing Azure Key Vault secrets.
func (*AzureKeyVault) DeepCopy ¶
func (in *AzureKeyVault) DeepCopy() *AzureKeyVault
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureKeyVault.
func (*AzureKeyVault) DeepCopyInto ¶
func (in *AzureKeyVault) DeepCopyInto(out *AzureKeyVault)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GcpSecretsManager ¶
type GcpSecretsManager struct { CacheTTL string `json:"cacheTTL"` Project string `json:"project"` CredentialsFileSecretRef *SecretRef `json:"credentialsFileSecretRef"` }
func (*GcpSecretsManager) DeepCopy ¶
func (in *GcpSecretsManager) DeepCopy() *GcpSecretsManager
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GcpSecretsManager.
func (*GcpSecretsManager) DeepCopyInto ¶
func (in *GcpSecretsManager) DeepCopyInto(out *GcpSecretsManager)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Profile ¶
type Profile struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` AwsSecretsManager *AwsSecretsManager `json:"awsSecretsManager,omitempty"` AzureKeyVault *AzureKeyVault `json:"azureKeyVault,omitempty"` GcpSecretsManager *GcpSecretsManager `json:"gcpSecretsManager,omitempty"` Vault *Vault `json:"vault,omitempty"` }
Profile is a specification for a DockhandProfile resource
func NewProfile ¶
func (*Profile) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Profile.
func (*Profile) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Profile) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProfileList ¶
type ProfileList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Profile `json:"items"` }
ProfileList is a list of Profile resources
func (*ProfileList) DeepCopy ¶
func (in *ProfileList) DeepCopy() *ProfileList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProfileList.
func (*ProfileList) DeepCopyInto ¶
func (in *ProfileList) DeepCopyInto(out *ProfileList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProfileList) DeepCopyObject ¶
func (in *ProfileList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProfileRef ¶
func (*ProfileRef) DeepCopy ¶
func (in *ProfileRef) DeepCopy() *ProfileRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProfileRef.
func (*ProfileRef) DeepCopyInto ¶
func (in *ProfileRef) DeepCopyInto(out *ProfileRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Secret ¶
type Secret struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` SyncInterval string `json:"syncInterval"` Data map[string]string `json:"data"` SecretSpec SecretSpec `json:"secretSpec"` Profile ProfileRef `json:"profile"` Status SecretStatus `json:"status,omitempty"` }
Secret is a specification for a Secret resource.
func (*Secret) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Secret.
func (*Secret) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Secret) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SecretList ¶
type SecretList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Secret `json:"items"` }
SecretList is a list of Secret resources
func (*SecretList) DeepCopy ¶
func (in *SecretList) DeepCopy() *SecretList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretList.
func (*SecretList) DeepCopyInto ¶
func (in *SecretList) DeepCopyInto(out *SecretList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SecretList) DeepCopyObject ¶
func (in *SecretList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SecretRef ¶
SecretRef specifies a reference to a Secret
func (*SecretRef) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretRef.
func (*SecretRef) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretSpec ¶
type SecretSpec struct { Name string `json:"name"` Type string `json:"type"` Labels map[string]string `json:"labels"` Annotations map[string]string `json:"annotations"` }
SecretSpec defines the kubernetes secret data to use for the secret managed by a Secret
func (*SecretSpec) DeepCopy ¶
func (in *SecretSpec) DeepCopy() *SecretSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretSpec.
func (*SecretSpec) DeepCopyInto ¶
func (in *SecretSpec) DeepCopyInto(out *SecretSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretState ¶
type SecretState string
type SecretStatus ¶
type SecretStatus struct { State SecretState `json:"state"` ObservedAnnotationChecksum string `json:"observedAnnotationChecksum"` ObservedGeneration int64 `json:"observedGeneration"` ObservedSecretResourceVersion string `json:"observedSecretResourceVersion"` SyncTimestamp string `json:"syncTimestamp"` }
func (*SecretStatus) DeepCopy ¶
func (in *SecretStatus) DeepCopy() *SecretStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretStatus.
func (*SecretStatus) DeepCopyInto ¶
func (in *SecretStatus) DeepCopyInto(out *SecretStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Vault ¶
type Vault struct { CacheTTL string `json:"cacheTTL"` Addr string `json:"addr"` RoleId *string `json:"roleId,omitempty"` SecretIdRef *SecretRef `json:"secretIdRef,omitempty"` TokenRef *SecretRef `json:"tokenRef,omitempty"` }
Vault specifies the configuration for accessing Vault secrets.
func (*Vault) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Vault.
func (*Vault) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.