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" )
Click to show internal directories.
Click to hide internal directories.