Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder collects functions that add things to a scheme. It's to allow // code to compile without explicitly referencing generated types. You should // declare one in each package that will have generated deep copy or conversion // functions. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme applies all the stored functions to the scheme. A non-nil error // indicates that one function failed and the attempt was abandoned. AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{ Group: serviceprofile.GroupName, Version: "v1alpha2", }
SchemeGroupVersion is the identifier for the API which includes the name of the group and the version of the API
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Range ¶
Range describes a range of integers (e.g. status codes).
func (*Range) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Range.
func (*Range) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RequestMatch ¶
type RequestMatch struct { All []*RequestMatch `json:"all,omitempty"` Not *RequestMatch `json:"not,omitempty"` Any []*RequestMatch `json:"any,omitempty"` PathRegex string `json:"pathRegex,omitempty"` Method string `json:"method,omitempty"` }
RequestMatch describes the conditions under which to match a Route.
func (*RequestMatch) DeepCopy ¶
func (in *RequestMatch) DeepCopy() *RequestMatch
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequestMatch.
func (*RequestMatch) DeepCopyInto ¶
func (in *RequestMatch) DeepCopyInto(out *RequestMatch)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResponseClass ¶
type ResponseClass struct { Condition *ResponseMatch `json:"condition"` IsFailure bool `json:"isFailure,omitempty"` }
ResponseClass describes how to classify a response (e.g. success or failures).
func (*ResponseClass) DeepCopy ¶
func (in *ResponseClass) DeepCopy() *ResponseClass
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResponseClass.
func (*ResponseClass) DeepCopyInto ¶
func (in *ResponseClass) DeepCopyInto(out *ResponseClass)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResponseMatch ¶
type ResponseMatch struct { All []*ResponseMatch `json:"all,omitempty"` Not *ResponseMatch `json:"not,omitempty"` Any []*ResponseMatch `json:"any,omitempty"` Status *Range `json:"status,omitempty"` }
ResponseMatch describes the conditions under which to classify a response.
func (*ResponseMatch) DeepCopy ¶
func (in *ResponseMatch) DeepCopy() *ResponseMatch
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResponseMatch.
func (*ResponseMatch) DeepCopyInto ¶
func (in *ResponseMatch) DeepCopyInto(out *ResponseMatch)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RetryBudget ¶
type RetryBudget struct { RetryRatio float32 `json:"retryRatio"` MinRetriesPerSecond uint32 `json:"minRetriesPerSecond"` TTL string `json:"ttl"` }
RetryBudget describes the maximum number of retries that should be issued to this service.
func (*RetryBudget) DeepCopy ¶
func (in *RetryBudget) DeepCopy() *RetryBudget
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RetryBudget.
func (*RetryBudget) DeepCopyInto ¶
func (in *RetryBudget) DeepCopyInto(out *RetryBudget)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RouteSpec ¶
type RouteSpec struct { Name string `json:"name"` Condition *RequestMatch `json:"condition"` ResponseClasses []*ResponseClass `json:"responseClasses,omitempty"` IsRetryable bool `json:"isRetryable,omitempty"` Timeout string `json:"timeout,omitempty"` }
RouteSpec specifies a Route resource.
func (*RouteSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteSpec.
func (*RouteSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceProfile ¶
type ServiceProfile struct { // TypeMeta is the metadata for the resource, like kind and apiversion metav1.TypeMeta `json:",inline"` // ObjectMeta contains the metadata for the particular object, including // things like... // - name // - namespace // - self link // - labels // - ... etc ... metav1.ObjectMeta `json:"metadata,omitempty"` // Spec is the custom resource spec Spec ServiceProfileSpec `json:"spec"` }
ServiceProfile describes a serviceProfile resource
func (*ServiceProfile) DeepCopy ¶
func (in *ServiceProfile) DeepCopy() *ServiceProfile
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceProfile.
func (*ServiceProfile) DeepCopyInto ¶
func (in *ServiceProfile) DeepCopyInto(out *ServiceProfile)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceProfile) DeepCopyObject ¶
func (in *ServiceProfile) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceProfileList ¶
type ServiceProfileList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []ServiceProfile `json:"items"` }
ServiceProfileList is a list of ServiceProfile resources.
func (*ServiceProfileList) DeepCopy ¶
func (in *ServiceProfileList) DeepCopy() *ServiceProfileList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceProfileList.
func (*ServiceProfileList) DeepCopyInto ¶
func (in *ServiceProfileList) DeepCopyInto(out *ServiceProfileList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceProfileList) DeepCopyObject ¶
func (in *ServiceProfileList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceProfileSpec ¶
type ServiceProfileSpec struct { Routes []*RouteSpec `json:"routes,omitempty"` RetryBudget *RetryBudget `json:"retryBudget,omitempty"` DstOverrides []*WeightedDst `json:"dstOverrides,omitempty"` OpaquePorts map[uint32]struct{} `json:"opaquePorts,omitempty"` }
ServiceProfileSpec specifies a ServiceProfile resource.
func (*ServiceProfileSpec) DeepCopy ¶
func (in *ServiceProfileSpec) DeepCopy() *ServiceProfileSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceProfileSpec.
func (*ServiceProfileSpec) DeepCopyInto ¶
func (in *ServiceProfileSpec) DeepCopyInto(out *ServiceProfileSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WeightedDst ¶
type WeightedDst struct { Authority string `json:"authority"` Weight resource.Quantity `json:"weight"` }
WeightedDst is a weighted alternate destination.
func (*WeightedDst) DeepCopy ¶
func (in *WeightedDst) DeepCopy() *WeightedDst
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WeightedDst.
func (*WeightedDst) DeepCopyInto ¶
func (in *WeightedDst) DeepCopyInto(out *WeightedDst)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.