v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=log.ionoscloud.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "log.ionoscloud.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

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
)
View Source
var (
	Pipeline_Kind             = "Pipeline"
	Pipeline_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Pipeline_Kind}.String()
	Pipeline_KindAPIVersion   = Pipeline_Kind + "." + CRDGroupVersion.String()
	Pipeline_GroupVersionKind = CRDGroupVersion.WithKind(Pipeline_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type DestinationsInitParameters

type DestinationsInitParameters struct {

	// [int] Defines the number of days a log record should be kept in loki. Works with loki destination type only. Can be one of: 7, 14, 30.
	// Defines the number of days a log record should be kept in loki. Works with loki destination type only. Possible values are: 7, 14, 30.
	RetentionInDays *float64 `json:"retentionInDays,omitempty" tf:"retention_in_days,omitempty"`

	// [string] The internal output stream to send logs to.
	Type *string `json:"type,omitempty" tf:"type,omitempty"`
}

func (*DestinationsInitParameters) DeepCopy

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

func (*DestinationsInitParameters) DeepCopyInto

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

type DestinationsObservation

type DestinationsObservation struct {

	// [int] Defines the number of days a log record should be kept in loki. Works with loki destination type only. Can be one of: 7, 14, 30.
	// Defines the number of days a log record should be kept in loki. Works with loki destination type only. Possible values are: 7, 14, 30.
	RetentionInDays *float64 `json:"retentionInDays,omitempty" tf:"retention_in_days,omitempty"`

	// [string] The internal output stream to send logs to.
	Type *string `json:"type,omitempty" tf:"type,omitempty"`
}

func (*DestinationsObservation) DeepCopy

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

func (*DestinationsObservation) DeepCopyInto

func (in *DestinationsObservation) DeepCopyInto(out *DestinationsObservation)

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

type DestinationsParameters

type DestinationsParameters struct {

	// [int] Defines the number of days a log record should be kept in loki. Works with loki destination type only. Can be one of: 7, 14, 30.
	// Defines the number of days a log record should be kept in loki. Works with loki destination type only. Possible values are: 7, 14, 30.
	// +kubebuilder:validation:Optional
	RetentionInDays *float64 `json:"retentionInDays,omitempty" tf:"retention_in_days,omitempty"`

	// [string] The internal output stream to send logs to.
	// +kubebuilder:validation:Optional
	Type *string `json:"type,omitempty" tf:"type,omitempty"`
}

func (*DestinationsParameters) DeepCopy

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

func (*DestinationsParameters) DeepCopyInto

func (in *DestinationsParameters) DeepCopyInto(out *DestinationsParameters)

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

type LogInitParameters

type LogInitParameters struct {

	// [list] The configuration of the logs datastore, a list that contains elements with the following structure:
	// The internal output stream to send logs to. Possible values are: loki.
	Destinations []DestinationsInitParameters `json:"destinations,omitempty" tf:"destinations,omitempty"`

	// [string] "Protocol to use as intake. Possible values are: http, tcp."
	// Protocol to use as intake. Possible values are: http, tcp.
	Protocol *string `json:"protocol,omitempty" tf:"protocol,omitempty"`

	// [string] The source parser to be used.
	// The source parser to be used
	Source *string `json:"source,omitempty" tf:"source,omitempty"`

	// [string] The tag is used to distinguish different pipelines. Must be unique amongst the pipeline's array items.
	// The tag is used to distinguish different pipelines. Must be unique amongst the pipeline's array items.
	Tag *string `json:"tag,omitempty" tf:"tag,omitempty"`
}

func (*LogInitParameters) DeepCopy

func (in *LogInitParameters) DeepCopy() *LogInitParameters

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

func (*LogInitParameters) DeepCopyInto

func (in *LogInitParameters) DeepCopyInto(out *LogInitParameters)

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

type LogObservation

type LogObservation struct {

	// [list] The configuration of the logs datastore, a list that contains elements with the following structure:
	// The internal output stream to send logs to. Possible values are: loki.
	Destinations []DestinationsObservation `json:"destinations,omitempty" tf:"destinations,omitempty"`

	// [string] "Protocol to use as intake. Possible values are: http, tcp."
	// Protocol to use as intake. Possible values are: http, tcp.
	Protocol *string `json:"protocol,omitempty" tf:"protocol,omitempty"`

	// (Computed)[bool]
	Public *bool `json:"public,omitempty" tf:"public,omitempty"`

	// [string] The source parser to be used.
	// The source parser to be used
	Source *string `json:"source,omitempty" tf:"source,omitempty"`

	// [string] The tag is used to distinguish different pipelines. Must be unique amongst the pipeline's array items.
	// The tag is used to distinguish different pipelines. Must be unique amongst the pipeline's array items.
	Tag *string `json:"tag,omitempty" tf:"tag,omitempty"`
}

func (*LogObservation) DeepCopy

func (in *LogObservation) DeepCopy() *LogObservation

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

func (*LogObservation) DeepCopyInto

func (in *LogObservation) DeepCopyInto(out *LogObservation)

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

type LogParameters

type LogParameters struct {

	// [list] The configuration of the logs datastore, a list that contains elements with the following structure:
	// The internal output stream to send logs to. Possible values are: loki.
	// +kubebuilder:validation:Optional
	Destinations []DestinationsParameters `json:"destinations,omitempty" tf:"destinations,omitempty"`

	// [string] "Protocol to use as intake. Possible values are: http, tcp."
	// Protocol to use as intake. Possible values are: http, tcp.
	// +kubebuilder:validation:Optional
	Protocol *string `json:"protocol" tf:"protocol,omitempty"`

	// [string] The source parser to be used.
	// The source parser to be used
	// +kubebuilder:validation:Optional
	Source *string `json:"source" tf:"source,omitempty"`

	// [string] The tag is used to distinguish different pipelines. Must be unique amongst the pipeline's array items.
	// The tag is used to distinguish different pipelines. Must be unique amongst the pipeline's array items.
	// +kubebuilder:validation:Optional
	Tag *string `json:"tag" tf:"tag,omitempty"`
}

func (*LogParameters) DeepCopy

func (in *LogParameters) DeepCopy() *LogParameters

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

func (*LogParameters) DeepCopyInto

func (in *LogParameters) DeepCopyInto(out *LogParameters)

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

type Pipeline

type Pipeline struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.log) || (has(self.initProvider) && has(self.initProvider.log))",message="spec.forProvider.log is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter"
	Spec   PipelineSpec   `json:"spec"`
	Status PipelineStatus `json:"status,omitempty"`
}

Pipeline is the Schema for the Pipelines API. Creates and manages Logging pipeline objects. +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].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:resource:scope=Cluster,categories={crossplane,managed,ionos}

func (*Pipeline) DeepCopy

func (in *Pipeline) DeepCopy() *Pipeline

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

func (*Pipeline) DeepCopyInto

func (in *Pipeline) DeepCopyInto(out *Pipeline)

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

func (*Pipeline) DeepCopyObject

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

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

func (*Pipeline) GetCondition

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

GetCondition of this Pipeline.

func (*Pipeline) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this Pipeline

func (*Pipeline) GetDeletionPolicy

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

GetDeletionPolicy of this Pipeline.

func (*Pipeline) GetID

func (tr *Pipeline) GetID() string

GetID returns ID of underlying Terraform resource of this Pipeline

func (*Pipeline) GetInitParameters

func (tr *Pipeline) GetInitParameters() (map[string]any, error)

GetInitParameters of this Pipeline

func (*Pipeline) GetManagementPolicies

func (mg *Pipeline) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this Pipeline.

func (*Pipeline) GetMergedParameters

func (tr *Pipeline) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this Pipeline

func (*Pipeline) GetObservation

func (tr *Pipeline) GetObservation() (map[string]any, error)

GetObservation of this Pipeline

func (*Pipeline) GetParameters

func (tr *Pipeline) GetParameters() (map[string]any, error)

GetParameters of this Pipeline

func (*Pipeline) GetProviderConfigReference

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

GetProviderConfigReference of this Pipeline.

func (*Pipeline) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Pipeline.

func (*Pipeline) GetTerraformResourceType

func (mg *Pipeline) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Pipeline

func (*Pipeline) GetTerraformSchemaVersion

func (tr *Pipeline) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Pipeline) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Pipeline.

func (*Pipeline) Hub

func (tr *Pipeline) Hub()

Hub marks this type as a conversion hub.

func (*Pipeline) LateInitialize

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

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

func (*Pipeline) SetConditions

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

SetConditions of this Pipeline.

func (*Pipeline) SetDeletionPolicy

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

SetDeletionPolicy of this Pipeline.

func (*Pipeline) SetManagementPolicies

func (mg *Pipeline) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this Pipeline.

func (*Pipeline) SetObservation

func (tr *Pipeline) SetObservation(obs map[string]any) error

SetObservation for this Pipeline

func (*Pipeline) SetParameters

func (tr *Pipeline) SetParameters(params map[string]any) error

SetParameters for this Pipeline

func (*Pipeline) SetProviderConfigReference

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

SetProviderConfigReference of this Pipeline.

func (*Pipeline) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Pipeline.

func (*Pipeline) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Pipeline.

type PipelineInitParameters

type PipelineInitParameters struct {

	// [string] The location of the Logging pipeline. Default: de/txl One of de/fra, de/txl, gb/lhr, es/vit, fr/par.
	// The location of your logging pipeline. Default: de/txl. Supported locations: de/fra, de/txl, es/vit, gb/lhr, fr/par
	Location *string `json:"location,omitempty" tf:"location,omitempty"`

	// [list] Pipeline logs, a list that contains elements with the following structure:
	Log []LogInitParameters `json:"log,omitempty" tf:"log,omitempty"`

	// [string] The name of the Logging pipeline.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`
}

func (*PipelineInitParameters) DeepCopy

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

func (*PipelineInitParameters) DeepCopyInto

func (in *PipelineInitParameters) DeepCopyInto(out *PipelineInitParameters)

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

type PipelineList

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

PipelineList contains a list of Pipelines

func (*PipelineList) DeepCopy

func (in *PipelineList) DeepCopy() *PipelineList

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

func (*PipelineList) DeepCopyInto

func (in *PipelineList) DeepCopyInto(out *PipelineList)

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

func (*PipelineList) DeepCopyObject

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

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

func (*PipelineList) GetItems

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

GetItems of this PipelineList.

type PipelineObservation

type PipelineObservation struct {

	// (Computed)[string] The address of the client's grafana instance.
	// The address of the client's grafana instance
	GrafanaAddress *string `json:"grafanaAddress,omitempty" tf:"grafana_address,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// [string] The location of the Logging pipeline. Default: de/txl One of de/fra, de/txl, gb/lhr, es/vit, fr/par.
	// The location of your logging pipeline. Default: de/txl. Supported locations: de/fra, de/txl, es/vit, gb/lhr, fr/par
	Location *string `json:"location,omitempty" tf:"location,omitempty"`

	// [list] Pipeline logs, a list that contains elements with the following structure:
	Log []LogObservation `json:"log,omitempty" tf:"log,omitempty"`

	// [string] The name of the Logging pipeline.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`
}

func (*PipelineObservation) DeepCopy

func (in *PipelineObservation) DeepCopy() *PipelineObservation

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

func (*PipelineObservation) DeepCopyInto

func (in *PipelineObservation) DeepCopyInto(out *PipelineObservation)

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

type PipelineParameters

type PipelineParameters struct {

	// [string] The location of the Logging pipeline. Default: de/txl One of de/fra, de/txl, gb/lhr, es/vit, fr/par.
	// The location of your logging pipeline. Default: de/txl. Supported locations: de/fra, de/txl, es/vit, gb/lhr, fr/par
	// +kubebuilder:validation:Optional
	Location *string `json:"location,omitempty" tf:"location,omitempty"`

	// [list] Pipeline logs, a list that contains elements with the following structure:
	// +kubebuilder:validation:Optional
	Log []LogParameters `json:"log,omitempty" tf:"log,omitempty"`

	// [string] The name of the Logging pipeline.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`
}

func (*PipelineParameters) DeepCopy

func (in *PipelineParameters) DeepCopy() *PipelineParameters

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

func (*PipelineParameters) DeepCopyInto

func (in *PipelineParameters) DeepCopyInto(out *PipelineParameters)

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

type PipelineSpec

type PipelineSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     PipelineParameters `json:"forProvider"`
	// THIS IS A BETA FIELD. It will be honored
	// unless the Management Policies feature flag is disabled.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider PipelineInitParameters `json:"initProvider,omitempty"`
}

PipelineSpec defines the desired state of Pipeline

func (*PipelineSpec) DeepCopy

func (in *PipelineSpec) DeepCopy() *PipelineSpec

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

func (*PipelineSpec) DeepCopyInto

func (in *PipelineSpec) DeepCopyInto(out *PipelineSpec)

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

type PipelineStatus

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

PipelineStatus defines the observed state of Pipeline.

func (*PipelineStatus) DeepCopy

func (in *PipelineStatus) DeepCopy() *PipelineStatus

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

func (*PipelineStatus) DeepCopyInto

func (in *PipelineStatus) DeepCopyInto(out *PipelineStatus)

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