...

Package v1alpha2

import "github.com/linkerd/linkerd2/controller/gen/apis/serviceprofile/v1alpha2"
Overview
Index

Overview ▾

Index ▾

Variables
func Kind(kind string) schema.GroupKind
func Resource(resource string) schema.GroupResource
type Range
    func (in *Range) DeepCopy() *Range
    func (in *Range) DeepCopyInto(out *Range)
type RequestMatch
    func (in *RequestMatch) DeepCopy() *RequestMatch
    func (in *RequestMatch) DeepCopyInto(out *RequestMatch)
type ResponseClass
    func (in *ResponseClass) DeepCopy() *ResponseClass
    func (in *ResponseClass) DeepCopyInto(out *ResponseClass)
type ResponseMatch
    func (in *ResponseMatch) DeepCopy() *ResponseMatch
    func (in *ResponseMatch) DeepCopyInto(out *ResponseMatch)
type RetryBudget
    func (in *RetryBudget) DeepCopy() *RetryBudget
    func (in *RetryBudget) DeepCopyInto(out *RetryBudget)
type RouteSpec
    func (in *RouteSpec) DeepCopy() *RouteSpec
    func (in *RouteSpec) DeepCopyInto(out *RouteSpec)
type ServiceProfile
    func (in *ServiceProfile) DeepCopy() *ServiceProfile
    func (in *ServiceProfile) DeepCopyInto(out *ServiceProfile)
    func (in *ServiceProfile) DeepCopyObject() runtime.Object
type ServiceProfileList
    func (in *ServiceProfileList) DeepCopy() *ServiceProfileList
    func (in *ServiceProfileList) DeepCopyInto(out *ServiceProfileList)
    func (in *ServiceProfileList) DeepCopyObject() runtime.Object
type ServiceProfileSpec
    func (in *ServiceProfileSpec) DeepCopy() *ServiceProfileSpec
    func (in *ServiceProfileSpec) DeepCopyInto(out *ServiceProfileSpec)
type WeightedDst
    func (in *WeightedDst) DeepCopy() *WeightedDst
    func (in *WeightedDst) DeepCopyInto(out *WeightedDst)

Package files

doc.go register.go types.go zz_generated.deepcopy.go

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
)

SchemeGroupVersion is the identifier for the API which includes the name of the group and the version of the API

var SchemeGroupVersion = schema.GroupVersion{
    Group:   serviceprofile.GroupName,
    Version: "v1alpha2",
}

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

type Range

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

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

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

RequestMatch describes the conditions under which to match a Route.

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"`
}

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

ResponseClass describes how to classify a response (e.g. success or failures).

type ResponseClass struct {
    Condition *ResponseMatch `json:"condition"`
    IsFailure bool           `json:"isFailure,omitempty"`
}

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

ResponseMatch describes the conditions under which to classify a response.

type ResponseMatch struct {
    All    []*ResponseMatch `json:"all,omitempty"`
    Not    *ResponseMatch   `json:"not,omitempty"`
    Any    []*ResponseMatch `json:"any,omitempty"`
    Status *Range           `json:"status,omitempty"`
}

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

RetryBudget describes the maximum number of retries that should be issued to this service.

type RetryBudget struct {
    RetryRatio          float32 `json:"retryRatio"`
    MinRetriesPerSecond uint32  `json:"minRetriesPerSecond"`
    TTL                 string  `json:"ttl"`
}

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

RouteSpec specifies a Route resource.

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"`
}

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

ServiceProfile describes a serviceProfile resource

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"`
}

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

ServiceProfileList is a list of ServiceProfile resources.

type ServiceProfileList struct {
    metav1.TypeMeta `json:",inline"`
    metav1.ListMeta `json:"metadata"`

    Items []ServiceProfile `json:"items"`
}

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

ServiceProfileSpec specifies a ServiceProfile resource.

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"`
}

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

WeightedDst is a weighted alternate destination.

type WeightedDst struct {
    Authority string            `json:"authority"`
    Weight    resource.Quantity `json:"weight"`
}

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.