common

package
v0.1.1-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true

+kubebuilder:object:generate=true

+kubebuilder:object:generate=true

+kubebuilder:object:generate=true

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnotationSelector

type AnnotationSelector struct {
	MatchAnnotations map[string]string                 `json:"matchAnnotations,omitempty"`
	MatchExpressions []metav1.LabelSelectorRequirement `json:"matchExpressions,omitempty" validate:"dive"`
}

func (*AnnotationSelector) DeepCopy

func (in *AnnotationSelector) DeepCopy() *AnnotationSelector

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

func (*AnnotationSelector) DeepCopyInto

func (in *AnnotationSelector) DeepCopyInto(out *AnnotationSelector)

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

type App

type App struct {
	GitHashProp `json:",inline"`

	Title       string                   `json:"title,omitempty"`
	Description string                   `json:"description,omitempty"`
	Vars        *JSONSchema              `json:"vars,omitempty"`
	Components  map[string]*AppComponent `json:"components" validate:"dive"`
}

func (*App) DeepCopy

func (in *App) DeepCopy() *App

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

func (*App) DeepCopyInto

func (in *App) DeepCopyInto(out *App)

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

type AppComponent

type AppComponent struct {
	ComponentProps `json:",inline"`

	Routes []*Route `json:"routes,omitempty" validate:"dive"`
}

func (*AppComponent) DeepCopy

func (in *AppComponent) DeepCopy() *AppComponent

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

func (*AppComponent) DeepCopyInto

func (in *AppComponent) DeepCopyInto(out *AppComponent)

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

type ChildUpdateMethod

type ChildUpdateMethod string
const (
	ChildUpdateOnDelete        ChildUpdateMethod = "OnDelete"
	ChildUpdateRecreate        ChildUpdateMethod = "Recreate"
	ChildUpdateInPlace         ChildUpdateMethod = "InPlace"
	ChildUpdateRollingRecreate ChildUpdateMethod = "RollingRecreate"
	ChildUpdateRollingInPlace  ChildUpdateMethod = "RollingInPlace"
)

type ChildUpdateStatusChecks

type ChildUpdateStatusChecks struct {
	Conditions []StatusConditionCheck `json:"conditions,omitempty" validate:"dive"`
}

func (*ChildUpdateStatusChecks) DeepCopy

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

func (*ChildUpdateStatusChecks) DeepCopyInto

func (in *ChildUpdateStatusChecks) DeepCopyInto(out *ChildUpdateStatusChecks)

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

type ComponentKey

type ComponentKey string

type ComponentProps

type ComponentProps struct {
	ComponentTypeProp `json:",inline"`
	GitHashProp       `json:",inline"`
	ImageProp         `json:",inline"`

	Name string `json:"name,omitempty"`
}

func (*ComponentProps) DeepCopy

func (in *ComponentProps) DeepCopy() *ComponentProps

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

func (*ComponentProps) DeepCopyInto

func (in *ComponentProps) DeepCopyInto(out *ComponentProps)

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

func (*ComponentProps) Key

func (p *ComponentProps) Key() ComponentKey

func (*ComponentProps) ShortHash

func (p *ComponentProps) ShortHash() string

type ComponentStatus

type ComponentStatus struct {
	Deployments []uri.Key `json:"deployments,omitempty"`
	Ready       bool      `json:"ready"`
}

func (*ComponentStatus) DeepCopy

func (in *ComponentStatus) DeepCopy() *ComponentStatus

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

func (*ComponentStatus) DeepCopyInto

func (in *ComponentStatus) DeepCopyInto(out *ComponentStatus)

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

type ComponentTypeProp

type ComponentTypeProp struct {
	// +kubebuilder:validation:Enum=graphql;http;kubefox;k8s;kv;object
	Type string `json:"type" validate:"required,oneof=graphql http kubefox k8s kv object"`
}

TODO create enum with custom json marshalling

func (*ComponentTypeProp) DeepCopy

func (in *ComponentTypeProp) DeepCopy() *ComponentTypeProp

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

func (*ComponentTypeProp) DeepCopyInto

func (in *ComponentTypeProp) DeepCopyInto(out *ComponentTypeProp)

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

type CompositeControllerChildResourceRule

type CompositeControllerChildResourceRule struct {
	ResourceRule   `json:",inline"`
	UpdateStrategy *CompositeControllerChildUpdateStrategy `json:"updateStrategy,omitempty"`
}

func (*CompositeControllerChildResourceRule) DeepCopy

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

func (*CompositeControllerChildResourceRule) DeepCopyInto

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

type CompositeControllerChildUpdateStrategy

type CompositeControllerChildUpdateStrategy struct {
	Method       ChildUpdateMethod       `json:"method,omitempty"`
	StatusChecks ChildUpdateStatusChecks `json:"statusChecks,omitempty"`
}

func (*CompositeControllerChildUpdateStrategy) DeepCopy

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

func (*CompositeControllerChildUpdateStrategy) DeepCopyInto

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

type CompositeControllerParentResourceRule

type CompositeControllerParentResourceRule struct {
	ResourceRule    `json:",inline"`
	RevisionHistory *CompositeControllerRevisionHistory `json:"revisionHistory,omitempty"`
}

func (*CompositeControllerParentResourceRule) DeepCopy

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

func (*CompositeControllerParentResourceRule) DeepCopyInto

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

type CompositeControllerRevisionHistory

type CompositeControllerRevisionHistory struct {
	FieldPaths []string `json:"fieldPaths,omitempty"`
}

func (*CompositeControllerRevisionHistory) DeepCopy

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

func (*CompositeControllerRevisionHistory) DeepCopyInto

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

type CompositeControllerSpec

type CompositeControllerSpec struct {
	ParentResource CompositeControllerParentResourceRule  `json:"parentResource"`
	ChildResources []CompositeControllerChildResourceRule `json:"childResources,omitempty" validate:"dive"`

	ResyncPeriodSeconds *int32 `json:"resyncPeriodSeconds,omitempty"`
	GenerateSelector    *bool  `json:"generateSelector,omitempty"`
}

func (*CompositeControllerSpec) DeepCopy

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

func (*CompositeControllerSpec) DeepCopyInto

func (in *CompositeControllerSpec) DeepCopyInto(out *CompositeControllerSpec)

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

type ConfigIdReferrer

type ConfigIdReferrer interface {
	GetConfigId() string
	SetConfigId(string)
}

+kubebuilder:object:generate=false

type ConfigProp

type ConfigProp struct {
	Config string `json:"config" validate:"required,configRef"`
}

func (*ConfigProp) DeepCopy

func (in *ConfigProp) DeepCopy() *ConfigProp

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

func (*ConfigProp) DeepCopyInto

func (in *ConfigProp) DeepCopyInto(out *ConfigProp)

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

func (*ConfigProp) GetConfig

func (p *ConfigProp) GetConfig() string

func (*ConfigProp) SetConfig

func (p *ConfigProp) SetConfig(val string)

type ConfigReferrer

type ConfigReferrer interface {
	GetConfig() string
	SetConfig(string)
}

+kubebuilder:object:generate=false

type ControllerRevisionChildren

type ControllerRevisionChildren struct {
	APIGroup string   `json:"apiGroup"`
	Kind     string   `json:"kind"`
	Names    []string `json:"names"`
}

func (*ControllerRevisionChildren) DeepCopy

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

func (*ControllerRevisionChildren) DeepCopyInto

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

type DecoratorControllerAttachmentRule

type DecoratorControllerAttachmentRule struct {
	ResourceRule   `json:",inline"`
	UpdateStrategy *DecoratorControllerAttachmentUpdateStrategy `json:"updateStrategy,omitempty"`
}

func (*DecoratorControllerAttachmentRule) DeepCopy

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

func (*DecoratorControllerAttachmentRule) DeepCopyInto

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

type DecoratorControllerAttachmentUpdateStrategy

type DecoratorControllerAttachmentUpdateStrategy struct {
	Method ChildUpdateMethod `json:"method,omitempty"`
}

func (*DecoratorControllerAttachmentUpdateStrategy) DeepCopy

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

func (*DecoratorControllerAttachmentUpdateStrategy) DeepCopyInto

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

type DecoratorControllerResourceRule

type DecoratorControllerResourceRule struct {
	ResourceRule       `json:",inline"`
	LabelSelector      *metav1.LabelSelector `json:"labelSelector,omitempty"`
	AnnotationSelector *AnnotationSelector   `json:"annotationSelector,omitempty"`
}

func (*DecoratorControllerResourceRule) DeepCopy

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

func (*DecoratorControllerResourceRule) DeepCopyInto

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

type DecoratorControllerSpec

type DecoratorControllerSpec struct {
	Resources   []DecoratorControllerResourceRule   `json:"resources" validate:"dive"`
	Attachments []DecoratorControllerAttachmentRule `json:"attachments,omitempty" validate:"dive"`

	ResyncPeriodSeconds *int32 `json:"resyncPeriodSeconds,omitempty"`
}

func (*DecoratorControllerSpec) DeepCopy

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

func (*DecoratorControllerSpec) DeepCopyInto

func (in *DecoratorControllerSpec) DeepCopyInto(out *DecoratorControllerSpec)

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

type DeploymentStatus

type DeploymentStatus struct {
	Ready bool `json:"ready"`
}

func (*DeploymentStatus) DeepCopy

func (in *DeploymentStatus) DeepCopy() *DeploymentStatus

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

func (*DeploymentStatus) DeepCopyInto

func (in *DeploymentStatus) DeepCopyInto(out *DeploymentStatus)

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

type EnvironmentIdProp

type EnvironmentIdProp struct {
	EnvironmentId string `json:"environmentId" validate:"required,environmentIdRef"`
}

func (*EnvironmentIdProp) DeepCopy

func (in *EnvironmentIdProp) DeepCopy() *EnvironmentIdProp

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

func (*EnvironmentIdProp) DeepCopyInto

func (in *EnvironmentIdProp) DeepCopyInto(out *EnvironmentIdProp)

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

func (*EnvironmentIdProp) GetEnvironmentId

func (p *EnvironmentIdProp) GetEnvironmentId() string

func (*EnvironmentIdProp) SetEnvironmentId

func (p *EnvironmentIdProp) SetEnvironmentId(val string)

type EnvironmentIdReferrer

type EnvironmentIdReferrer interface {
	GetEnvironmentId() string
	SetEnvironmentId(string)
}

+kubebuilder:object:generate=false

type EnvironmentProp

type EnvironmentProp struct {
	Environment string `json:"environment" validate:"required,environmentRef"`
}

func (*EnvironmentProp) DeepCopy

func (in *EnvironmentProp) DeepCopy() *EnvironmentProp

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

func (*EnvironmentProp) DeepCopyInto

func (in *EnvironmentProp) DeepCopyInto(out *EnvironmentProp)

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

func (*EnvironmentProp) GetEnvironment

func (p *EnvironmentProp) GetEnvironment() string

func (*EnvironmentProp) SetEnvironment

func (p *EnvironmentProp) SetEnvironment(val string)

type EnvironmentReferrer

type EnvironmentReferrer interface {
	GetEnvironment() string
	SetEnvironment(string)
}

+kubebuilder:object:generate=false

type Fabric

type Fabric struct {
	System *FabricSystem `json:"system" validate:"required,dive"`
	Env    *FabricEnv    `json:"environment" validate:"required,dive"`
}

func (*Fabric) CheckComponent

func (f *Fabric) CheckComponent(name, gitHash string) error

func (*Fabric) DeepCopy

func (in *Fabric) DeepCopy() *Fabric

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

func (*Fabric) DeepCopyInto

func (in *Fabric) DeepCopyInto(out *Fabric)

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

func (*Fabric) GetAppComponent

func (f *Fabric) GetAppComponent(name string) *AppComponent

type FabricApp

type FabricApp struct {
	App

	Name string `json:"name" validate:"required"`
}

func (*FabricApp) DeepCopy

func (in *FabricApp) DeepCopy() *FabricApp

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

func (*FabricApp) DeepCopyInto

func (in *FabricApp) DeepCopyInto(out *FabricApp)

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

type FabricEnv

type FabricEnv struct {
	EnvironmentIdProp `json:",inline"`
	EnvironmentProp   `json:",inline"`

	Config  map[string]*Var `json:"config" validate:"required,dive"`
	Secrets map[string]*Var `json:"secrets" validate:"required,dive"`
	EnvVars map[string]*Var `json:"envVars" validate:"required,dive"`
}

func (*FabricEnv) DeepCopy

func (in *FabricEnv) DeepCopy() *FabricEnv

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

func (*FabricEnv) DeepCopyInto

func (in *FabricEnv) DeepCopyInto(out *FabricEnv)

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

type FabricSystem

type FabricSystem struct {
	SystemIdProp `json:",inline"`
	SystemProp   `json:",inline"`

	App FabricApp `json:"app" validate:"required,dive"`
}

func (*FabricSystem) DeepCopy

func (in *FabricSystem) DeepCopy() *FabricSystem

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

func (*FabricSystem) DeepCopyInto

func (in *FabricSystem) DeepCopyInto(out *FabricSystem)

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

type GitHashProp

type GitHashProp struct {
	// +kubebuilder:validation:Pattern="^[a-z0-9]{7}$"
	GitHash string `json:"gitHash" validate:"required,gitHash"`
}

func (*GitHashProp) DeepCopy

func (in *GitHashProp) DeepCopy() *GitHashProp

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

func (*GitHashProp) DeepCopyInto

func (in *GitHashProp) DeepCopyInto(out *GitHashProp)

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

type GitRefProp

type GitRefProp struct {
	// +kubebuilder:validation:MinLength=1
	GitRef string `json:"gitRef" validate:"required"`
}

TODO add regexp

func (*GitRefProp) DeepCopy

func (in *GitRefProp) DeepCopy() *GitRefProp

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

func (*GitRefProp) DeepCopyInto

func (in *GitRefProp) DeepCopyInto(out *GitRefProp)

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

type GitRepoProp

type GitRepoProp struct {
	// +kubebuilder:validation:Format=uri
	GitRepo string `json:"gitRepo" validate:"required,uri"`
}

func (*GitRepoProp) DeepCopy

func (in *GitRepoProp) DeepCopy() *GitRepoProp

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

func (*GitRepoProp) DeepCopyInto

func (in *GitRepoProp) DeepCopyInto(out *GitRepoProp)

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

type ImageProp

type ImageProp struct {
	// +kubebuilder:validation:Pattern="^.*:[a-z0-9-]{7}$"
	Image string `json:"image" validate:"required,componentImage"`
}

TODO use SHA256, switch pattern to ^.*@sha256:[a-z0-9]{64}$

func (*ImageProp) DeepCopy

func (in *ImageProp) DeepCopy() *ImageProp

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

func (*ImageProp) DeepCopyInto

func (in *ImageProp) DeepCopyInto(out *ImageProp)

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

type InheritsProp

type InheritsProp struct {
	Inherits string `json:"inherits,omitempty" validate:"omitempty,environmentRef"`
}

func (*InheritsProp) DeepCopy

func (in *InheritsProp) DeepCopy() *InheritsProp

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

func (*InheritsProp) DeepCopyInto

func (in *InheritsProp) DeepCopyInto(out *InheritsProp)

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

func (*InheritsProp) GetInherits

func (p *InheritsProp) GetInherits() string

func (*InheritsProp) SetInherits

func (p *InheritsProp) SetInherits(val string)

type InheritsReferrer

type InheritsReferrer interface {
	GetInherits() string
	SetInherits(string)
}

+kubebuilder:object:generate=false

type JSONSchema

type JSONSchema struct {
	Properties map[string]*JSONSchemaProp `json:"properties,omitempty" validate:"dive"`
	Required   []string                   `json:"required,omitempty"`
}

func (*JSONSchema) DeepCopy

func (in *JSONSchema) DeepCopy() *JSONSchema

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

func (*JSONSchema) DeepCopyInto

func (in *JSONSchema) DeepCopyInto(out *JSONSchema)

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

type JSONSchemaProp

type JSONSchemaProp struct {
	VarTypeProp `json:",inline"`
	Title       string `json:"title,omitempty"`
	Description string `json:"description,omitempty"`
}

func (*JSONSchemaProp) DeepCopy

func (in *JSONSchemaProp) DeepCopy() *JSONSchemaProp

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

func (*JSONSchemaProp) DeepCopyInto

func (in *JSONSchemaProp) DeepCopyInto(out *JSONSchemaProp)

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

type NamedHashed

type NamedHashed interface {
	GetName() string
	GetGitHash() string
}

+kubebuilder:object:generate=false

type PlatformSpec

type PlatformSpec struct {
	Systems map[uri.Key]*PlatformSystem `json:"systems" validate:"dive"`
}

func (*PlatformSpec) DeepCopy

func (in *PlatformSpec) DeepCopy() *PlatformSpec

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

func (*PlatformSpec) DeepCopyInto

func (in *PlatformSpec) DeepCopyInto(out *PlatformSpec)

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

type PlatformStatus

type PlatformStatus struct {
	Healthy bool                              `json:"healthy"`
	Systems map[uri.Key]*PlatformSystemStatus `json:"systems,omitempty" validate:"dive"`
}

func (*PlatformStatus) DeepCopy

func (in *PlatformStatus) DeepCopy() *PlatformStatus

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

func (*PlatformStatus) DeepCopyInto

func (in *PlatformStatus) DeepCopyInto(out *PlatformStatus)

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

type PlatformSystem

type PlatformSystem struct {
	ImagePullSecret string `json:"imagePullSecret,omitempty"`
}

func (*PlatformSystem) DeepCopy

func (in *PlatformSystem) DeepCopy() *PlatformSystem

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

func (*PlatformSystem) DeepCopyInto

func (in *PlatformSystem) DeepCopyInto(out *PlatformSystem)

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

type PlatformSystemStatus

type PlatformSystemStatus struct {
	Healthy bool `json:"healthy"`
}

func (*PlatformSystemStatus) DeepCopy

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

func (*PlatformSystemStatus) DeepCopyInto

func (in *PlatformSystemStatus) DeepCopyInto(out *PlatformSystemStatus)

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

type RelatedResourceRule

type RelatedResourceRule struct {
	ResourceRule          `json:",inline"`
	*metav1.LabelSelector `json:"labelSelector"`
	Namespace             string   `json:"namespace,omitempty"`
	Names                 []string `json:"names"`
}

func (*RelatedResourceRule) DeepCopy

func (in *RelatedResourceRule) DeepCopy() *RelatedResourceRule

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

func (*RelatedResourceRule) DeepCopyInto

func (in *RelatedResourceRule) DeepCopyInto(out *RelatedResourceRule)

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

type ReleaseStatus

type ReleaseStatus struct {
	Ready bool `json:"ready"`
}

func (*ReleaseStatus) DeepCopy

func (in *ReleaseStatus) DeepCopy() *ReleaseStatus

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

func (*ReleaseStatus) DeepCopyInto

func (in *ReleaseStatus) DeepCopyInto(out *ReleaseStatus)

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

type ResourceRule

type ResourceRule struct {
	APIVersion string `json:"apiVersion"`
	Resource   string `json:"resource"`
}

func (*ResourceRule) DeepCopy

func (in *ResourceRule) DeepCopy() *ResourceRule

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

func (*ResourceRule) DeepCopyInto

func (in *ResourceRule) DeepCopyInto(out *ResourceRule)

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

type Route

type Route struct {
	RouteTypeProp       `json:",inline"`
	Priority            int                      `json:"priority,omitempty"`
	Match               string                   `json:"match,omitempty"`
	Schedule            string                   `json:"schedule,omitempty"`
	CompositeController *CompositeControllerSpec `json:"compositeController,omitempty"`
	DecoratorController *DecoratorControllerSpec `json:"decoratorController,omitempty"`
}

func (*Route) DeepCopy

func (in *Route) DeepCopy() *Route

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

func (*Route) DeepCopyInto

func (in *Route) DeepCopyInto(out *Route)

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

type RouteTypeProp

type RouteTypeProp struct {
	// +kubebuilder:validation:Enum=controller;cron;http
	Type string `json:"type" validate:"required,oneof=controller cron http"`
}

func (*RouteTypeProp) DeepCopy

func (in *RouteTypeProp) DeepCopy() *RouteTypeProp

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

func (*RouteTypeProp) DeepCopyInto

func (in *RouteTypeProp) DeepCopyInto(out *RouteTypeProp)

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

type SecretsProp

type SecretsProp struct {
	// +kubebuilder:validation:Schemaless
	// +kubebuilder:validation:Type=object
	Secrets map[string]*Var `json:"secrets,omitempty" validate:"dive"`
}

func (*SecretsProp) DeepCopy

func (in *SecretsProp) DeepCopy() *SecretsProp

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

func (*SecretsProp) DeepCopyInto

func (in *SecretsProp) DeepCopyInto(out *SecretsProp)

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

type StatusConditionCheck

type StatusConditionCheck struct {
	Type   string  `json:"type"`
	Status *string `json:"status,omitempty"`
	Reason *string `json:"reason,omitempty"`
}

func (*StatusConditionCheck) DeepCopy

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

func (*StatusConditionCheck) DeepCopyInto

func (in *StatusConditionCheck) DeepCopyInto(out *StatusConditionCheck)

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

type SystemIdProp

type SystemIdProp struct {
	SystemId string `json:"systemId" validate:"required,systemIdRef"`
}

func (*SystemIdProp) DeepCopy

func (in *SystemIdProp) DeepCopy() *SystemIdProp

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

func (*SystemIdProp) DeepCopyInto

func (in *SystemIdProp) DeepCopyInto(out *SystemIdProp)

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

func (*SystemIdProp) GetSystemId

func (p *SystemIdProp) GetSystemId() string

func (*SystemIdProp) SetSystemId

func (p *SystemIdProp) SetSystemId(val string)

type SystemIdReferrer

type SystemIdReferrer interface {
	GetSystemId() string
	SetSystemId(string)
}

+kubebuilder:object:generate=false

type SystemProp

type SystemProp struct {
	System string `json:"system" validate:"required,systemRef"`
}

func (*SystemProp) DeepCopy

func (in *SystemProp) DeepCopy() *SystemProp

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

func (*SystemProp) DeepCopyInto

func (in *SystemProp) DeepCopyInto(out *SystemProp)

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

func (*SystemProp) GetSystem

func (p *SystemProp) GetSystem() string

func (*SystemProp) SetSystem

func (p *SystemProp) SetSystem(val string)

type SystemReferrer

type SystemReferrer interface {
	GetSystem() string
	SetSystem(string)
}

+kubebuilder:object:generate=false

type Var

type Var struct {
	Type VarType `json:"-"`
	// contains filtered or unexported fields
}

+kubebuilder:object:generate=true

func NewVarArrayFloat

func NewVarArrayFloat(val []float64) *Var

func NewVarArrayInt

func NewVarArrayInt(val []int) *Var

func NewVarArrayString

func NewVarArrayString(val []string) *Var

func NewVarBool

func NewVarBool(val bool) *Var

func NewVarFloat

func NewVarFloat(val float64) *Var

func NewVarInt

func NewVarInt(val int) *Var

func NewVarString

func NewVarString(val string) *Var

func VarFromValue

func VarFromValue(val *structpb.Value) (*Var, error)

func (*Var) ArrayFloat

func (val *Var) ArrayFloat() []float64

ArrayIntVal returns the array value if type is ArrayInt. Otherwise nil is returned.

func (*Var) ArrayInt

func (val *Var) ArrayInt() []int

ArrayIntVal returns the array value if type is ArrayInt. Otherwise nil is returned.

func (*Var) ArrayString

func (val *Var) ArrayString() []string

ArrayString returns the array value if type is ArrayString. Otherwise nil is returned.

func (*Var) Bool

func (val *Var) Bool() bool

BoolVal returns the boolean value if type is Bool. If type is Number, false will be returned if value is 0, otherwise true is returned. If type is String, an attempt to parse the boolean value will be made. If parsing fails or type is Array false will be returned.

func (*Var) BoolOrDefault

func (val *Var) BoolOrDefault(def bool) bool

func (*Var) DeepCopy

func (in *Var) DeepCopy() *Var

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

func (*Var) DeepCopyInto

func (in *Var) DeepCopyInto(out *Var)

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

func (*Var) Float

func (val *Var) Float() float64

FloatVal returns the float64 value if type is Number. If type is Bool 1 will be returned if true, otherwise 0 is returned. If type is String an attempt to parse the number will be made. If parsing fails or type is Array 0 will be returned.

func (*Var) FloatOrDefault

func (val *Var) FloatOrDefault(def float64) float64

func (*Var) Int

func (val *Var) Int() int

IntValue returns the int value if type is Number. If type is Bool 1 will be returned if true, otherwise 0 is returned. If type is String an attempt to parse the number will be made. If parsing fails or type is Array 0 will be returned.

func (*Var) IntOrDefault

func (val *Var) IntOrDefault(def int) int

func (*Var) IsArrayNumber

func (val *Var) IsArrayNumber() bool

func (*Var) IsArrayString

func (val *Var) IsArrayString() bool

func (*Var) IsBool

func (val *Var) IsBool() bool

func (*Var) IsNumber

func (val *Var) IsNumber() bool

func (*Var) IsString

func (val *Var) IsString() bool

func (*Var) IsUnknown

func (val *Var) IsUnknown() bool

func (*Var) MarshalJSON

func (val *Var) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface.

func (*Var) String

func (val *Var) String() string

String returns the string value if type is String. If type is Bool the `strconv.FormatBool(bool)` of the bool value is returned. If type is Number the `strconv.FormatFloat(float, 'f', 2, 64)` of the number value is returned. If type is Array the JSON representation of the array is returned.

func (*Var) StringOrDefault

func (val *Var) StringOrDefault(def string) string

func (*Var) UnmarshalJSON

func (val *Var) UnmarshalJSON(value []byte) error

UnmarshalJSON implements the json.Unmarshaller interface.

func (*Var) Value

func (val *Var) Value() *structpb.Value

type VarType

type VarType int64

VarType represents the stored type of Var.

const (
	Unknown     VarType = iota // holds an boolean
	Bool                       // holds an boolean
	Number                     // holds an int or float
	String                     // holds a string
	ArrayNumber                // holds an array of ints or floats
	ArrayString                // holds an array of strings
)

type VarTypeProp

type VarTypeProp struct {
	// +kubebuilder:validation:Enum=array;boolean;number;string
	Type string `json:"type" validate:"required,oneof=array boolean number string"`
}

func (*VarTypeProp) DeepCopy

func (in *VarTypeProp) DeepCopy() *VarTypeProp

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

func (*VarTypeProp) DeepCopyInto

func (in *VarTypeProp) DeepCopyInto(out *VarTypeProp)

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

type VarsProp

type VarsProp struct {
	// +kubebuilder:validation:Schemaless
	// +kubebuilder:validation:Type=object
	Vars map[string]*Var `json:"vars,omitempty" validate:"dive"`
}

func (*VarsProp) DeepCopy

func (in *VarsProp) DeepCopy() *VarsProp

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

func (*VarsProp) DeepCopyInto

func (in *VarsProp) DeepCopyInto(out *VarsProp)

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