v1alpha2

package
v0.5.1-0...-6fb5505 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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
)
View Source
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 Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Range

type Range struct {
	Min uint32 `json:"min,omitempty"`
	Max uint32 `json:"max,omitempty"`
}

Range describes a range of integers (e.g. status codes).

func (*Range) DeepCopy

func (in *Range) DeepCopy() *Range

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

func (*Range) DeepCopyInto

func (in *Range) DeepCopyInto(out *Range)

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

func (in *RouteSpec) DeepCopy() *RouteSpec

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

func (*RouteSpec) DeepCopyInto

func (in *RouteSpec) DeepCopyInto(out *RouteSpec)

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.

Jump to

Keyboard shortcuts

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