v1

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1 is the v1 version of the API.

Index

Constants

View Source
const (
	// AzureKeyVaultObjectTypeSecret - get Secret object type from Azure Key Vault
	AzureKeyVaultObjectTypeSecret AzureKeyVaultObjectType = "secret"

	// AzureKeyVaultObjectTypeMultiKeyValueSecret - get Secret object type from Azure Key Vault containing multiple key/values
	AzureKeyVaultObjectTypeMultiKeyValueSecret = "multi-key-value-secret"

	// AzureKeyVaultObjectTypeCertificate - get Certificate object type from Azure Key Vault
	AzureKeyVaultObjectTypeCertificate = "certificate"

	// AzureKeyVaultObjectTypeKey - get Key object type from Azure Key Vault
	AzureKeyVaultObjectTypeKey = "key"

	// AzureKeyVaultObjectContentTypeJSON - object content is of type application/x-json
	AzureKeyVaultObjectContentTypeJSON AzureKeyVaultObjectContentType = "application/x-json"

	// AzureKeyVaultObjectContentTypeYaml - object content is of type application/x-yaml
	AzureKeyVaultObjectContentTypeYaml = "application/x-yaml"
)

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: azurekeyvault.GroupName, Version: "v1"}

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 AzureKeyVault

type AzureKeyVault struct {
	// Name of the Azure Key Vault
	Name   string              `json:"name"`
	Object AzureKeyVaultObject `json:"object"`
}

AzureKeyVault contains information needed to get the Azure Key Vault secret from Azure Key Vault

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 AzureKeyVaultObject

type AzureKeyVaultObject struct {
	// The object name in Azure Key Vault
	Name string                  `json:"name"`
	Type AzureKeyVaultObjectType `json:"type"`
	// +optional
	// The object version in Azure Key Vault
	Version string `json:"version"`
	// +optional
	ContentType AzureKeyVaultObjectContentType `json:"contentType"`
}

AzureKeyVaultObject has information about the Azure Key Vault object to get from Azure Key Vault

func (*AzureKeyVaultObject) DeepCopy

func (in *AzureKeyVaultObject) DeepCopy() *AzureKeyVaultObject

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

func (*AzureKeyVaultObject) DeepCopyInto

func (in *AzureKeyVaultObject) DeepCopyInto(out *AzureKeyVaultObject)

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

type AzureKeyVaultObjectContentType

type AzureKeyVaultObjectContentType string

AzureKeyVaultObjectContentType defines what content type a secret contains, only used when type is multi-key-value-secret +kubebuilder:validation:Enum=application/x-json;application/x-yaml

type AzureKeyVaultObjectType

type AzureKeyVaultObjectType string

AzureKeyVaultObjectType defines which Object type to get from Azure Key Vault +kubebuilder:validation:Enum=secret;certificate;key;multi-key-value-secret

type AzureKeyVaultOutput

type AzureKeyVaultOutput struct {
	// +optional
	Secret AzureKeyVaultOutputSecret `json:"secret"`
	// +optional
	Transform []string `json:"transform,omitempty"`
}

AzureKeyVaultOutput defines output sources, currently only support Secret

func (*AzureKeyVaultOutput) DeepCopy

func (in *AzureKeyVaultOutput) DeepCopy() *AzureKeyVaultOutput

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

func (*AzureKeyVaultOutput) DeepCopyInto

func (in *AzureKeyVaultOutput) DeepCopyInto(out *AzureKeyVaultOutput)

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

type AzureKeyVaultOutputSecret

type AzureKeyVaultOutputSecret struct {
	// Name for Kubernetes secret
	Name string `json:"name"`
	// +optional
	// Type of Secret in Kubernetes
	Type corev1.SecretType `json:"type,omitempty"`
	// +optional
	// The key to use in Kubernetes secret when setting the value from Azure Keyv Vault object data
	DataKey string `json:"dataKey"`
	// +optional
	// By setting chainOrder to ensureserverfirst the server certificate will be moved first in the chain
	// +kubebuilder:validation:Enum=ensureserverfirst
	ChainOrder string `json:"chainOrder"`
}

AzureKeyVaultOutputSecret has information needed to output a secret from Azure Key Vault to Kubertnetes as a Secret resource

func (*AzureKeyVaultOutputSecret) DeepCopy

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

func (*AzureKeyVaultOutputSecret) DeepCopyInto

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

type AzureKeyVaultSecret

type AzureKeyVaultSecret struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AzureKeyVaultSecretSpec   `json:"spec"`
	Status AzureKeyVaultSecretStatus `json:"status,omitempty"`
}

AzureKeyVaultSecret is a specification for a AzureKeyVaultSecret resource +kubebuilder:subresource:status

func (*AzureKeyVaultSecret) DeepCopy

func (in *AzureKeyVaultSecret) DeepCopy() *AzureKeyVaultSecret

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

func (*AzureKeyVaultSecret) DeepCopyInto

func (in *AzureKeyVaultSecret) DeepCopyInto(out *AzureKeyVaultSecret)

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

func (*AzureKeyVaultSecret) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AzureKeyVaultSecretList

type AzureKeyVaultSecretList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []AzureKeyVaultSecret `json:"items"`
}

AzureKeyVaultSecretList is a list of AzureKeyVaultSecret resources

func (*AzureKeyVaultSecretList) DeepCopy

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

func (*AzureKeyVaultSecretList) DeepCopyInto

func (in *AzureKeyVaultSecretList) DeepCopyInto(out *AzureKeyVaultSecretList)

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

func (*AzureKeyVaultSecretList) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AzureKeyVaultSecretSpec

type AzureKeyVaultSecretSpec struct {
	Vault  AzureKeyVault       `json:"vault"`
	Output AzureKeyVaultOutput `json:"output,omitempty"`
}

AzureKeyVaultSecretSpec is the spec for a AzureKeyVaultSecret resource

func (*AzureKeyVaultSecretSpec) DeepCopy

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

func (*AzureKeyVaultSecretSpec) DeepCopyInto

func (in *AzureKeyVaultSecretSpec) DeepCopyInto(out *AzureKeyVaultSecretSpec)

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

type AzureKeyVaultSecretStatus

type AzureKeyVaultSecretStatus struct {
	SecretHash      string      `json:"secretHash"`
	LastAzureUpdate metav1.Time `json:"lastAzureUpdate,omitempty"`
	SecretName      string      `json:"secretName"`
}

AzureKeyVaultSecretStatus is the status for a AzureKeyVaultSecret resource

func (*AzureKeyVaultSecretStatus) DeepCopy

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

func (*AzureKeyVaultSecretStatus) DeepCopyInto

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