v1alpha2

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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

View Source
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

View Source
var (
	ProfileResourceName = "profiles"
	SecretResourceName  = "secrets"
)
View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: dhs.GroupName, Version: "v1alpha2"}

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 back 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 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 NewProfile(namespace, name string, obj Profile) *Profile

func (*Profile) DeepCopy

func (in *Profile) DeepCopy() *Profile

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

func (*Profile) DeepCopyInto

func (in *Profile) DeepCopyInto(out *Profile)

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

func (*Profile) DeepCopyObject

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

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

type ProfileRef struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

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 NewSecret

func NewSecret(namespace, name string, obj Secret) *Secret

func (*Secret) DeepCopy

func (in *Secret) DeepCopy() *Secret

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

func (*Secret) DeepCopyInto

func (in *Secret) DeepCopyInto(out *Secret)

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

func (*Secret) DeepCopyObject

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

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

type SecretRef struct {
	Name string `json:"name"`
	Key  string `json:"key"`
}

SecretRef specifies a reference to a Secret

func (*SecretRef) DeepCopy

func (in *SecretRef) DeepCopy() *SecretRef

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

func (*SecretRef) DeepCopyInto

func (in *SecretRef) DeepCopyInto(out *SecretRef)

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

func (in *Vault) DeepCopy() *Vault

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

func (*Vault) DeepCopyInto

func (in *Vault) DeepCopyInto(out *Vault)

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

Jump to

Keyboard shortcuts

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