Documentation ¶
Overview ¶
Package v1 is the v1 version of the configuration.manba.io API. +groupName=configuration.manba.io
Index ¶
- Variables
- func Resource(resource string) schema.GroupResource
- type ManbaCluster
- type ManbaClusterList
- type ManbaClusterSpec
- type ManbaClusterSubSet
- type ManbaHTTPMatch
- type ManbaHTTPMatchRule
- type ManbaHTTPRoute
- type ManbaHTTPRouteCluster
- type ManbaHTTPRouteMatch
- type ManbaHTTPRouting
- type ManbaHTTPRule
- type ManbaHTTPURIMatch
- type ManbaHTTPURIRewrite
- type ManbaIngress
- type ManbaIngressList
- type ManbaIngressSpec
- type TrafficPolicy
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder is a schemeBuilder with all CRDs SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme points to SchemeBuilder's AddToScheme AddToScheme = SchemeBuilder.AddToScheme // SchemeGroupVersion is API Group and Version of // Manba Ingress Controller's API. SchemeGroupVersion = schema.GroupVersion{Group: "configuration.manba.io", Version: "v1beta1"} )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type ManbaCluster ¶
type ManbaCluster struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` Spec ManbaClusterSpec `json:"spec,omitempty"` }
ManbaCluster is top level of manba cluster +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ManbaCluster) DeepCopy ¶
func (in *ManbaCluster) DeepCopy() *ManbaCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManbaCluster.
func (*ManbaCluster) DeepCopyInto ¶
func (in *ManbaCluster) DeepCopyInto(out *ManbaCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManbaCluster) DeepCopyObject ¶
func (in *ManbaCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ManbaClusterList ¶
type ManbaClusterList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []ManbaCluster `json:"items,omitempty"` }
ManbaClusterList is a list of ManbaCluster +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ManbaClusterList) DeepCopy ¶
func (in *ManbaClusterList) DeepCopy() *ManbaClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManbaClusterList.
func (*ManbaClusterList) DeepCopyInto ¶
func (in *ManbaClusterList) DeepCopyInto(out *ManbaClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManbaClusterList) DeepCopyObject ¶
func (in *ManbaClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ManbaClusterSpec ¶
type ManbaClusterSpec struct { TrafficPolicy *TrafficPolicy `json:"trafficPolicy,omitempty"` Subsets []ManbaClusterSubSet `json:"subsets"` }
ManbaClusterSpec details of ManbaCluster
func (*ManbaClusterSpec) DeepCopy ¶
func (in *ManbaClusterSpec) DeepCopy() *ManbaClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManbaClusterSpec.
func (*ManbaClusterSpec) DeepCopyInto ¶
func (in *ManbaClusterSpec) DeepCopyInto(out *ManbaClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManbaClusterSubSet ¶
type ManbaClusterSubSet struct { // Name of subset, like v1 Name string `json:"name"` // Labels used to list service by labels Labels map[string]string `json:"labels,omitempty"` // TrafficPolicy for cluster, if cluster has 5 servers, // single server's maxQPS is trafficPolicy.MaxQPS/5 TrafficPolicy *TrafficPolicy `json:"trafficPolicy,omitempty"` }
ManbaClusterSubSet represents service in k8s
func (*ManbaClusterSubSet) DeepCopy ¶
func (in *ManbaClusterSubSet) DeepCopy() *ManbaClusterSubSet
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManbaClusterSubSet.
func (*ManbaClusterSubSet) DeepCopyInto ¶
func (in *ManbaClusterSubSet) DeepCopyInto(out *ManbaClusterSubSet)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManbaHTTPMatch ¶
type ManbaHTTPMatch struct { Host string `json:"host,omitempty"` Rules []ManbaHTTPMatchRule `json:"rules,omitempty"` }
func (*ManbaHTTPMatch) DeepCopy ¶
func (in *ManbaHTTPMatch) DeepCopy() *ManbaHTTPMatch
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManbaHTTPMatch.
func (*ManbaHTTPMatch) DeepCopyInto ¶
func (in *ManbaHTTPMatch) DeepCopyInto(out *ManbaHTTPMatch)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManbaHTTPMatchRule ¶
type ManbaHTTPMatchRule struct { URI ManbaHTTPURIMatch `json:"uri,omitempty"` Method *string `json:"method,omitempty"` MatchType string `json:"match_type,omitempty"` }
func (*ManbaHTTPMatchRule) DeepCopy ¶
func (in *ManbaHTTPMatchRule) DeepCopy() *ManbaHTTPMatchRule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManbaHTTPMatchRule.
func (*ManbaHTTPMatchRule) DeepCopyInto ¶
func (in *ManbaHTTPMatchRule) DeepCopyInto(out *ManbaHTTPMatchRule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManbaHTTPRoute ¶
type ManbaHTTPRoute struct { Cluster ManbaHTTPRouteCluster `json:"cluster,omitempty"` Rewrite *ManbaHTTPURIRewrite `json:"rewrite,omitempty"` AttrName string `json:"attrName,omitempty"` Match *ManbaHTTPRouteMatch `json:"match,omitempty"` Cache *metapb.Cache `json:"cache,omitempty"` BatchIndex int32 `json:"batchIndex,omitempty"` DefaultValue *metapb.HTTPResult `json:"default_value,omitempty"` WriteTimeout int64 `json:"writeTimeout,omitempty"` ReadTimeout int64 `json:"readTimeout,omitempty"` }
func (*ManbaHTTPRoute) DeepCopy ¶
func (in *ManbaHTTPRoute) DeepCopy() *ManbaHTTPRoute
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManbaHTTPRoute.
func (*ManbaHTTPRoute) DeepCopyInto ¶
func (in *ManbaHTTPRoute) DeepCopyInto(out *ManbaHTTPRoute)
DeepCopyInto ...
type ManbaHTTPRouteCluster ¶
type ManbaHTTPRouteCluster struct { Name string `json:"name,omitempty"` Subset string `json:"subset,omitempty"` Port intstr.IntOrString `json:"port,omitempty"` }
func (*ManbaHTTPRouteCluster) DeepCopy ¶
func (in *ManbaHTTPRouteCluster) DeepCopy() *ManbaHTTPRouteCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManbaHTTPRouteCluster.
func (*ManbaHTTPRouteCluster) DeepCopyInto ¶
func (in *ManbaHTTPRouteCluster) DeepCopyInto(out *ManbaHTTPRouteCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManbaHTTPRouteMatch ¶
type ManbaHTTPRouteMatch struct { Cookie map[string]string `json:"cookie"` Query map[string]string `json:"query"` JSONBody map[string]string `json:"jsonBody"` Header map[string]string `json:"header"` PathValue map[string]string `json:"pathValue"` FormData map[string]string `json:"formData"` }
func (*ManbaHTTPRouteMatch) DeepCopy ¶
func (in *ManbaHTTPRouteMatch) DeepCopy() *ManbaHTTPRouteMatch
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManbaHTTPRouteMatch.
func (*ManbaHTTPRouteMatch) DeepCopyInto ¶
func (in *ManbaHTTPRouteMatch) DeepCopyInto(out *ManbaHTTPRouteMatch)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManbaHTTPRouteMatch) ToManbaValidations ¶
func (v *ManbaHTTPRouteMatch) ToManbaValidations() []*metapb.Validation
type ManbaHTTPRouting ¶
type ManbaHTTPRouting struct { Cluster ManbaHTTPRouteCluster `json:"cluster,omitempty"` Rate *int32 `json:"rate,omitempty"` Conditions []metapb.Condition `json:"conditions,omitempty"` }
func (*ManbaHTTPRouting) DeepCopy ¶
func (in *ManbaHTTPRouting) DeepCopy() *ManbaHTTPRouting
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManbaHTTPRouting.
func (*ManbaHTTPRouting) DeepCopyInto ¶
func (in *ManbaHTTPRouting) DeepCopyInto(out *ManbaHTTPRouting)
DeepCopyInto ...
type ManbaHTTPRule ¶
type ManbaHTTPRule struct { Match []ManbaHTTPMatch `json:"match,omitempty"` Rewrite *ManbaHTTPURIRewrite `json:"rewrite,omtiempty"` IPAccessControl *metapb.IPAccessControl `json:"accessControl,omitempty"` Retry *metapb.RetryStrategy `json:"retries,omitempty"` DefaultValue *metapb.HTTPResult `json:"defaultValue,omitempty"` RenderTemplate *metapb.RenderTemplate `json:"renderTemplate,omitempty"` AuthFilter *string `json:"authFilter,omitempty"` TrafficPolicy *TrafficPolicy `json:"trafficPolicy,omitempty"` Route []ManbaHTTPRoute `json:"route,omitempty"` Mirror []ManbaHTTPRouting `json:"mirror,omitempty"` Split []ManbaHTTPRouting `json:"split,omitempty"` }
ManbaHTTPRule implements manba api
func (*ManbaHTTPRule) DeepCopy ¶
func (in *ManbaHTTPRule) DeepCopy() *ManbaHTTPRule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManbaHTTPRule.
func (*ManbaHTTPRule) DeepCopyInto ¶
func (in *ManbaHTTPRule) DeepCopyInto(out *ManbaHTTPRule)
DeepCopyInto ...
type ManbaHTTPURIMatch ¶
type ManbaHTTPURIMatch struct {
Pattern string `json:"pattern,omitempty"`
}
func (*ManbaHTTPURIMatch) DeepCopy ¶
func (in *ManbaHTTPURIMatch) DeepCopy() *ManbaHTTPURIMatch
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManbaHTTPURIMatch.
func (*ManbaHTTPURIMatch) DeepCopyInto ¶
func (in *ManbaHTTPURIMatch) DeepCopyInto(out *ManbaHTTPURIMatch)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManbaHTTPURIRewrite ¶
type ManbaHTTPURIRewrite struct {
URI string `json:"uri,omitempty"`
}
func (*ManbaHTTPURIRewrite) DeepCopy ¶
func (in *ManbaHTTPURIRewrite) DeepCopy() *ManbaHTTPURIRewrite
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManbaHTTPURIRewrite.
func (*ManbaHTTPURIRewrite) DeepCopyInto ¶
func (in *ManbaHTTPURIRewrite) DeepCopyInto(out *ManbaHTTPURIRewrite)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManbaHTTPURIRewrite) GetURI ¶
func (m *ManbaHTTPURIRewrite) GetURI() string
type ManbaIngress ¶
type ManbaIngress struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` Spec ManbaIngressSpec `json:"spec,omitempty"` // Status *ManbaIngressStatus `json:"status,omitempty"` Status networkingv1beta1.IngressStatus `json:"status,omitempty"` }
ManbaIngress is a top-level type. A client is created for it. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ManbaIngress) DeepCopy ¶
func (in *ManbaIngress) DeepCopy() *ManbaIngress
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManbaIngress.
func (*ManbaIngress) DeepCopyInto ¶
func (in *ManbaIngress) DeepCopyInto(out *ManbaIngress)
DeepCopyInto deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManbaIngress) DeepCopyObject ¶
func (in *ManbaIngress) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ManbaIngressList ¶
type ManbaIngressList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []ManbaIngress `json:"items,omitempty"` }
ManbaIngressList is a list of ManbaIngress +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ManbaIngressList) DeepCopy ¶
func (in *ManbaIngressList) DeepCopy() *ManbaIngressList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManbaIngressList.
func (*ManbaIngressList) DeepCopyInto ¶
func (in *ManbaIngressList) DeepCopyInto(out *ManbaIngressList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManbaIngressList) DeepCopyObject ¶
func (in *ManbaIngressList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ManbaIngressSpec ¶
type ManbaIngressSpec struct { HTTP []ManbaHTTPRule `json:"http,omitempty"` TLS networkingv1beta1.IngressTLS `json:"tls,omitempty"` }
ManbaIngressSpec api list
func (*ManbaIngressSpec) DeepCopy ¶
func (in *ManbaIngressSpec) DeepCopy() *ManbaIngressSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManbaIngressSpec.
func (*ManbaIngressSpec) DeepCopyInto ¶
func (in *ManbaIngressSpec) DeepCopyInto(out *ManbaIngressSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TrafficPolicy ¶
type TrafficPolicy struct { LoadBalancer *string `json:"loadBalancer,omitempty"` MaxQPS uint64 `json:"maxQPS"` CircuitBreaker *metapb.CircuitBreaker `json:"circuitBreaker,omitempty"` RateLimitOption *string `json:"rateLimitOption,omitempty"` }
func (*TrafficPolicy) DeepCopy ¶
func (in *TrafficPolicy) DeepCopy() *TrafficPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrafficPolicy.
func (*TrafficPolicy) DeepCopyInto ¶
func (in *TrafficPolicy) DeepCopyInto(out *TrafficPolicy)
DeepCopyInto ...