v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

+groupName=synthetics.aws.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: synthetics.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns 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 Canary

type Canary struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              CanarySpec   `json:"spec,omitempty"`
	Status            CanaryStatus `json:"status,omitempty"`
}

func (*Canary) DeepCopy

func (in *Canary) DeepCopy() *Canary

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

func (*Canary) DeepCopyInto

func (in *Canary) DeepCopyInto(out *Canary)

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

func (*Canary) DeepCopyObject

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

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

func (*Canary) SetupWebhookWithManager

func (r *Canary) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Canary) ValidateCreate

func (r *Canary) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Canary) ValidateDelete

func (r *Canary) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Canary) ValidateUpdate

func (r *Canary) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type CanaryList

type CanaryList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Canary CRD objects
	Items []Canary `json:"items,omitempty"`
}

CanaryList is a list of Canarys

func (*CanaryList) DeepCopy

func (in *CanaryList) DeepCopy() *CanaryList

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

func (*CanaryList) DeepCopyInto

func (in *CanaryList) DeepCopyInto(out *CanaryList)

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

func (*CanaryList) DeepCopyObject

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

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

type CanarySpec

type CanarySpec struct {
	State *CanarySpecResource `json:"state,omitempty" tf:"-"`

	Resource CanarySpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*CanarySpec) DeepCopy

func (in *CanarySpec) DeepCopy() *CanarySpec

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

func (*CanarySpec) DeepCopyInto

func (in *CanarySpec) DeepCopyInto(out *CanarySpec)

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

type CanarySpecArtifactConfig added in v0.5.0

type CanarySpecArtifactConfig struct {
	// +optional
	S3Encryption *CanarySpecArtifactConfigS3Encryption `json:"s3Encryption,omitempty" tf:"s3_encryption"`
}

func (*CanarySpecArtifactConfig) DeepCopy added in v0.5.0

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

func (*CanarySpecArtifactConfig) DeepCopyInto added in v0.5.0

func (in *CanarySpecArtifactConfig) DeepCopyInto(out *CanarySpecArtifactConfig)

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

type CanarySpecArtifactConfigCodec added in v0.5.0

type CanarySpecArtifactConfigCodec struct {
}

+k8s:deepcopy-gen=false

func (CanarySpecArtifactConfigCodec) Decode added in v0.5.0

func (CanarySpecArtifactConfigCodec) Encode added in v0.5.0

func (CanarySpecArtifactConfigCodec) IsEmpty added in v0.5.0

type CanarySpecArtifactConfigS3Encryption added in v0.5.0

type CanarySpecArtifactConfigS3Encryption struct {
	// +optional
	EncryptionMode *string `json:"encryptionMode,omitempty" tf:"encryption_mode"`
	// +optional
	KmsKeyArn *string `json:"kmsKeyArn,omitempty" tf:"kms_key_arn"`
}

func (*CanarySpecArtifactConfigS3Encryption) DeepCopy added in v0.5.0

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

func (*CanarySpecArtifactConfigS3Encryption) DeepCopyInto added in v0.5.0

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

type CanarySpecArtifactConfigS3EncryptionCodec added in v0.5.0

type CanarySpecArtifactConfigS3EncryptionCodec struct {
}

+k8s:deepcopy-gen=false

func (CanarySpecArtifactConfigS3EncryptionCodec) Decode added in v0.5.0

func (CanarySpecArtifactConfigS3EncryptionCodec) Encode added in v0.5.0

func (CanarySpecArtifactConfigS3EncryptionCodec) IsEmpty added in v0.5.0

type CanarySpecResource

type CanarySpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// +optional
	Arn *string `json:"arn,omitempty" tf:"arn"`
	// +optional
	ArtifactConfig     *CanarySpecArtifactConfig `json:"artifactConfig,omitempty" tf:"artifact_config"`
	ArtifactS3Location *string                   `json:"artifactS3Location" tf:"artifact_s3_location"`
	// +optional
	EngineArn        *string `json:"engineArn,omitempty" tf:"engine_arn"`
	ExecutionRoleArn *string `json:"executionRoleArn" tf:"execution_role_arn"`
	// +optional
	FailureRetentionPeriod *int64  `json:"failureRetentionPeriod,omitempty" tf:"failure_retention_period"`
	Handler                *string `json:"handler" tf:"handler"`
	Name                   *string `json:"name" tf:"name"`
	// +optional
	RunConfig      *CanarySpecRunConfig `json:"runConfig,omitempty" tf:"run_config"`
	RuntimeVersion *string              `json:"runtimeVersion" tf:"runtime_version"`
	// +optional
	S3Bucket *string `json:"s3Bucket,omitempty" tf:"s3_bucket"`
	// +optional
	S3Key *string `json:"s3Key,omitempty" tf:"s3_key"`
	// +optional
	S3Version *string             `json:"s3Version,omitempty" tf:"s3_version"`
	Schedule  *CanarySpecSchedule `json:"schedule" tf:"schedule"`
	// +optional
	SourceLocationArn *string `json:"sourceLocationArn,omitempty" tf:"source_location_arn"`
	// +optional
	StartCanary *bool `json:"startCanary,omitempty" tf:"start_canary"`
	// +optional
	Status *string `json:"status,omitempty" tf:"status"`
	// +optional
	SuccessRetentionPeriod *int64 `json:"successRetentionPeriod,omitempty" tf:"success_retention_period"`
	// +optional
	Tags *map[string]string `json:"tags,omitempty" tf:"tags"`
	// +optional
	TagsAll *map[string]string `json:"tagsAll,omitempty" tf:"tags_all"`
	// +optional
	Timeline []CanarySpecTimeline `json:"timeline,omitempty" tf:"timeline"`
	// +optional
	VpcConfig *CanarySpecVpcConfig `json:"vpcConfig,omitempty" tf:"vpc_config"`
	// +optional
	ZipFile *string `json:"zipFile,omitempty" tf:"zip_file"`
}

func (*CanarySpecResource) DeepCopy

func (in *CanarySpecResource) DeepCopy() *CanarySpecResource

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

func (*CanarySpecResource) DeepCopyInto

func (in *CanarySpecResource) DeepCopyInto(out *CanarySpecResource)

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

type CanarySpecRunConfig

type CanarySpecRunConfig struct {
	// +optional
	ActiveTracing *bool `json:"activeTracing,omitempty" tf:"active_tracing"`
	// +optional
	MemoryInMb *int64 `json:"memoryInMb,omitempty" tf:"memory_in_mb"`
	// +optional
	TimeoutInSeconds *int64 `json:"timeoutInSeconds,omitempty" tf:"timeout_in_seconds"`
}

func (*CanarySpecRunConfig) DeepCopy

func (in *CanarySpecRunConfig) DeepCopy() *CanarySpecRunConfig

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

func (*CanarySpecRunConfig) DeepCopyInto

func (in *CanarySpecRunConfig) DeepCopyInto(out *CanarySpecRunConfig)

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

type CanarySpecRunConfigCodec

type CanarySpecRunConfigCodec struct {
}

+k8s:deepcopy-gen=false

func (CanarySpecRunConfigCodec) Decode

func (CanarySpecRunConfigCodec) Encode

func (CanarySpecRunConfigCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (CanarySpecRunConfigCodec) IsEmpty

type CanarySpecSchedule

type CanarySpecSchedule struct {
	// +optional
	DurationInSeconds *int64  `json:"durationInSeconds,omitempty" tf:"duration_in_seconds"`
	Expression        *string `json:"expression" tf:"expression"`
}

func (*CanarySpecSchedule) DeepCopy

func (in *CanarySpecSchedule) DeepCopy() *CanarySpecSchedule

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

func (*CanarySpecSchedule) DeepCopyInto

func (in *CanarySpecSchedule) DeepCopyInto(out *CanarySpecSchedule)

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

type CanarySpecScheduleCodec

type CanarySpecScheduleCodec struct {
}

+k8s:deepcopy-gen=false

func (CanarySpecScheduleCodec) Decode

func (CanarySpecScheduleCodec) Encode

func (CanarySpecScheduleCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (CanarySpecScheduleCodec) IsEmpty

type CanarySpecTimeline

type CanarySpecTimeline struct {
	// +optional
	Created *string `json:"created,omitempty" tf:"created"`
	// +optional
	LastModified *string `json:"lastModified,omitempty" tf:"last_modified"`
	// +optional
	LastStarted *string `json:"lastStarted,omitempty" tf:"last_started"`
	// +optional
	LastStopped *string `json:"lastStopped,omitempty" tf:"last_stopped"`
}

func (*CanarySpecTimeline) DeepCopy

func (in *CanarySpecTimeline) DeepCopy() *CanarySpecTimeline

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

func (*CanarySpecTimeline) DeepCopyInto

func (in *CanarySpecTimeline) DeepCopyInto(out *CanarySpecTimeline)

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

type CanarySpecVpcConfig

type CanarySpecVpcConfig struct {
	// +optional
	SecurityGroupIDS []string `json:"securityGroupIDS,omitempty" tf:"security_group_ids"`
	// +optional
	SubnetIDS []string `json:"subnetIDS,omitempty" tf:"subnet_ids"`
	// +optional
	VpcID *string `json:"vpcID,omitempty" tf:"vpc_id"`
}

func (*CanarySpecVpcConfig) DeepCopy

func (in *CanarySpecVpcConfig) DeepCopy() *CanarySpecVpcConfig

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

func (*CanarySpecVpcConfig) DeepCopyInto

func (in *CanarySpecVpcConfig) DeepCopyInto(out *CanarySpecVpcConfig)

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

type CanarySpecVpcConfigCodec

type CanarySpecVpcConfigCodec struct {
}

+k8s:deepcopy-gen=false

func (CanarySpecVpcConfigCodec) Decode

func (CanarySpecVpcConfigCodec) Encode

func (CanarySpecVpcConfigCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (CanarySpecVpcConfigCodec) IsEmpty

type CanaryStatus

type CanaryStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*CanaryStatus) DeepCopy

func (in *CanaryStatus) DeepCopy() *CanaryStatus

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

func (*CanaryStatus) DeepCopyInto

func (in *CanaryStatus) DeepCopyInto(out *CanaryStatus)

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