v1alpha1

package
v0.6.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=audit.tencentcloud.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "audit.tencentcloud.crossplane.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	Audit_Kind             = "Audit"
	Audit_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Audit_Kind}.String()
	Audit_KindAPIVersion   = Audit_Kind + "." + CRDGroupVersion.String()
	Audit_GroupVersionKind = CRDGroupVersion.WithKind(Audit_Kind)
)

Repository type metadata.

View Source
var (
	// CRDGroupVersion is the API Group Version used to register the objects
	CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

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

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Audit

type Audit struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              AuditSpec   `json:"spec"`
	Status            AuditStatus `json:"status,omitempty"`
}

Audit is the Schema for the Audits API +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,tencentcloudjet}

func (*Audit) DeepCopy

func (in *Audit) DeepCopy() *Audit

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

func (*Audit) DeepCopyInto

func (in *Audit) DeepCopyInto(out *Audit)

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

func (*Audit) DeepCopyObject

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

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

func (*Audit) GetCondition

func (mg *Audit) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Audit.

func (*Audit) GetConnectionDetailsMapping

func (tr *Audit) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this Audit

func (*Audit) GetDeletionPolicy

func (mg *Audit) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Audit.

func (*Audit) GetID

func (tr *Audit) GetID() string

GetID returns ID of underlying Terraform resource of this Audit

func (*Audit) GetObservation

func (tr *Audit) GetObservation() (map[string]interface{}, error)

GetObservation of this Audit

func (*Audit) GetParameters

func (tr *Audit) GetParameters() (map[string]interface{}, error)

GetParameters of this Audit

func (*Audit) GetProviderConfigReference

func (mg *Audit) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Audit.

func (*Audit) GetProviderReference

func (mg *Audit) GetProviderReference() *xpv1.Reference

GetProviderReference of this Audit. Deprecated: Use GetProviderConfigReference.

func (*Audit) GetPublishConnectionDetailsTo

func (mg *Audit) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Audit.

func (*Audit) GetTerraformResourceType

func (mg *Audit) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Audit

func (*Audit) GetTerraformSchemaVersion

func (tr *Audit) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Audit) GetWriteConnectionSecretToReference

func (mg *Audit) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Audit.

func (*Audit) LateInitialize

func (tr *Audit) LateInitialize(attrs []byte) (bool, error)

LateInitialize this Audit using its observed tfState. returns True if there are any spec changes for the resource.

func (*Audit) SetConditions

func (mg *Audit) SetConditions(c ...xpv1.Condition)

SetConditions of this Audit.

func (*Audit) SetDeletionPolicy

func (mg *Audit) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Audit.

func (*Audit) SetObservation

func (tr *Audit) SetObservation(obs map[string]interface{}) error

SetObservation for this Audit

func (*Audit) SetParameters

func (tr *Audit) SetParameters(params map[string]interface{}) error

SetParameters for this Audit

func (*Audit) SetProviderConfigReference

func (mg *Audit) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Audit.

func (*Audit) SetProviderReference

func (mg *Audit) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this Audit. Deprecated: Use SetProviderConfigReference.

func (*Audit) SetPublishConnectionDetailsTo

func (mg *Audit) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Audit.

func (*Audit) SetWriteConnectionSecretToReference

func (mg *Audit) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Audit.

type AuditList

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

AuditList contains a list of Audits

func (*AuditList) DeepCopy

func (in *AuditList) DeepCopy() *AuditList

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

func (*AuditList) DeepCopyInto

func (in *AuditList) DeepCopyInto(out *AuditList)

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

func (*AuditList) DeepCopyObject

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

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

func (*AuditList) GetItems

func (l *AuditList) GetItems() []resource.Managed

GetItems of this AuditList.

type AuditObservation

type AuditObservation struct {
	ID *string `json:"id,omitempty" tf:"id,omitempty"`
}

func (*AuditObservation) DeepCopy

func (in *AuditObservation) DeepCopy() *AuditObservation

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

func (*AuditObservation) DeepCopyInto

func (in *AuditObservation) DeepCopyInto(out *AuditObservation)

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

type AuditParameters

type AuditParameters struct {

	// Indicate whether to turn on audit logging or not.
	// +kubebuilder:validation:Required
	AuditSwitch *bool `json:"auditSwitch" tf:"audit_switch,omitempty"`

	// Name of the cos bucket to save audit log. Caution: the validation of existing cos bucket will not be checked by terraform.
	// +kubebuilder:validation:Required
	CosBucket *string `json:"cosBucket" tf:"cos_bucket,omitempty"`

	// Region of the cos bucket.
	// +kubebuilder:validation:Required
	CosRegion *string `json:"cosRegion" tf:"cos_region,omitempty"`

	// Indicate whether the log is encrypt with KMS algorithm or not.
	// +kubebuilder:validation:Optional
	EnableKMSEncry *bool `json:"enableKmsEncry,omitempty" tf:"enable_kms_encry,omitempty"`

	// Existing CMK unique key. This field can be get by data source `tencentcloud_audit_key_alias`. Caution: the region of the KMS must be as same as the `cos_region`.
	// +kubebuilder:validation:Optional
	KeyID *string `json:"keyId,omitempty" tf:"key_id,omitempty"`

	// The log file name prefix. The length ranges from 3 to 40. If not set, the account ID will be the log file prefix.
	// +kubebuilder:validation:Optional
	LogFilePrefix *string `json:"logFilePrefix,omitempty" tf:"log_file_prefix,omitempty"`

	// Name of audit. Valid length ranges from 3 to 128. Only alpha character or numbers or '_' supported.
	// +kubebuilder:validation:Required
	Name *string `json:"name" tf:"name,omitempty"`

	// Event attribute filter. Valid values: `1`, `2`, `3`. `1` for readonly, `2` for write-only, `3` for all.
	// +kubebuilder:validation:Required
	ReadWriteAttribute *float64 `json:"readWriteAttribute" tf:"read_write_attribute,omitempty"`
}

func (*AuditParameters) DeepCopy

func (in *AuditParameters) DeepCopy() *AuditParameters

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

func (*AuditParameters) DeepCopyInto

func (in *AuditParameters) DeepCopyInto(out *AuditParameters)

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

type AuditSpec

type AuditSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     AuditParameters `json:"forProvider"`
}

AuditSpec defines the desired state of Audit

func (*AuditSpec) DeepCopy

func (in *AuditSpec) DeepCopy() *AuditSpec

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

func (*AuditSpec) DeepCopyInto

func (in *AuditSpec) DeepCopyInto(out *AuditSpec)

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

type AuditStatus

type AuditStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        AuditObservation `json:"atProvider,omitempty"`
}

AuditStatus defines the observed state of Audit.

func (*AuditStatus) DeepCopy

func (in *AuditStatus) DeepCopy() *AuditStatus

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

func (*AuditStatus) DeepCopyInto

func (in *AuditStatus) DeepCopyInto(out *AuditStatus)

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