shared

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: Apache-2.0 Imports: 11 Imported by: 5

Documentation

Overview

+k8s:deepcopy-gen=package +k8s:openapi-gen=true +gencrdrefdocs:force=true

Index

Constants

View Source
const (
	GraphQueryVarSource      = "src"
	GraphQueryVarTargetGroup = "targetGroup"
	GraphQueryVarTargetKind  = "targetKind"
)

Variables

This section is empty.

Functions

Types

type ChartRepoRef

type ChartRepoRef struct {
	// +optional
	URL     string `json:"url,omitempty"`
	Name    string `json:"name"`
	Version string `json:"version"`
}

ChartRepoRef references to a single version of a Chart

func (*ChartRepoRef) DeepCopy

func (in *ChartRepoRef) DeepCopy() *ChartRepoRef

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

func (*ChartRepoRef) DeepCopyInto

func (in *ChartRepoRef) DeepCopyInto(out *ChartRepoRef)

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

type Dashboard

type Dashboard struct {
	// +optional
	Title string `json:"title,omitempty"`
	// +optional
	Vars []DashboardVar `json:"vars,omitempty"`
	// +optional
	Panels []string `json:"panels,omitempty"`
	// +optional
	If *If `json:"if,omitempty"`
}

func (*Dashboard) DeepCopy

func (in *Dashboard) DeepCopy() *Dashboard

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

func (*Dashboard) DeepCopyInto

func (in *Dashboard) DeepCopyInto(out *Dashboard)

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

type DashboardVar

type DashboardVar struct {
	Name  string `json:"name"`
	Value string `json:"value"`
	// +optional
	// +kubebuilder:default:=Source
	Type DashboardVarType `json:"type,omitempty"`
}

func (*DashboardVar) DeepCopy

func (in *DashboardVar) DeepCopy() *DashboardVar

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

func (*DashboardVar) DeepCopyInto

func (in *DashboardVar) DeepCopyInto(out *DashboardVar)

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

type DashboardVarType

type DashboardVarType string

+kubebuilder:validation:Enum=Source;Target

const (
	DashboardVarTypeSource DashboardVarType = "Source"
	DashboardVarTypeTarget DashboardVarType = "Target"
)

type DeploymentParameters

type DeploymentParameters struct {
	ProductID string        `json:"productID,omitempty"`
	PlanID    string        `json:"planID,omitempty"`
	Chart     *ChartRepoRef `json:"chart,omitempty"`
}

func (*DeploymentParameters) DeepCopy

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

func (*DeploymentParameters) DeepCopyInto

func (in *DeploymentParameters) DeepCopyInto(out *DeploymentParameters)

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

type If

type If struct {
	Condition string           `json:"condition,omitempty"`
	Connected *ResourceLocator `json:"connected,omitempty"`
}

func (*If) DeepCopy

func (in *If) DeepCopy() *If

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

func (*If) DeepCopyInto

func (in *If) DeepCopyInto(out *If)

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

type ImageSpec

type ImageSpec struct {
	// The source for image represented as either an absolute URL to the image or a Data URL containing
	// the image. Data URLs are defined in RFC 2397.
	Source string `json:"src"`

	// (optional) The size of the image in pixels (e.g., 25x25).
	Size string `json:"size,omitempty"`

	// (optional) The mine type of the image (e.g., "image/png").
	Type string `json:"type,omitempty"`
}

ImageSpec contains information about an image used as an icon.

func (*ImageSpec) DeepCopy

func (in *ImageSpec) DeepCopy() *ImageSpec

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

func (*ImageSpec) DeepCopyInto

func (in *ImageSpec) DeepCopyInto(out *ImageSpec)

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

type QueryType

type QueryType string

+kubebuilder:validation:Enum=REST;GraphQL

const (
	RESTQuery    QueryType = "REST"
	GraphQLQuery QueryType = "GraphQL"
)

type ResourceLocator

type ResourceLocator struct {
	Ref   metav1.GroupKind `json:"ref"`
	Query ResourceQuery    `json:"query"`
}

func (*ResourceLocator) DeepCopy

func (in *ResourceLocator) DeepCopy() *ResourceLocator

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

func (*ResourceLocator) DeepCopyInto

func (in *ResourceLocator) DeepCopyInto(out *ResourceLocator)

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

func (ResourceLocator) GraphQuery

func (r ResourceLocator) GraphQuery(oid kmapi.OID) (string, map[string]interface{}, error)

type ResourceQuery

type ResourceQuery struct {
	Type    QueryType       `json:"type"`
	ByLabel kmapi.EdgeLabel `json:"byLabel,omitempty"`
	Raw     string          `json:"raw,omitempty"`
}

func (*ResourceQuery) DeepCopy

func (in *ResourceQuery) DeepCopy() *ResourceQuery

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

func (*ResourceQuery) DeepCopyInto

func (in *ResourceQuery) DeepCopyInto(out *ResourceQuery)

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

type UIParameters

type UIParameters struct {
	Options *ChartRepoRef `json:"options,omitempty"`
	Editor  *ChartRepoRef `json:"editor,omitempty"`
	// app.kubernetes.io/instance label must be updated at these paths when refilling metadata
	// +optional
	InstanceLabelPaths []string `json:"instanceLabelPaths,omitempty"`
}

func (*UIParameters) DeepCopy

func (in *UIParameters) DeepCopy() *UIParameters

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

func (*UIParameters) DeepCopyInto

func (in *UIParameters) DeepCopyInto(out *UIParameters)

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