v1alpha1

package
v0.0.0-...-ebfb40b Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains the resources of the provider. +kubebuilder:object:generate=true +groupName=krateo.io +versionName=v1alpha1

Index

Constants

View Source
const (
	Group   = "krateo.io"
	Version = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)
View Source
var (
	TemplateKind             = reflect.TypeOf(Template{}).Name()
	TemplateGroupKind        = schema.GroupKind{Group: Group, Kind: TemplateKind}.String()
	TemplateKindAPIVersion   = TemplateKind + "." + SchemeGroupVersion.String()
	TemplateGroupVersionKind = SchemeGroupVersion.WithKind(TemplateKind)
)

Template type metadata.

Functions

This section is empty.

Types

type Item

type Item struct {
	// Title:
	// +optional
	Title string `json:"title"`

	// Type:
	// +optional
	Type string `json:"type"`

	// Description:
	// +optional
	Description string `json:"description,omitempty"`

	// Default:
	// +optional
	Default string `json:"default,omitempty"`

	// Cost:
	// +optional
	Cost string `json:"cost,omitempty"`

	// Required:
	Required *bool `json:"required,omitempty"`

	// Hidden:
	// +optional
	Hidden *bool `json:"hidden,omitempty"`

	// ReadOnly:
	// +optional
	ReadOnly *bool `json:"readOnly,omitempty"`

	// Disabled:
	// +optional
	Disabled *bool `json:"disabled,omitempty"`

	// Options:
	// +optional
	Options []Options `json:"options,omitempty"`

	// Value:
	// +optional
	Value string `json:"value,omitempty"`

	// Style:
	// +optional
	Style string `json:"style,omitempty"`
}

func (*Item) DeepCopy

func (in *Item) DeepCopy() *Item

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

func (*Item) DeepCopyInto

func (in *Item) DeepCopyInto(out *Item)

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

type Options

type Options struct {
	// Title:
	Title string `json:"title"`

	// Value:
	Value string `json:"value"`

	// Description:
	// +optional
	Description string `json:"description,omitempty"`
}

func (*Options) DeepCopy

func (in *Options) DeepCopy() *Options

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

func (*Options) DeepCopyInto

func (in *Options) DeepCopyInto(out *Options)

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

type Template

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

	Spec TemplateSpec `json:"spec"`
}

A Template is a Krateo template API type. +kubebuilder:resource:scope=Cluster,categories={managed,krateo,templates}

func (*Template) DeepCopy

func (in *Template) DeepCopy() *Template

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

func (*Template) DeepCopyInto

func (in *Template) DeepCopyInto(out *Template)

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

func (*Template) DeepCopyObject

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

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

type TemplateList

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

TemplateList contains a list of Template

func (*TemplateList) DeepCopy

func (in *TemplateList) DeepCopy() *TemplateList

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

func (*TemplateList) DeepCopyInto

func (in *TemplateList) DeepCopyInto(out *TemplateList)

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

func (*TemplateList) DeepCopyObject

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

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

type TemplateSpec

type TemplateSpec struct {
	// Title: template title
	Title string `json:"title"`

	// Description: template description
	// +optional
	Description string `json:"description,omitempty"`

	// Icon: template icon
	// +optional
	Icon string `json:"icon,omitempty"`

	// Owner: template owner
	// +optional
	Owner string `json:"owner,omitempty"`

	// Url: template file location
	// +optional
	Url string `json:"url,omitempty"`

	// EndpointName: endpoint name for this template
	// +optional
	EndpointName string `json:"endpointName,omitempty"`

	// Tags: template tags
	// +optional
	Tags []string `json:"tags,omitempty"`

	// Widgets:
	Widgets []Widget `json:"widgets"`

	// Defaults:
	// +optional
	Defaults map[string]string `json:"defaults,omitempty"`
}

func (*TemplateSpec) DeepCopy

func (in *TemplateSpec) DeepCopy() *TemplateSpec

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

func (*TemplateSpec) DeepCopyInto

func (in *TemplateSpec) DeepCopyInto(out *TemplateSpec)

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

type Widget

type Widget struct {
	// Title: template title
	Title string `json:"title"`

	// Description: template description
	// +optional
	Description string `json:"description,omitempty"`

	// Properties:
	Properties []WidgetProperties `json:"properties"`
}

func (*Widget) DeepCopy

func (in *Widget) DeepCopy() *Widget

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

func (*Widget) DeepCopyInto

func (in *Widget) DeepCopyInto(out *Widget)

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

type WidgetProperties

type WidgetProperties struct {
	Item `json:",inline"`

	// Key:
	// +optional
	Key string `json:"key,omitempty"`

	// Style:
	// +optional
	Style string `json:"style,omitempty"`

	// Items:
	// +optional
	Items []Item `json:"values,omitempty"`
}

func (*WidgetProperties) DeepCopy

func (in *WidgetProperties) DeepCopy() *WidgetProperties

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

func (*WidgetProperties) DeepCopyInto

func (in *WidgetProperties) DeepCopyInto(out *WidgetProperties)

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