v1alpha1

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: Apache-2.0, BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=resourcebackend.provider.kform.io

Index

Constants

View Source
const (
	Group      = "resourcebackend.provider.kform.io"
	Version    = "v1alpha1"
	APIVersion = Group + "/" + Version
)

Variables

View Source
var ExpectedProviderKinds = []string{string(ProviderKindMock), string(ProviderKindAPI)}
View Source
var (
	ProviderConfigKind = reflect.TypeOf(ProviderConfig{}).Name()
)

Functions

This section is empty.

Types

type ProviderConfig

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

	Spec ProviderConfigSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
}

+kubebuilder:object:root=true

func BuildProviderConfig

func BuildProviderConfig(meta metav1.ObjectMeta, spec ProviderConfigSpec) *ProviderConfig

BuildProviderConfig returns a ProviderConfig from a meta Object and an ProviderConfig Spec

func (*ProviderConfig) DeepCopy

func (in *ProviderConfig) DeepCopy() *ProviderConfig

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

func (*ProviderConfig) DeepCopyInto

func (in *ProviderConfig) DeepCopyInto(out *ProviderConfig)

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

func (*ProviderConfig) DeepCopyObject

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

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

type ProviderConfigSpec

type ProviderConfigSpec struct {
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum:=api;mock
	// +kubebuilder:default:=api
	Kind ProviderKind `json:"kind" yaml:"kind"`

	Address string `json:"address,omitempty" yaml:"address,omitempty"`
}

func (*ProviderConfigSpec) IsKindValid

func (r *ProviderConfigSpec) IsKindValid() bool

type ProviderKind

type ProviderKind string
const (
	ProviderKindMock ProviderKind = "mock"
	ProviderKindAPI  ProviderKind = "api"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL