v1alpha1

package
v1.14.4-rc.1 Latest Latest
Warning

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

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

Documentation

Overview

+kubebuilder:object:generate=true +groupName=dapr.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder is the scheme builder for resiliency.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is the func to add the resiliency scheme to the operator API.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: resiliency.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects.

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 ActorPolicyNames

type ActorPolicyNames struct {
	Timeout                 string `json:"timeout,omitempty" yaml:"timeout,omitempty"`
	Retry                   string `json:"retry,omitempty" yaml:"retry,omitempty"`
	CircuitBreaker          string `json:"circuitBreaker,omitempty" yaml:"circuitBreaker,omitempty"`
	CircuitBreakerScope     string `json:"circuitBreakerScope,omitempty" yaml:"circuitBreakerScope,omitempty"`
	CircuitBreakerCacheSize int    `json:"circuitBreakerCacheSize,omitempty" yaml:"circuitBreakerCacheSize,omitempty"`
}

func (*ActorPolicyNames) DeepCopy

func (in *ActorPolicyNames) DeepCopy() *ActorPolicyNames

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

func (*ActorPolicyNames) DeepCopyInto

func (in *ActorPolicyNames) DeepCopyInto(out *ActorPolicyNames)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CircuitBreaker

type CircuitBreaker struct {
	MaxRequests int    `json:"maxRequests,omitempty" yaml:"maxRequests,omitempty"`
	Interval    string `json:"interval,omitempty" yaml:"interval,omitempty"`
	Timeout     string `json:"timeout,omitempty" yaml:"timeout,omitempty"`
	Trip        string `json:"trip,omitempty" yaml:"trip,omitempty"`
}

func (*CircuitBreaker) DeepCopy

func (in *CircuitBreaker) DeepCopy() *CircuitBreaker

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

func (*CircuitBreaker) DeepCopyInto

func (in *CircuitBreaker) DeepCopyInto(out *CircuitBreaker)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ComponentPolicyNames

type ComponentPolicyNames struct {
	Inbound  PolicyNames `json:"inbound,omitempty" yaml:"inbound,omitempty"`
	Outbound PolicyNames `json:"outbound,omitempty" yaml:"outbound,omitempty"`
}

func (*ComponentPolicyNames) DeepCopy

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

func (*ComponentPolicyNames) DeepCopyInto

func (in *ComponentPolicyNames) DeepCopyInto(out *ComponentPolicyNames)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type EndpointPolicyNames

type EndpointPolicyNames struct {
	Timeout                 string `json:"timeout,omitempty" yaml:"timeout,omitempty"`
	Retry                   string `json:"retry,omitempty" yaml:"retry,omitempty"`
	CircuitBreaker          string `json:"circuitBreaker,omitempty" yaml:"circuitBreaker,omitempty"`
	CircuitBreakerCacheSize int    `json:"circuitBreakerCacheSize,omitempty" yaml:"circuitBreakerCacheSize,omitempty"`
}

func (*EndpointPolicyNames) DeepCopy

func (in *EndpointPolicyNames) DeepCopy() *EndpointPolicyNames

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

func (*EndpointPolicyNames) DeepCopyInto

func (in *EndpointPolicyNames) DeepCopyInto(out *EndpointPolicyNames)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Policies

type Policies struct {
	Timeouts        map[string]string         `json:"timeouts,omitempty" yaml:"timeouts,omitempty"`
	Retries         map[string]Retry          `json:"retries,omitempty" yaml:"retries,omitempty"`
	CircuitBreakers map[string]CircuitBreaker `json:"circuitBreakers,omitempty" yaml:"circuitBreakers,omitempty"`
}

func (*Policies) DeepCopy

func (in *Policies) DeepCopy() *Policies

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

func (*Policies) DeepCopyInto

func (in *Policies) DeepCopyInto(out *Policies)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PolicyNames

type PolicyNames struct {
	Timeout        string `json:"timeout,omitempty" yaml:"timeout,omitempty"`
	Retry          string `json:"retry,omitempty" yaml:"retry,omitempty"`
	CircuitBreaker string `json:"circuitBreaker,omitempty" yaml:"circuitBreaker,omitempty"`
}

func (*PolicyNames) DeepCopy

func (in *PolicyNames) DeepCopy() *PolicyNames

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

func (*PolicyNames) DeepCopyInto

func (in *PolicyNames) DeepCopyInto(out *PolicyNames)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Resiliency

type Resiliency struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +optional
	Spec ResiliencySpec `json:"spec,omitempty"`
	// +optional
	Scopes []string `json:"scopes,omitempty"`
}

func (*Resiliency) DeepCopy

func (in *Resiliency) DeepCopy() *Resiliency

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

func (*Resiliency) DeepCopyInto

func (in *Resiliency) DeepCopyInto(out *Resiliency)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Resiliency) DeepCopyObject

func (in *Resiliency) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (Resiliency) String added in v1.10.0

func (r Resiliency) String() string

String implements fmt.Stringer and is used for debugging. It returns the policy object encoded as JSON.

type ResiliencyList

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

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

ResiliencyList represents a list of `Resiliency` items. +kubebuilder:object:root=true

func (*ResiliencyList) DeepCopy

func (in *ResiliencyList) DeepCopy() *ResiliencyList

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

func (*ResiliencyList) DeepCopyInto

func (in *ResiliencyList) DeepCopyInto(out *ResiliencyList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResiliencyList) DeepCopyObject

func (in *ResiliencyList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ResiliencySpec

type ResiliencySpec struct {
	Policies Policies `json:"policies"`
	Targets  Targets  `json:"targets" yaml:"targets"`
}

func (*ResiliencySpec) DeepCopy

func (in *ResiliencySpec) DeepCopy() *ResiliencySpec

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

func (*ResiliencySpec) DeepCopyInto

func (in *ResiliencySpec) DeepCopyInto(out *ResiliencySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Retry

type Retry struct {
	Policy      string `json:"policy,omitempty" yaml:"policy,omitempty"`
	Duration    string `json:"duration,omitempty" yaml:"duration,omitempty"`
	MaxInterval string `json:"maxInterval,omitempty" yaml:"maxInterval,omitempty"`
	MaxRetries  *int   `json:"maxRetries,omitempty" yaml:"maxRetries,omitempty"`
}

func (*Retry) DeepCopy

func (in *Retry) DeepCopy() *Retry

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

func (*Retry) DeepCopyInto

func (in *Retry) DeepCopyInto(out *Retry)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Targets

type Targets struct {
	Apps       map[string]EndpointPolicyNames  `json:"apps,omitempty" yaml:"apps,omitempty"`
	Actors     map[string]ActorPolicyNames     `json:"actors,omitempty" yaml:"actors,omitempty"`
	Components map[string]ComponentPolicyNames `json:"components,omitempty" yaml:"components,omitempty"`
}

func (*Targets) DeepCopy

func (in *Targets) DeepCopy() *Targets

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

func (*Targets) DeepCopyInto

func (in *Targets) DeepCopyInto(out *Targets)

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