v1alpha2

package
v0.0.0-...-affaa53 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha2 contains API Schema definitions for the assetstore v1alpha2 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/kyma-project/kyma/components/asset-store-controller-manager/pkg/apis/assetstore +k8s:defaulter-gen=TypeMeta +groupName=assetstore.kyma-project.io

Package v1alpha2 contains API Schema definitions for the assetstore v1alpha2 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/kyma-project/kyma/components/asset-store-controller-manager/pkg/apis/assetstore +k8s:defaulter-gen=TypeMeta +groupName=assetstore.kyma-project.io

Index

Constants

View Source
const (
	BucketRegionUSEast1      BucketRegion = "us-east-1"
	BucketRegionUSWest1                   = "us-west-1"
	BucketRegionUSWest2                   = "us-west-2"
	BucketRegionEUEast1                   = "eu-west-1"
	BucketRegionEUCentral1                = "eu-central-1"
	BucketRegionAPSoutheast1              = "ap-southeast-1"
	BucketRegionAPSoutheast2              = "ap-southeast-2"
	BucketRegionAPNortheast1              = "ap-northeast-1"
	BucketRegionSAEast1                   = "sa-east-1"
)

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "assetstore.kyma-project.io", Version: "v1alpha2"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}

	// AddToScheme is required by pkg/client/...
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource is required by pkg/client/listers/...

Types

type Asset

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

	Spec   AssetSpec   `json:"spec,omitempty"`
	Status AssetStatus `json:"status,omitempty"`
}

Asset is the Schema for the assets API +k8s:openapi-gen=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Base URL",type="string",JSONPath=".status.assetRef.baseUrl" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (*Asset) DeepCopy

func (in *Asset) DeepCopy() *Asset

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

func (*Asset) DeepCopyInto

func (in *Asset) DeepCopyInto(out *Asset)

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

func (*Asset) DeepCopyObject

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

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

type AssetBucketRef

type AssetBucketRef struct {
	Name string `json:"name"`
}

func (*AssetBucketRef) DeepCopy

func (in *AssetBucketRef) DeepCopy() *AssetBucketRef

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

func (*AssetBucketRef) DeepCopyInto

func (in *AssetBucketRef) DeepCopyInto(out *AssetBucketRef)

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

type AssetFile

type AssetFile struct {
	Name     string                `json:"name"`
	Metadata *runtime.RawExtension `json:"metadata,omitempty"`
}

func (*AssetFile) DeepCopy

func (in *AssetFile) DeepCopy() *AssetFile

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

func (*AssetFile) DeepCopyInto

func (in *AssetFile) DeepCopyInto(out *AssetFile)

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

type AssetList

type AssetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Asset `json:"items"`
}

AssetList contains a list of Asset

func (*AssetList) DeepCopy

func (in *AssetList) DeepCopy() *AssetList

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

func (*AssetList) DeepCopyInto

func (in *AssetList) DeepCopyInto(out *AssetList)

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

func (*AssetList) DeepCopyObject

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

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

type AssetMode

type AssetMode string
const (
	AssetSingle  AssetMode = "single"
	AssetPackage AssetMode = "package"
	AssetIndex   AssetMode = "index"
)

type AssetPhase

type AssetPhase string
const (
	AssetReady   AssetPhase = "Ready"
	AssetPending AssetPhase = "Pending"
	AssetFailed  AssetPhase = "Failed"
)

type AssetSource

type AssetSource struct {
	// +kubebuilder:validation:Enum=single,package,index
	Mode AssetMode `json:"mode"`
	URL  string    `json:"url"`
	// +optional
	Filter string `json:"filter,omitempty"`

	// +optional
	ValidationWebhookService []AssetWebhookService `json:"validationWebhookService,omitempty"`

	// +optional
	MutationWebhookService []AssetWebhookService `json:"mutationWebhookService,omitempty"`

	// +optional
	MetadataWebhookService []WebhookService `json:"metadataWebhookService,omitempty"`
}

func (*AssetSource) DeepCopy

func (in *AssetSource) DeepCopy() *AssetSource

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

func (*AssetSource) DeepCopyInto

func (in *AssetSource) DeepCopyInto(out *AssetSource)

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

type AssetSpec

type AssetSpec struct {
	CommonAssetSpec `json:",inline"`
}

AssetSpec defines the desired state of Asset

func (*AssetSpec) DeepCopy

func (in *AssetSpec) DeepCopy() *AssetSpec

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

func (*AssetSpec) DeepCopyInto

func (in *AssetSpec) DeepCopyInto(out *AssetSpec)

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

type AssetStatus

type AssetStatus struct {
	CommonAssetStatus `json:",inline"`
}

AssetStatus defines the observed state of Asset

func (*AssetStatus) DeepCopy

func (in *AssetStatus) DeepCopy() *AssetStatus

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

func (*AssetStatus) DeepCopyInto

func (in *AssetStatus) DeepCopyInto(out *AssetStatus)

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

type AssetStatusRef

type AssetStatusRef struct {
	BaseURL string      `json:"baseUrl"`
	Files   []AssetFile `json:"files,omitempty"`
}

func (*AssetStatusRef) DeepCopy

func (in *AssetStatusRef) DeepCopy() *AssetStatusRef

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

func (*AssetStatusRef) DeepCopyInto

func (in *AssetStatusRef) DeepCopyInto(out *AssetStatusRef)

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

type AssetWebhookService

type AssetWebhookService struct {
	WebhookService `json:",inline"`
	Metadata       *runtime.RawExtension `json:"metadata,omitempty"`
}

func (*AssetWebhookService) DeepCopy

func (in *AssetWebhookService) DeepCopy() *AssetWebhookService

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

func (*AssetWebhookService) DeepCopyInto

func (in *AssetWebhookService) DeepCopyInto(out *AssetWebhookService)

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

type Bucket

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

	Spec   BucketSpec   `json:"spec,omitempty"`
	Status BucketStatus `json:"status,omitempty"`
}

Bucket is the Schema for the buckets API +k8s:openapi-gen=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="URL",type="string",JSONPath=".status.url" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (*Bucket) DeepCopy

func (in *Bucket) DeepCopy() *Bucket

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

func (*Bucket) DeepCopyInto

func (in *Bucket) DeepCopyInto(out *Bucket)

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

func (*Bucket) DeepCopyObject

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

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

type BucketList

type BucketList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Bucket `json:"items"`
}

BucketList contains a list of Bucket

func (*BucketList) DeepCopy

func (in *BucketList) DeepCopy() *BucketList

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

func (*BucketList) DeepCopyInto

func (in *BucketList) DeepCopyInto(out *BucketList)

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

func (*BucketList) DeepCopyObject

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

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

type BucketPhase

type BucketPhase string
const (
	// BucketReady means that the bucket has been successfully created
	BucketReady BucketPhase = "Ready"

	// BucketFailed means that the bucket couldn't be created or has been deleted manually
	BucketFailed BucketPhase = "Failed"
)

type BucketPolicy

type BucketPolicy string
const (
	BucketPolicyNone      BucketPolicy = "none"
	BucketPolicyReadOnly  BucketPolicy = "readonly"
	BucketPolicyWriteOnly BucketPolicy = "writeonly"
	BucketPolicyReadWrite BucketPolicy = "readwrite"
)

type BucketRegion

type BucketRegion string

type BucketSpec

type BucketSpec struct {
	CommonBucketSpec `json:",inline"`
}

BucketSpec defines the desired state of Bucket

func (*BucketSpec) DeepCopy

func (in *BucketSpec) DeepCopy() *BucketSpec

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

func (*BucketSpec) DeepCopyInto

func (in *BucketSpec) DeepCopyInto(out *BucketSpec)

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

type BucketStatus

type BucketStatus struct {
	CommonBucketStatus `json:",inline"`
}

BucketStatus defines the observed state of Bucket

func (*BucketStatus) DeepCopy

func (in *BucketStatus) DeepCopy() *BucketStatus

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

func (*BucketStatus) DeepCopyInto

func (in *BucketStatus) DeepCopyInto(out *BucketStatus)

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

type ClusterAsset

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

	Spec   ClusterAssetSpec   `json:"spec,omitempty"`
	Status ClusterAssetStatus `json:"status,omitempty"`
}

ClusterAsset is the Schema for the clusterassets API +k8s:openapi-gen=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Base URL",type="string",JSONPath=".status.assetRef.baseUrl" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (*ClusterAsset) DeepCopy

func (in *ClusterAsset) DeepCopy() *ClusterAsset

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

func (*ClusterAsset) DeepCopyInto

func (in *ClusterAsset) DeepCopyInto(out *ClusterAsset)

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

func (*ClusterAsset) DeepCopyObject

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

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

type ClusterAssetList

type ClusterAssetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ClusterAsset `json:"items"`
}

ClusterAssetList contains a list of ClusterAsset

func (*ClusterAssetList) DeepCopy

func (in *ClusterAssetList) DeepCopy() *ClusterAssetList

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

func (*ClusterAssetList) DeepCopyInto

func (in *ClusterAssetList) DeepCopyInto(out *ClusterAssetList)

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

func (*ClusterAssetList) DeepCopyObject

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

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

type ClusterAssetSpec

type ClusterAssetSpec struct {
	CommonAssetSpec `json:",inline"`
}

ClusterAssetSpec defines the desired state of Cluster Asset

func (*ClusterAssetSpec) DeepCopy

func (in *ClusterAssetSpec) DeepCopy() *ClusterAssetSpec

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

func (*ClusterAssetSpec) DeepCopyInto

func (in *ClusterAssetSpec) DeepCopyInto(out *ClusterAssetSpec)

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

type ClusterAssetStatus

type ClusterAssetStatus struct {
	CommonAssetStatus `json:",inline"`
}

ClusterAssetStatus defines the observed state of Cluster Asset

func (*ClusterAssetStatus) DeepCopy

func (in *ClusterAssetStatus) DeepCopy() *ClusterAssetStatus

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

func (*ClusterAssetStatus) DeepCopyInto

func (in *ClusterAssetStatus) DeepCopyInto(out *ClusterAssetStatus)

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

type ClusterBucket

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

	Spec   ClusterBucketSpec   `json:"spec,omitempty"`
	Status ClusterBucketStatus `json:"status,omitempty"`
}

ClusterBucket is the Schema for the clusterbuckets API +k8s:openapi-gen=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="URL",type="string",JSONPath=".status.url" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (*ClusterBucket) DeepCopy

func (in *ClusterBucket) DeepCopy() *ClusterBucket

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

func (*ClusterBucket) DeepCopyInto

func (in *ClusterBucket) DeepCopyInto(out *ClusterBucket)

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

func (*ClusterBucket) DeepCopyObject

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

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

type ClusterBucketList

type ClusterBucketList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ClusterBucket `json:"items"`
}

ClusterBucketList contains a list of ClusterBucket

func (*ClusterBucketList) DeepCopy

func (in *ClusterBucketList) DeepCopy() *ClusterBucketList

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

func (*ClusterBucketList) DeepCopyInto

func (in *ClusterBucketList) DeepCopyInto(out *ClusterBucketList)

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

func (*ClusterBucketList) DeepCopyObject

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

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

type ClusterBucketSpec

type ClusterBucketSpec struct {
	CommonBucketSpec `json:",inline"`
}

ClusterBucketSpec defines the desired state of Bucket

func (*ClusterBucketSpec) DeepCopy

func (in *ClusterBucketSpec) DeepCopy() *ClusterBucketSpec

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

func (*ClusterBucketSpec) DeepCopyInto

func (in *ClusterBucketSpec) DeepCopyInto(out *ClusterBucketSpec)

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

type ClusterBucketStatus

type ClusterBucketStatus struct {
	CommonBucketStatus `json:",inline"`
}

ClusterBucketStatus defines the observed state of Bucket

func (*ClusterBucketStatus) DeepCopy

func (in *ClusterBucketStatus) DeepCopy() *ClusterBucketStatus

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

func (*ClusterBucketStatus) DeepCopyInto

func (in *ClusterBucketStatus) DeepCopyInto(out *ClusterBucketStatus)

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

type CommonAssetSpec

type CommonAssetSpec struct {
	Source    AssetSource    `json:"source"`
	BucketRef AssetBucketRef `json:"bucketRef,omitempty"`
	// +optional
	Metadata *runtime.RawExtension `json:"metadata,omitempty"`
}

CommonAssetSpec defines the desired state of Asset

func (*CommonAssetSpec) DeepCopy

func (in *CommonAssetSpec) DeepCopy() *CommonAssetSpec

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

func (*CommonAssetSpec) DeepCopyInto

func (in *CommonAssetSpec) DeepCopyInto(out *CommonAssetSpec)

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

type CommonAssetStatus

type CommonAssetStatus struct {
	Phase              AssetPhase     `json:"phase"`
	Message            string         `json:"message,omitempty"`
	Reason             string         `json:"reason,omitempty"`
	AssetRef           AssetStatusRef `json:"assetRef,omitempty"`
	LastHeartbeatTime  metav1.Time    `json:"lastHeartbeatTime"`
	ObservedGeneration int64          `json:"observedGeneration"`
}

CommonAssetStatus defines the observed state of Asset

func (*CommonAssetStatus) DeepCopy

func (in *CommonAssetStatus) DeepCopy() *CommonAssetStatus

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

func (*CommonAssetStatus) DeepCopyInto

func (in *CommonAssetStatus) DeepCopyInto(out *CommonAssetStatus)

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

type CommonBucketSpec

type CommonBucketSpec struct {
	// +kubebuilder:validation:Enum=,us-east-1,us-west-1,us-west-2,eu-west-1,eu-central-1,ap-southeast-1,ap-southeast-2,ap-northeast-1,sa-east-1
	// +optional
	Region BucketRegion `json:"region,omitempty"`

	// +kubebuilder:validation:Enum=,none,readonly,writeonly,readwrite
	// +optional
	Policy BucketPolicy `json:"policy,omitempty"`
}

CommonBucketSpec defines the desired state of Bucket

func (*CommonBucketSpec) DeepCopy

func (in *CommonBucketSpec) DeepCopy() *CommonBucketSpec

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

func (*CommonBucketSpec) DeepCopyInto

func (in *CommonBucketSpec) DeepCopyInto(out *CommonBucketSpec)

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

type CommonBucketStatus

type CommonBucketStatus struct {
	URL                string      `json:"url,omitempty"`
	Phase              BucketPhase `json:"phase,omitempty"`
	Message            string      `json:"message,omitempty"`
	Reason             string      `json:"reason,omitempty"`
	RemoteName         string      `json:"remoteName,omitempty"`
	LastHeartbeatTime  metav1.Time `json:"lastHeartbeatTime,omitempty"`
	ObservedGeneration int64       `json:"observedGeneration"`
}

CommonBucketStatus defines the observed state of Bucket

func (*CommonBucketStatus) DeepCopy

func (in *CommonBucketStatus) DeepCopy() *CommonBucketStatus

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

func (*CommonBucketStatus) DeepCopyInto

func (in *CommonBucketStatus) DeepCopyInto(out *CommonBucketStatus)

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

type WebhookService

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

	// +optional
	Endpoint string `json:"endpoint,omitempty"`
	// +optional
	Filter string `json:"filter,omitempty"`
}

func (*WebhookService) DeepCopy

func (in *WebhookService) DeepCopy() *WebhookService

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

func (*WebhookService) DeepCopyInto

func (in *WebhookService) DeepCopyInto(out *WebhookService)

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