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: 14 Imported by: 0

Documentation

Overview

+groupName=insights.newrelic.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: insights.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 Event

type Event struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              EventSpec   `json:"spec,omitempty"`
	Status            EventStatus `json:"status,omitempty"`
}

func (*Event) DeepCopy

func (in *Event) DeepCopy() *Event

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

func (*Event) DeepCopyInto

func (in *Event) DeepCopyInto(out *Event)

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

func (*Event) DeepCopyObject

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

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

func (*Event) SetupWebhookWithManager

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

func (*Event) ValidateCreate

func (r *Event) ValidateCreate() error

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

func (*Event) ValidateDelete

func (r *Event) ValidateDelete() error

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

func (*Event) ValidateUpdate

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

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

type EventList

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

EventList is a list of Events

func (*EventList) DeepCopy

func (in *EventList) DeepCopy() *EventList

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

func (*EventList) DeepCopyInto

func (in *EventList) DeepCopyInto(out *EventList)

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

func (*EventList) DeepCopyObject

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

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

type EventSpec

type EventSpec struct {
	State *EventSpecResource `json:"state,omitempty" tf:"-"`

	Resource EventSpecResource `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 (*EventSpec) DeepCopy

func (in *EventSpec) DeepCopy() *EventSpec

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

func (*EventSpec) DeepCopyInto

func (in *EventSpec) DeepCopyInto(out *EventSpec)

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

type EventSpecEvent

type EventSpecEvent struct {
	// An attribute to include in your event payload. Multiple attribute blocks can be defined for an event.
	// +kubebuilder:validation:MaxItems=255
	// +kubebuilder:validation:MinItems=1
	Attribute []EventSpecEventAttribute `json:"attribute" tf:"attribute"`
	// Must be a Unix epoch timestamp. You can define timestamps either in seconds or in milliseconds.
	// +optional
	Timestamp *int64 `json:"timestamp,omitempty" tf:"timestamp"`
	// The event's name. Can be a combination of alphanumeric characters, underscores, and colons.
	Type *string `json:"type" tf:"type"`
}

func (*EventSpecEvent) DeepCopy

func (in *EventSpecEvent) DeepCopy() *EventSpecEvent

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

func (*EventSpecEvent) DeepCopyInto

func (in *EventSpecEvent) DeepCopyInto(out *EventSpecEvent)

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

type EventSpecEventAttribute

type EventSpecEventAttribute struct {
	// The name of the attribute.
	Key *string `json:"key" tf:"key"`
	// Specify the type for the attribute value. This is useful when passing integer or float values to Insights. Allowed values are string, int, or float. Defaults to string.
	// +optional
	Type *string `json:"type,omitempty" tf:"type"`
	// The value of the attribute.
	Value *string `json:"value" tf:"value"`
}

func (*EventSpecEventAttribute) DeepCopy

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

func (*EventSpecEventAttribute) DeepCopyInto

func (in *EventSpecEventAttribute) DeepCopyInto(out *EventSpecEventAttribute)

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

type EventSpecResource

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

	// +kubebuilder:validation:MinItems=1
	Event []EventSpecEvent `json:"event" tf:"event"`
}

func (*EventSpecResource) DeepCopy

func (in *EventSpecResource) DeepCopy() *EventSpecResource

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

func (*EventSpecResource) DeepCopyInto

func (in *EventSpecResource) DeepCopyInto(out *EventSpecResource)

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

type EventStatus

type EventStatus 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 (*EventStatus) DeepCopy

func (in *EventStatus) DeepCopy() *EventStatus

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

func (*EventStatus) DeepCopyInto

func (in *EventStatus) DeepCopyInto(out *EventStatus)

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