Documentation
¶
Overview ¶
+groupName=gate.v3.haproxy.org +k8s:deepcopy-gen=package
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type Backend
- type BackendList
- type BackendSpec
- type CRReference
- type Category
- type CategoryLevel
- type ControllerConfSpec
- type Defaults
- type DefaultsList
- type DefaultsSpec
- type GateSpec
- type Global
- type GlobalList
- type GlobalSpec
- type HugConf
- type HugConfList
- type HugGate
- type HugGateList
- type Level
- type Logging
Constants ¶
const ( GroupName = "gate.v3.haproxy.org" GroupVersion = "v3" )
GroupName is the group name use in this package.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: GroupVersion}
SchemeGroupVersion is group version used to register these objects.
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource.
Types ¶
type Backend ¶
type Backend struct {
Spec BackendSpec `json:"spec"`
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
}
Backend is a specification for a Backend resource
func (*Backend) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Backend.
func (*Backend) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Backend) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BackendList ¶
type BackendList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
Items []Backend `json:"items"`
}
BackendList is a list of Backend resources
func (*BackendList) DeepCopy ¶
func (in *BackendList) DeepCopy() *BackendList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackendList.
func (*BackendList) DeepCopyInto ¶
func (in *BackendList) DeepCopyInto(out *BackendList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackendList) DeepCopyObject ¶
func (in *BackendList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BackendSpec ¶
BackendSpec defines the desired state of Backend
func (*BackendSpec) DeepCopy ¶
func (in *BackendSpec) DeepCopy() *BackendSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackendSpec.
func (*BackendSpec) DeepCopyInto ¶
func (in *BackendSpec) DeepCopyInto(out *BackendSpec)
DeepCopyInto deepcopying the receiver into out. in must be non-nil.
type CRReference ¶ added in v0.9.1
type CRReference struct {
// Group is the group of the referent.
Group *v1.Group `json:"group,omitempty"`
// Kind is the kind of the referent.
Kind *v1.Kind `json:"kind,omitempty"`
// Namespace is the namespace of the referent.
Namespace *v1.Namespace `json:"namespace,omitempty"`
// Name is the name of the referent.
Name v1.ObjectName `json:"name"`
}
func (*CRReference) DeepCopy ¶ added in v0.9.1
func (in *CRReference) DeepCopy() *CRReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CRReference.
func (*CRReference) DeepCopyInto ¶ added in v0.9.1
func (in *CRReference) DeepCopyInto(out *CRReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Category ¶
type Category string
+kubebuilder:validation:Enum=k8s;gate;status;haproxycfg;app;batch;reloadmgr;certs-storage;maps-storage
type CategoryLevel ¶
func (*CategoryLevel) DeepCopy ¶
func (in *CategoryLevel) DeepCopy() *CategoryLevel
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CategoryLevel.
func (*CategoryLevel) DeepCopyInto ¶
func (in *CategoryLevel) DeepCopyInto(out *CategoryLevel)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ControllerConfSpec ¶
type ControllerConfSpec struct {
GlobalRef *CRReference `json:"globalRef,omitempty"`
DefaultsRef *CRReference `json:"defaultsRef,omitempty"`
Logging Logging `json:"logging"`
}
func (*ControllerConfSpec) DeepCopy ¶
func (in *ControllerConfSpec) DeepCopy() *ControllerConfSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerConfSpec.
func (*ControllerConfSpec) DeepCopyInto ¶
func (in *ControllerConfSpec) DeepCopyInto(out *ControllerConfSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Defaults ¶ added in v0.9.1
type Defaults struct {
Spec DefaultsSpec `json:"spec"`
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
}
Defaults is a specification for a Defaults resource
func (*Defaults) DeepCopy ¶ added in v0.9.1
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Defaults.
func (*Defaults) DeepCopyInto ¶ added in v0.9.1
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Defaults) DeepCopyObject ¶ added in v0.9.1
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DefaultsList ¶ added in v0.9.1
type DefaultsList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
Items []Defaults `json:"items"`
}
DefaultsList is a list of Global resources
func (*DefaultsList) DeepCopy ¶ added in v0.9.1
func (in *DefaultsList) DeepCopy() *DefaultsList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DefaultsList.
func (*DefaultsList) DeepCopyInto ¶ added in v0.9.1
func (in *DefaultsList) DeepCopyInto(out *DefaultsList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DefaultsList) DeepCopyObject ¶ added in v0.9.1
func (in *DefaultsList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DefaultsSpec ¶ added in v0.9.1
type DefaultsSpec struct {
// +kubebuilder:validation:Enum=override;append
MergeStrategy string `json:"merge_strategy"`
models.Defaults `json:",inline"`
}
DefaultsSpec defines the desired state of Defaults
func (*DefaultsSpec) DeepCopy ¶ added in v0.9.1
func (in *DefaultsSpec) DeepCopy() *DefaultsSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DefaultsSpec.
func (*DefaultsSpec) DeepCopyInto ¶ added in v0.9.1
func (s *DefaultsSpec) DeepCopyInto(out *DefaultsSpec)
DeepCopyInto deepcopying the receiver into out. in must be non-nil.
func (DefaultsSpec) MarshalJSON ¶ added in v0.9.1
func (s DefaultsSpec) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler for GlobalSpec. This is needed because the embedded models.Global has its own MarshalJSON, which would be promoted and would omit the merge_strategy field.
func (*DefaultsSpec) UnmarshalJSON ¶ added in v0.9.1
func (s *DefaultsSpec) UnmarshalJSON(data []byte) error
UnmarshalJSON implements json.Unmarshaler for GlobalSpec. This is needed because the embedded models.Global has its own UnmarshalJSON, which would be promoted and would swallow the merge_strategy field.
type GateSpec ¶
type GateSpec struct {
MWorkerMaxReload int `json:"mworkerMaxReload"`
}
func (*GateSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GateSpec.
func (*GateSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Global ¶ added in v0.9.1
type Global struct {
Spec GlobalSpec `json:"spec"`
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
}
Global is a specification for a Global resource
func (*Global) DeepCopy ¶ added in v0.9.1
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Global.
func (*Global) DeepCopyInto ¶ added in v0.9.1
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Global) DeepCopyObject ¶ added in v0.9.1
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GlobalList ¶ added in v0.9.1
type GlobalList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
Items []Global `json:"items"`
}
GlobalList is a list of Global resources
func (*GlobalList) DeepCopy ¶ added in v0.9.1
func (in *GlobalList) DeepCopy() *GlobalList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlobalList.
func (*GlobalList) DeepCopyInto ¶ added in v0.9.1
func (in *GlobalList) DeepCopyInto(out *GlobalList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GlobalList) DeepCopyObject ¶ added in v0.9.1
func (in *GlobalList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GlobalSpec ¶ added in v0.9.1
type GlobalSpec struct {
// +kubebuilder:validation:Enum=override;append
MergeStrategy string `json:"merge_strategy"`
models.Global `json:",inline"`
}
GlobalSpec defines the desired state of Global
Note: the following fields from models.Global are intentionally excluded from this CRD and cannot be set (they are managed by the controller or not applicable in Kubernetes):
- daemon
- localpeer
- master-worker
- pidfile
- stats_timeout
- default_path
- tune_lua_options.bool_sample_conversion
- lua_options.load_per_thread
The removal of those fields is done after the CRD is generated from models.Global
func (*GlobalSpec) DeepCopy ¶ added in v0.9.1
func (in *GlobalSpec) DeepCopy() *GlobalSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlobalSpec.
func (*GlobalSpec) DeepCopyInto ¶ added in v0.9.1
func (s *GlobalSpec) DeepCopyInto(out *GlobalSpec)
DeepCopyInto deepcopying the receiver into out. in must be non-nil.
func (GlobalSpec) MarshalJSON ¶ added in v0.9.1
func (s GlobalSpec) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler for GlobalSpec. This is needed because the embedded models.Global has its own MarshalJSON, which would be promoted and would omit the merge_strategy field.
func (*GlobalSpec) UnmarshalJSON ¶ added in v0.9.1
func (s *GlobalSpec) UnmarshalJSON(data []byte) error
UnmarshalJSON implements json.Unmarshaler for GlobalSpec. This is needed because the embedded models.Global has its own UnmarshalJSON, which would be promoted and would swallow the merge_strategy field.
type HugConf ¶
type HugConf struct {
metav1.TypeMeta `json:",inline"`
Spec ControllerConfSpec `json:"spec"`
metav1.ObjectMeta `json:"metadata,omitempty"`
}
HugConf is a specification for a the controller related configuration
func (*HugConf) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HugConf.
func (*HugConf) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HugConf) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HugConfList ¶
type HugConfList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
Items []HugConf `json:"items"`
}
HugConfList is a list of HugConf resources
func (*HugConfList) DeepCopy ¶
func (in *HugConfList) DeepCopy() *HugConfList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HugConfList.
func (*HugConfList) DeepCopyInto ¶
func (in *HugConfList) DeepCopyInto(out *HugConfList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HugConfList) DeepCopyObject ¶
func (in *HugConfList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HugGate ¶
type HugGate struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec GateSpec `json:"spec"`
}
HugGate is a specification for a HugGate resource
func (*HugGate) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HugGate.
func (*HugGate) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HugGate) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HugGateList ¶
type HugGateList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
Items []HugGate `json:"items"`
}
HugGateList is a list of HugGate resources
func (*HugGateList) DeepCopy ¶
func (in *HugGateList) DeepCopy() *HugGateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HugGateList.
func (*HugGateList) DeepCopyInto ¶
func (in *HugGateList) DeepCopyInto(out *HugGateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HugGateList) DeepCopyObject ¶
func (in *HugGateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type Level ¶
type Level string
+kubebuilder:validation:Enum=Debug;Info;Warn;Error;None +kubebuilder:validation:Required
type Logging ¶
type Logging struct {
DefaultLevel Level `json:"defaultLevel,omitempty"`
// CategoryLevelList is a list of categories and their levels
// if a category is not present, the default level is used
CategoryLevelList []CategoryLevel `json:"categoryLevelList,omitempty"`
}
func (*Logging) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Logging.
func (*Logging) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.