proto

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Code generated by protoc-gen-deepcopy. DO NOT EDIT.

Index

Constants

View Source
const (
	AllSubsetPublic = "AllSubsetPublic"
	ResourceAll     = "*"
)

Variables

View Source
var (
	BreakerState_name = map[int32]string{
		0: "OPENED",
		1: "CLOSED",
	}
	BreakerState_value = map[string]int32{
		"OPENED": 0,
		"CLOSED": 1,
	}
)

Enum value maps for BreakerState.

View Source
var (
	CircuitBreaker_Option_name = map[int32]string{
		0: "CREATE",
		1: "DELETE",
		2: "UPDATE",
		3: "CHECK",
		4: "RECOVER",
	}
	CircuitBreaker_Option_value = map[string]int32{
		"CREATE":  0,
		"DELETE":  1,
		"UPDATE":  2,
		"CHECK":   3,
		"RECOVER": 4,
	}
)

Enum value maps for CircuitBreaker_Option.

View Source
var (
	TrafficInterceptRule_ContentType_name = map[int32]string{
		0: "NORMAL",
		1: "REGEXP",
	}
	TrafficInterceptRule_ContentType_value = map[string]int32{
		"NORMAL": 0,
		"REGEXP": 1,
	}
)

Enum value maps for TrafficInterceptRule_ContentType.

View Source
var (
	TrafficInterceptRule_InterceptType_name = map[int32]string{
		0: "INTERCEPT_WHITELIST",
		1: "INTERCEPT_BLACKLIST",
	}
	TrafficInterceptRule_InterceptType_value = map[string]int32{
		"INTERCEPT_WHITELIST": 0,
		"INTERCEPT_BLACKLIST": 1,
	}
)

Enum value maps for TrafficInterceptRule_InterceptType.

View Source
var (
	RateLimiting_TriggerPolicy_name = map[int32]string{
		0: "TRIGGER_POLICY_NORMAL",
		1: "TRIGGER_POLICY_LIMITER_ONLY",
		2: "TRIGGER_POLICY_FORCE_OPENED",
		3: "TRIGGER_POLICY_FORCE_CLOSED",
	}
	RateLimiting_TriggerPolicy_value = map[string]int32{
		"TRIGGER_POLICY_NORMAL":       0,
		"TRIGGER_POLICY_LIMITER_ONLY": 1,
		"TRIGGER_POLICY_FORCE_OPENED": 2,
		"TRIGGER_POLICY_FORCE_CLOSED": 3,
	}
)

Enum value maps for RateLimiting_TriggerPolicy.

View Source
var (
	RateLimiting_RecoverType_name = map[int32]string{
		0: "RECOVER_POLICY_MANUAL",
		1: "RECOVER_POLICY_SLEEPING_WINDOW",
	}
	RateLimiting_RecoverType_value = map[string]int32{
		"RECOVER_POLICY_MANUAL":          0,
		"RECOVER_POLICY_SLEEPING_WINDOW": 1,
	}
)

Enum value maps for RateLimiting_RecoverType.

View Source
var (
	DefaultHttpClient = &http.Client{
		Transport: &http2.Transport{
			AllowHTTP: true,
			DialTLSContext: func(ctx context.Context, network, addr string, _ *tls.Config) (net.Conn, error) {

				d := net.Dialer{Timeout: 5 * time.Second}
				return d.DialContext(ctx, network, addr)
			},
		},
	}
)
View Source
var File_pkg_apis_ctrlmesh_proto_ctrlmesh_proto protoreflect.FileDescriptor
View Source
var File_pkg_apis_ctrlmesh_proto_throttling_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type APIGroupResource

type APIGroupResource struct {
	ApiGroups []string `protobuf:"bytes,1,rep,name=apiGroups,proto3" json:"apiGroups,omitempty"`
	Resources []string `protobuf:"bytes,2,rep,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}

func (*APIGroupResource) DeepCopy

func (in *APIGroupResource) DeepCopy() *APIGroupResource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIGroupResource. Required by controller-gen.

func (*APIGroupResource) DeepCopyInterface

func (in *APIGroupResource) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new APIGroupResource. Required by controller-gen.

func (*APIGroupResource) DeepCopyInto

func (in *APIGroupResource) DeepCopyInto(out *APIGroupResource)

DeepCopyInto supports using APIGroupResource within kubernetes types, where deepcopy-gen is used.

func (*APIGroupResource) Descriptor deprecated

func (*APIGroupResource) Descriptor() ([]byte, []int)

Deprecated: Use APIGroupResource.ProtoReflect.Descriptor instead.

func (*APIGroupResource) GetApiGroups

func (x *APIGroupResource) GetApiGroups() []string

func (*APIGroupResource) GetResources

func (x *APIGroupResource) GetResources() []string

func (*APIGroupResource) ProtoMessage

func (*APIGroupResource) ProtoMessage()

func (*APIGroupResource) ProtoReflect

func (x *APIGroupResource) ProtoReflect() protoreflect.Message

func (*APIGroupResource) Reset

func (x *APIGroupResource) Reset()

func (*APIGroupResource) String

func (x *APIGroupResource) String() string

type BreakerState

type BreakerState int32
const (
	BreakerState_OPENED BreakerState = 0
	BreakerState_CLOSED BreakerState = 1
)

func (BreakerState) Descriptor

func (BreakerState) Enum

func (x BreakerState) Enum() *BreakerState

func (BreakerState) EnumDescriptor deprecated

func (BreakerState) EnumDescriptor() ([]byte, []int)

Deprecated: Use BreakerState.Descriptor instead.

func (BreakerState) Number

func (BreakerState) String

func (x BreakerState) String() string

func (BreakerState) Type

type Bucket

type Bucket struct {
	Burst    uint32 `protobuf:"varint,1,opt,name=burst,proto3" json:"burst,omitempty"`
	Interval string `protobuf:"bytes,2,opt,name=interval,proto3" json:"interval,omitempty"`
	Limit    uint32 `protobuf:"varint,3,opt,name=Limit,proto3" json:"Limit,omitempty"`
	// contains filtered or unexported fields
}

func (*Bucket) DeepCopy

func (in *Bucket) DeepCopy() *Bucket

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Bucket. Required by controller-gen.

func (*Bucket) DeepCopyInterface

func (in *Bucket) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Bucket. Required by controller-gen.

func (*Bucket) DeepCopyInto

func (in *Bucket) DeepCopyInto(out *Bucket)

DeepCopyInto supports using Bucket within kubernetes types, where deepcopy-gen is used.

func (*Bucket) Descriptor deprecated

func (*Bucket) Descriptor() ([]byte, []int)

Deprecated: Use Bucket.ProtoReflect.Descriptor instead.

func (*Bucket) GetBurst

func (x *Bucket) GetBurst() uint32

func (*Bucket) GetInterval

func (x *Bucket) GetInterval() string

func (*Bucket) GetLimit

func (x *Bucket) GetLimit() uint32

func (*Bucket) ProtoMessage

func (*Bucket) ProtoMessage()

func (*Bucket) ProtoReflect

func (x *Bucket) ProtoReflect() protoreflect.Message

func (*Bucket) Reset

func (x *Bucket) Reset()

func (*Bucket) String

func (x *Bucket) String() string

type CircuitBreaker

type CircuitBreaker struct {
	Option                CircuitBreaker_Option   `protobuf:"varint,1,opt,name=option,proto3,enum=proto.CircuitBreaker_Option" json:"option,omitempty"`
	TrafficInterceptRules []*TrafficInterceptRule `protobuf:"bytes,2,rep,name=trafficInterceptRules,proto3" json:"trafficInterceptRules,omitempty"`
	RateLimitings         []*RateLimiting         `protobuf:"bytes,3,rep,name=rateLimitings,proto3" json:"rateLimitings,omitempty"`
	ConfigHash            string                  `protobuf:"bytes,4,opt,name=configHash,proto3" json:"configHash,omitempty"`
	Name                  string                  `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*CircuitBreaker) DeepCopy

func (in *CircuitBreaker) DeepCopy() *CircuitBreaker

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CircuitBreaker. Required by controller-gen.

func (*CircuitBreaker) DeepCopyInterface

func (in *CircuitBreaker) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new CircuitBreaker. Required by controller-gen.

func (*CircuitBreaker) DeepCopyInto

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

DeepCopyInto supports using CircuitBreaker within kubernetes types, where deepcopy-gen is used.

func (*CircuitBreaker) Descriptor deprecated

func (*CircuitBreaker) Descriptor() ([]byte, []int)

Deprecated: Use CircuitBreaker.ProtoReflect.Descriptor instead.

func (*CircuitBreaker) GetConfigHash

func (x *CircuitBreaker) GetConfigHash() string

func (*CircuitBreaker) GetName

func (x *CircuitBreaker) GetName() string

func (*CircuitBreaker) GetOption

func (x *CircuitBreaker) GetOption() CircuitBreaker_Option

func (*CircuitBreaker) GetRateLimitings

func (x *CircuitBreaker) GetRateLimitings() []*RateLimiting

func (*CircuitBreaker) GetTrafficInterceptRules

func (x *CircuitBreaker) GetTrafficInterceptRules() []*TrafficInterceptRule

func (*CircuitBreaker) ProtoMessage

func (*CircuitBreaker) ProtoMessage()

func (*CircuitBreaker) ProtoReflect

func (x *CircuitBreaker) ProtoReflect() protoreflect.Message

func (*CircuitBreaker) Reset

func (x *CircuitBreaker) Reset()

func (*CircuitBreaker) String

func (x *CircuitBreaker) String() string

type CircuitBreaker_Option

type CircuitBreaker_Option int32
const (
	CircuitBreaker_CREATE  CircuitBreaker_Option = 0
	CircuitBreaker_DELETE  CircuitBreaker_Option = 1
	CircuitBreaker_UPDATE  CircuitBreaker_Option = 2
	CircuitBreaker_CHECK   CircuitBreaker_Option = 3
	CircuitBreaker_RECOVER CircuitBreaker_Option = 4
)

func (CircuitBreaker_Option) Descriptor

func (CircuitBreaker_Option) Enum

func (CircuitBreaker_Option) EnumDescriptor deprecated

func (CircuitBreaker_Option) EnumDescriptor() ([]byte, []int)

Deprecated: Use CircuitBreaker_Option.Descriptor instead.

func (CircuitBreaker_Option) Number

func (CircuitBreaker_Option) String

func (x CircuitBreaker_Option) String() string

func (CircuitBreaker_Option) Type

type ConfigResp

type ConfigResp struct {
	Success          bool                `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Message          string              `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	LimitingSnapshot []*LimitingSnapshot `protobuf:"bytes,3,rep,name=limitingSnapshot,proto3" json:"limitingSnapshot,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigResp) DeepCopy

func (in *ConfigResp) DeepCopy() *ConfigResp

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigResp. Required by controller-gen.

func (*ConfigResp) DeepCopyInterface

func (in *ConfigResp) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ConfigResp. Required by controller-gen.

func (*ConfigResp) DeepCopyInto

func (in *ConfigResp) DeepCopyInto(out *ConfigResp)

DeepCopyInto supports using ConfigResp within kubernetes types, where deepcopy-gen is used.

func (*ConfigResp) Descriptor deprecated

func (*ConfigResp) Descriptor() ([]byte, []int)

Deprecated: Use ConfigResp.ProtoReflect.Descriptor instead.

func (*ConfigResp) GetLimitingSnapshot

func (x *ConfigResp) GetLimitingSnapshot() []*LimitingSnapshot

func (*ConfigResp) GetMessage

func (x *ConfigResp) GetMessage() string

func (*ConfigResp) GetSuccess

func (x *ConfigResp) GetSuccess() bool

func (*ConfigResp) ProtoMessage

func (*ConfigResp) ProtoMessage()

func (*ConfigResp) ProtoReflect

func (x *ConfigResp) ProtoReflect() protoreflect.Message

func (*ConfigResp) Reset

func (x *ConfigResp) Reset()

func (*ConfigResp) String

func (x *ConfigResp) String() string

type Endpoint

type Endpoint struct {
	Name      string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Ip        string   `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
	ShardName string   `protobuf:"bytes,3,opt,name=shardName,proto3" json:"shardName,omitempty"`
	Limits    []*Limit `protobuf:"bytes,4,rep,name=limits,proto3" json:"limits,omitempty"`
	// contains filtered or unexported fields
}

func (*Endpoint) DeepCopy

func (in *Endpoint) DeepCopy() *Endpoint

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Endpoint. Required by controller-gen.

func (*Endpoint) DeepCopyInterface

func (in *Endpoint) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Endpoint. Required by controller-gen.

func (*Endpoint) DeepCopyInto

func (in *Endpoint) DeepCopyInto(out *Endpoint)

DeepCopyInto supports using Endpoint within kubernetes types, where deepcopy-gen is used.

func (*Endpoint) Descriptor deprecated

func (*Endpoint) Descriptor() ([]byte, []int)

Deprecated: Use Endpoint.ProtoReflect.Descriptor instead.

func (*Endpoint) GetIp

func (x *Endpoint) GetIp() string

func (*Endpoint) GetLimits

func (x *Endpoint) GetLimits() []*Limit

func (*Endpoint) GetName

func (x *Endpoint) GetName() string

func (*Endpoint) GetShardName

func (x *Endpoint) GetShardName() string

func (*Endpoint) ProtoMessage

func (*Endpoint) ProtoMessage()

func (*Endpoint) ProtoReflect

func (x *Endpoint) ProtoReflect() protoreflect.Message

func (*Endpoint) Reset

func (x *Endpoint) Reset()

func (*Endpoint) String

func (x *Endpoint) String() string

type InternalSpec

type InternalSpec struct {
	*ProxySpec
	// contains filtered or unexported fields
}

func ConvertProtoSpecToInternal

func ConvertProtoSpecToInternal(protoSpec *ProxySpec) *InternalSpec

func (*InternalSpec) GetMatchedSubsetEndpoint

func (is *InternalSpec) GetMatchedSubsetEndpoint(ns string, gr schema.GroupResource) (ignore bool, self bool, hosts []string)

func (*InternalSpec) GetObjectSelector

func (is *InternalSpec) GetObjectSelector(gr schema.GroupResource) (sel *metav1.LabelSelector)

type LeaderElectionState

type LeaderElectionState struct {
	Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
	IsLeader bool   `protobuf:"varint,2,opt,name=isLeader,proto3" json:"isLeader,omitempty"`
	// contains filtered or unexported fields
}

func (*LeaderElectionState) DeepCopy

func (in *LeaderElectionState) DeepCopy() *LeaderElectionState

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeaderElectionState. Required by controller-gen.

func (*LeaderElectionState) DeepCopyInterface

func (in *LeaderElectionState) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new LeaderElectionState. Required by controller-gen.

func (*LeaderElectionState) DeepCopyInto

func (in *LeaderElectionState) DeepCopyInto(out *LeaderElectionState)

DeepCopyInto supports using LeaderElectionState within kubernetes types, where deepcopy-gen is used.

func (*LeaderElectionState) Descriptor deprecated

func (*LeaderElectionState) Descriptor() ([]byte, []int)

Deprecated: Use LeaderElectionState.ProtoReflect.Descriptor instead.

func (*LeaderElectionState) GetIdentity

func (x *LeaderElectionState) GetIdentity() string

func (*LeaderElectionState) GetIsLeader

func (x *LeaderElectionState) GetIsLeader() bool

func (*LeaderElectionState) ProtoMessage

func (*LeaderElectionState) ProtoMessage()

func (*LeaderElectionState) ProtoReflect

func (x *LeaderElectionState) ProtoReflect() protoreflect.Message

func (*LeaderElectionState) Reset

func (x *LeaderElectionState) Reset()

func (*LeaderElectionState) String

func (x *LeaderElectionState) String() string

type Limit

type Limit struct {
	ObjectSelector string              `protobuf:"bytes,1,opt,name=objectSelector,proto3" json:"objectSelector,omitempty"`
	Resources      []*APIGroupResource `protobuf:"bytes,2,rep,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}

func (*Limit) DeepCopy

func (in *Limit) DeepCopy() *Limit

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Limit. Required by controller-gen.

func (*Limit) DeepCopyInterface

func (in *Limit) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Limit. Required by controller-gen.

func (*Limit) DeepCopyInto

func (in *Limit) DeepCopyInto(out *Limit)

DeepCopyInto supports using Limit within kubernetes types, where deepcopy-gen is used.

func (*Limit) Descriptor deprecated

func (*Limit) Descriptor() ([]byte, []int)

Deprecated: Use Limit.ProtoReflect.Descriptor instead.

func (*Limit) GetObjectSelector

func (x *Limit) GetObjectSelector() string

func (*Limit) GetResources

func (x *Limit) GetResources() []*APIGroupResource

func (*Limit) ProtoMessage

func (*Limit) ProtoMessage()

func (*Limit) ProtoReflect

func (x *Limit) ProtoReflect() protoreflect.Message

func (*Limit) Reset

func (x *Limit) Reset()

func (*Limit) String

func (x *Limit) String() string

type LimitingSnapshot

type LimitingSnapshot struct {
	LimitingName       string       `protobuf:"bytes,1,opt,name=limitingName,proto3" json:"limitingName,omitempty"`
	State              BreakerState `protobuf:"varint,2,opt,name=state,proto3,enum=proto.BreakerState" json:"state,omitempty"`
	RecoverTime        *v1.Time     `protobuf:"bytes,3,opt,name=recoverTime,proto3" json:"recoverTime,omitempty"`
	LastTransitionTime *v1.Time     `protobuf:"bytes,4,opt,name=lastTransitionTime,proto3" json:"lastTransitionTime,omitempty"`
	// contains filtered or unexported fields
}

func (*LimitingSnapshot) DeepCopy

func (in *LimitingSnapshot) DeepCopy() *LimitingSnapshot

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LimitingSnapshot. Required by controller-gen.

func (*LimitingSnapshot) DeepCopyInterface

func (in *LimitingSnapshot) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new LimitingSnapshot. Required by controller-gen.

func (*LimitingSnapshot) DeepCopyInto

func (in *LimitingSnapshot) DeepCopyInto(out *LimitingSnapshot)

DeepCopyInto supports using LimitingSnapshot within kubernetes types, where deepcopy-gen is used.

func (*LimitingSnapshot) Descriptor deprecated

func (*LimitingSnapshot) Descriptor() ([]byte, []int)

Deprecated: Use LimitingSnapshot.ProtoReflect.Descriptor instead.

func (*LimitingSnapshot) GetLastTransitionTime

func (x *LimitingSnapshot) GetLastTransitionTime() *v1.Time

func (*LimitingSnapshot) GetLimitingName

func (x *LimitingSnapshot) GetLimitingName() string

func (*LimitingSnapshot) GetRecoverTime

func (x *LimitingSnapshot) GetRecoverTime() *v1.Time

func (*LimitingSnapshot) GetState

func (x *LimitingSnapshot) GetState() BreakerState

func (*LimitingSnapshot) ProtoMessage

func (*LimitingSnapshot) ProtoMessage()

func (*LimitingSnapshot) ProtoReflect

func (x *LimitingSnapshot) ProtoReflect() protoreflect.Message

func (*LimitingSnapshot) Reset

func (x *LimitingSnapshot) Reset()

func (*LimitingSnapshot) String

func (x *LimitingSnapshot) String() string

type MetaState

type MetaState struct {
	ExpectedHash     string `protobuf:"bytes,1,opt,name=expectedHash,proto3" json:"expectedHash,omitempty"`
	CurrentHash      string `protobuf:"bytes,2,opt,name=currentHash,proto3" json:"currentHash,omitempty"`
	HashUnloadReason string `protobuf:"bytes,3,opt,name=hashUnloadReason,proto3" json:"hashUnloadReason,omitempty"`
	// contains filtered or unexported fields
}

func (*MetaState) DeepCopy

func (in *MetaState) DeepCopy() *MetaState

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetaState. Required by controller-gen.

func (*MetaState) DeepCopyInterface

func (in *MetaState) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new MetaState. Required by controller-gen.

func (*MetaState) DeepCopyInto

func (in *MetaState) DeepCopyInto(out *MetaState)

DeepCopyInto supports using MetaState within kubernetes types, where deepcopy-gen is used.

func (*MetaState) Descriptor deprecated

func (*MetaState) Descriptor() ([]byte, []int)

Deprecated: Use MetaState.ProtoReflect.Descriptor instead.

func (*MetaState) GetCurrentHash

func (x *MetaState) GetCurrentHash() string

func (*MetaState) GetExpectedHash

func (x *MetaState) GetExpectedHash() string

func (*MetaState) GetHashUnloadReason

func (x *MetaState) GetHashUnloadReason() string

func (*MetaState) ProtoMessage

func (*MetaState) ProtoMessage()

func (*MetaState) ProtoReflect

func (x *MetaState) ProtoReflect() protoreflect.Message

func (*MetaState) Reset

func (x *MetaState) Reset()

func (*MetaState) String

func (x *MetaState) String() string

type ProxySpec

type ProxySpec struct {
	Meta      *SpecMeta   `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	Limits    []*Limit    `protobuf:"bytes,2,rep,name=limits,proto3" json:"limits,omitempty"`
	Endpoints []*Endpoint `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	// contains filtered or unexported fields
}

func (*ProxySpec) DeepCopy

func (in *ProxySpec) DeepCopy() *ProxySpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxySpec. Required by controller-gen.

func (*ProxySpec) DeepCopyInterface

func (in *ProxySpec) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ProxySpec. Required by controller-gen.

func (*ProxySpec) DeepCopyInto

func (in *ProxySpec) DeepCopyInto(out *ProxySpec)

DeepCopyInto supports using ProxySpec within kubernetes types, where deepcopy-gen is used.

func (*ProxySpec) Descriptor deprecated

func (*ProxySpec) Descriptor() ([]byte, []int)

Deprecated: Use ProxySpec.ProtoReflect.Descriptor instead.

func (*ProxySpec) GetEndpoints

func (x *ProxySpec) GetEndpoints() []*Endpoint

func (*ProxySpec) GetLimits

func (x *ProxySpec) GetLimits() []*Limit

func (*ProxySpec) GetMeta

func (x *ProxySpec) GetMeta() *SpecMeta

func (*ProxySpec) ProtoMessage

func (*ProxySpec) ProtoMessage()

func (*ProxySpec) ProtoReflect

func (x *ProxySpec) ProtoReflect() protoreflect.Message

func (*ProxySpec) Reset

func (x *ProxySpec) Reset()

func (*ProxySpec) String

func (x *ProxySpec) String() string

type ProxyStatus

type ProxyStatus struct {
	SelfInfo            *SelfInfo            `protobuf:"bytes,1,opt,name=selfInfo,proto3" json:"selfInfo,omitempty"`
	MetaState           *MetaState           `protobuf:"bytes,2,opt,name=metaState,proto3" json:"metaState,omitempty"`
	LeaderElectionState *LeaderElectionState `protobuf:"bytes,3,opt,name=leaderElectionState,proto3" json:"leaderElectionState,omitempty"`
	// contains filtered or unexported fields
}

func (*ProxyStatus) DeepCopy

func (in *ProxyStatus) DeepCopy() *ProxyStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxyStatus. Required by controller-gen.

func (*ProxyStatus) DeepCopyInterface

func (in *ProxyStatus) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ProxyStatus. Required by controller-gen.

func (*ProxyStatus) DeepCopyInto

func (in *ProxyStatus) DeepCopyInto(out *ProxyStatus)

DeepCopyInto supports using ProxyStatus within kubernetes types, where deepcopy-gen is used.

func (*ProxyStatus) Descriptor deprecated

func (*ProxyStatus) Descriptor() ([]byte, []int)

Deprecated: Use ProxyStatus.ProtoReflect.Descriptor instead.

func (*ProxyStatus) GetLeaderElectionState

func (x *ProxyStatus) GetLeaderElectionState() *LeaderElectionState

func (*ProxyStatus) GetMetaState

func (x *ProxyStatus) GetMetaState() *MetaState

func (*ProxyStatus) GetSelfInfo

func (x *ProxyStatus) GetSelfInfo() *SelfInfo

func (*ProxyStatus) ProtoMessage

func (*ProxyStatus) ProtoMessage()

func (*ProxyStatus) ProtoReflect

func (x *ProxyStatus) ProtoReflect() protoreflect.Message

func (*ProxyStatus) Reset

func (x *ProxyStatus) Reset()

func (*ProxyStatus) String

func (x *ProxyStatus) String() string

type RateLimiting

type RateLimiting struct {
	Name           string                      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	ResourceRules  []*ResourceRule             `protobuf:"bytes,2,rep,name=resourceRules,proto3" json:"resourceRules,omitempty"`
	RestRules      []*RestRules                `protobuf:"bytes,3,rep,name=restRules,proto3" json:"restRules,omitempty"`
	Bucket         *Bucket                     `protobuf:"bytes,4,opt,name=bucket,proto3" json:"bucket,omitempty"`
	TriggerPolicy  RateLimiting_TriggerPolicy  `protobuf:"varint,5,opt,name=triggerPolicy,proto3,enum=proto.RateLimiting_TriggerPolicy" json:"triggerPolicy,omitempty"`
	RecoverPolicy  *RateLimiting_RecoverPolicy `protobuf:"bytes,6,opt,name=recoverPolicy,proto3" json:"recoverPolicy,omitempty"`
	ValidatePolicy string                      `protobuf:"bytes,7,opt,name=validatePolicy,proto3" json:"validatePolicy,omitempty"`
	Properties     map[string]string           `` /* 161-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*RateLimiting) DeepCopy

func (in *RateLimiting) DeepCopy() *RateLimiting

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RateLimiting. Required by controller-gen.

func (*RateLimiting) DeepCopyInterface

func (in *RateLimiting) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new RateLimiting. Required by controller-gen.

func (*RateLimiting) DeepCopyInto

func (in *RateLimiting) DeepCopyInto(out *RateLimiting)

DeepCopyInto supports using RateLimiting within kubernetes types, where deepcopy-gen is used.

func (*RateLimiting) Descriptor deprecated

func (*RateLimiting) Descriptor() ([]byte, []int)

Deprecated: Use RateLimiting.ProtoReflect.Descriptor instead.

func (*RateLimiting) GetBucket

func (x *RateLimiting) GetBucket() *Bucket

func (*RateLimiting) GetName

func (x *RateLimiting) GetName() string

func (*RateLimiting) GetProperties

func (x *RateLimiting) GetProperties() map[string]string

func (*RateLimiting) GetRecoverPolicy

func (x *RateLimiting) GetRecoverPolicy() *RateLimiting_RecoverPolicy

func (*RateLimiting) GetResourceRules

func (x *RateLimiting) GetResourceRules() []*ResourceRule

func (*RateLimiting) GetRestRules

func (x *RateLimiting) GetRestRules() []*RestRules

func (*RateLimiting) GetTriggerPolicy

func (x *RateLimiting) GetTriggerPolicy() RateLimiting_TriggerPolicy

func (*RateLimiting) GetValidatePolicy

func (x *RateLimiting) GetValidatePolicy() string

func (*RateLimiting) ProtoMessage

func (*RateLimiting) ProtoMessage()

func (*RateLimiting) ProtoReflect

func (x *RateLimiting) ProtoReflect() protoreflect.Message

func (*RateLimiting) Reset

func (x *RateLimiting) Reset()

func (*RateLimiting) String

func (x *RateLimiting) String() string

type RateLimiting_RecoverPolicy

type RateLimiting_RecoverPolicy struct {
	Type               RateLimiting_RecoverType `protobuf:"varint,1,opt,name=type,proto3,enum=proto.RateLimiting_RecoverType" json:"type,omitempty"`
	SleepingWindowSize string                   `protobuf:"bytes,2,opt,name=sleepingWindowSize,proto3" json:"sleepingWindowSize,omitempty"`
	// contains filtered or unexported fields
}

func (*RateLimiting_RecoverPolicy) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RateLimiting_RecoverPolicy. Required by controller-gen.

func (*RateLimiting_RecoverPolicy) DeepCopyInterface

func (in *RateLimiting_RecoverPolicy) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new RateLimiting_RecoverPolicy. Required by controller-gen.

func (*RateLimiting_RecoverPolicy) DeepCopyInto

DeepCopyInto supports using RateLimiting_RecoverPolicy within kubernetes types, where deepcopy-gen is used.

func (*RateLimiting_RecoverPolicy) Descriptor deprecated

func (*RateLimiting_RecoverPolicy) Descriptor() ([]byte, []int)

Deprecated: Use RateLimiting_RecoverPolicy.ProtoReflect.Descriptor instead.

func (*RateLimiting_RecoverPolicy) GetSleepingWindowSize

func (x *RateLimiting_RecoverPolicy) GetSleepingWindowSize() string

func (*RateLimiting_RecoverPolicy) GetType

func (*RateLimiting_RecoverPolicy) ProtoMessage

func (*RateLimiting_RecoverPolicy) ProtoMessage()

func (*RateLimiting_RecoverPolicy) ProtoReflect

func (*RateLimiting_RecoverPolicy) Reset

func (x *RateLimiting_RecoverPolicy) Reset()

func (*RateLimiting_RecoverPolicy) String

func (x *RateLimiting_RecoverPolicy) String() string

type RateLimiting_RecoverType

type RateLimiting_RecoverType int32
const (
	RateLimiting_RECOVER_POLICY_MANUAL          RateLimiting_RecoverType = 0
	RateLimiting_RECOVER_POLICY_SLEEPING_WINDOW RateLimiting_RecoverType = 1
)

func (RateLimiting_RecoverType) Descriptor

func (RateLimiting_RecoverType) Enum

func (RateLimiting_RecoverType) EnumDescriptor deprecated

func (RateLimiting_RecoverType) EnumDescriptor() ([]byte, []int)

Deprecated: Use RateLimiting_RecoverType.Descriptor instead.

func (RateLimiting_RecoverType) Number

func (RateLimiting_RecoverType) String

func (x RateLimiting_RecoverType) String() string

func (RateLimiting_RecoverType) Type

type RateLimiting_TriggerPolicy

type RateLimiting_TriggerPolicy int32
const (
	RateLimiting_TRIGGER_POLICY_NORMAL       RateLimiting_TriggerPolicy = 0
	RateLimiting_TRIGGER_POLICY_LIMITER_ONLY RateLimiting_TriggerPolicy = 1
	RateLimiting_TRIGGER_POLICY_FORCE_OPENED RateLimiting_TriggerPolicy = 2
	RateLimiting_TRIGGER_POLICY_FORCE_CLOSED RateLimiting_TriggerPolicy = 3
)

func (RateLimiting_TriggerPolicy) Descriptor

func (RateLimiting_TriggerPolicy) Enum

func (RateLimiting_TriggerPolicy) EnumDescriptor deprecated

func (RateLimiting_TriggerPolicy) EnumDescriptor() ([]byte, []int)

Deprecated: Use RateLimiting_TriggerPolicy.Descriptor instead.

func (RateLimiting_TriggerPolicy) Number

func (RateLimiting_TriggerPolicy) String

func (RateLimiting_TriggerPolicy) Type

type ResourceRequest

type ResourceRequest struct {
	GR             schema.GroupResource  `json:"GR,omitempty"`
	ObjectSelector *metav1.LabelSelector `json:"objectSelector,omitempty"`
}

type ResourceRule

type ResourceRule struct {
	ApiGroups  []string `protobuf:"bytes,1,rep,name=apiGroups,proto3" json:"apiGroups,omitempty"`
	Resources  []string `protobuf:"bytes,2,rep,name=resources,proto3" json:"resources,omitempty"`
	Verbs      []string `protobuf:"bytes,3,rep,name=verbs,proto3" json:"verbs,omitempty"`
	Namespaces []string `protobuf:"bytes,4,rep,name=namespaces,proto3" json:"namespaces,omitempty"`
	// contains filtered or unexported fields
}

func (*ResourceRule) DeepCopy

func (in *ResourceRule) DeepCopy() *ResourceRule

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRule. Required by controller-gen.

func (*ResourceRule) DeepCopyInterface

func (in *ResourceRule) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRule. Required by controller-gen.

func (*ResourceRule) DeepCopyInto

func (in *ResourceRule) DeepCopyInto(out *ResourceRule)

DeepCopyInto supports using ResourceRule within kubernetes types, where deepcopy-gen is used.

func (*ResourceRule) Descriptor deprecated

func (*ResourceRule) Descriptor() ([]byte, []int)

Deprecated: Use ResourceRule.ProtoReflect.Descriptor instead.

func (*ResourceRule) GetApiGroups

func (x *ResourceRule) GetApiGroups() []string

func (*ResourceRule) GetNamespaces

func (x *ResourceRule) GetNamespaces() []string

func (*ResourceRule) GetResources

func (x *ResourceRule) GetResources() []string

func (*ResourceRule) GetVerbs

func (x *ResourceRule) GetVerbs() []string

func (*ResourceRule) ProtoMessage

func (*ResourceRule) ProtoMessage()

func (*ResourceRule) ProtoReflect

func (x *ResourceRule) ProtoReflect() protoreflect.Message

func (*ResourceRule) Reset

func (x *ResourceRule) Reset()

func (*ResourceRule) String

func (x *ResourceRule) String() string

type RestRules

type RestRules struct {
	Url    string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
	// contains filtered or unexported fields
}

func (*RestRules) DeepCopy

func (in *RestRules) DeepCopy() *RestRules

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestRules. Required by controller-gen.

func (*RestRules) DeepCopyInterface

func (in *RestRules) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new RestRules. Required by controller-gen.

func (*RestRules) DeepCopyInto

func (in *RestRules) DeepCopyInto(out *RestRules)

DeepCopyInto supports using RestRules within kubernetes types, where deepcopy-gen is used.

func (*RestRules) Descriptor deprecated

func (*RestRules) Descriptor() ([]byte, []int)

Deprecated: Use RestRules.ProtoReflect.Descriptor instead.

func (*RestRules) GetMethod

func (x *RestRules) GetMethod() string

func (*RestRules) GetUrl

func (x *RestRules) GetUrl() string

func (*RestRules) ProtoMessage

func (*RestRules) ProtoMessage()

func (*RestRules) ProtoReflect

func (x *RestRules) ProtoReflect() protoreflect.Message

func (*RestRules) Reset

func (x *RestRules) Reset()

func (*RestRules) String

func (x *RestRules) String() string

type SelfInfo

type SelfInfo struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*SelfInfo) DeepCopy

func (in *SelfInfo) DeepCopy() *SelfInfo

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfInfo. Required by controller-gen.

func (*SelfInfo) DeepCopyInterface

func (in *SelfInfo) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new SelfInfo. Required by controller-gen.

func (*SelfInfo) DeepCopyInto

func (in *SelfInfo) DeepCopyInto(out *SelfInfo)

DeepCopyInto supports using SelfInfo within kubernetes types, where deepcopy-gen is used.

func (*SelfInfo) Descriptor deprecated

func (*SelfInfo) Descriptor() ([]byte, []int)

Deprecated: Use SelfInfo.ProtoReflect.Descriptor instead.

func (*SelfInfo) GetName

func (x *SelfInfo) GetName() string

func (*SelfInfo) GetNamespace

func (x *SelfInfo) GetNamespace() string

func (*SelfInfo) ProtoMessage

func (*SelfInfo) ProtoMessage()

func (*SelfInfo) ProtoReflect

func (x *SelfInfo) ProtoReflect() protoreflect.Message

func (*SelfInfo) Reset

func (x *SelfInfo) Reset()

func (*SelfInfo) String

func (x *SelfInfo) String() string

type SpecMeta

type SpecMeta struct {
	ShardName string `protobuf:"bytes,1,opt,name=shardName,proto3" json:"shardName,omitempty"`
	Hash      string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*SpecMeta) DeepCopy

func (in *SpecMeta) DeepCopy() *SpecMeta

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpecMeta. Required by controller-gen.

func (*SpecMeta) DeepCopyInterface

func (in *SpecMeta) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new SpecMeta. Required by controller-gen.

func (*SpecMeta) DeepCopyInto

func (in *SpecMeta) DeepCopyInto(out *SpecMeta)

DeepCopyInto supports using SpecMeta within kubernetes types, where deepcopy-gen is used.

func (*SpecMeta) Descriptor deprecated

func (*SpecMeta) Descriptor() ([]byte, []int)

Deprecated: Use SpecMeta.ProtoReflect.Descriptor instead.

func (*SpecMeta) GetHash

func (x *SpecMeta) GetHash() string

func (*SpecMeta) GetShardName

func (x *SpecMeta) GetShardName() string

func (*SpecMeta) ProtoMessage

func (*SpecMeta) ProtoMessage()

func (*SpecMeta) ProtoReflect

func (x *SpecMeta) ProtoReflect() protoreflect.Message

func (*SpecMeta) Reset

func (x *SpecMeta) Reset()

func (*SpecMeta) String

func (x *SpecMeta) String() string

type TrafficInterceptRule

type TrafficInterceptRule struct {
	Name          string                             `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	InterceptType TrafficInterceptRule_InterceptType `` /* 126-byte string literal not displayed */
	ContentType   TrafficInterceptRule_ContentType   `protobuf:"varint,3,opt,name=contentType,proto3,enum=proto.TrafficInterceptRule_ContentType" json:"contentType,omitempty"`
	Contents      []string                           `protobuf:"bytes,4,rep,name=contents,proto3" json:"contents,omitempty"`
	Methods       []string                           `protobuf:"bytes,5,rep,name=methods,proto3" json:"methods,omitempty"`
	// contains filtered or unexported fields
}

func (*TrafficInterceptRule) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrafficInterceptRule. Required by controller-gen.

func (*TrafficInterceptRule) DeepCopyInterface

func (in *TrafficInterceptRule) DeepCopyInterface() interface{}

DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new TrafficInterceptRule. Required by controller-gen.

func (*TrafficInterceptRule) DeepCopyInto

func (in *TrafficInterceptRule) DeepCopyInto(out *TrafficInterceptRule)

DeepCopyInto supports using TrafficInterceptRule within kubernetes types, where deepcopy-gen is used.

func (*TrafficInterceptRule) Descriptor deprecated

func (*TrafficInterceptRule) Descriptor() ([]byte, []int)

Deprecated: Use TrafficInterceptRule.ProtoReflect.Descriptor instead.

func (*TrafficInterceptRule) GetContentType

func (*TrafficInterceptRule) GetContents

func (x *TrafficInterceptRule) GetContents() []string

func (*TrafficInterceptRule) GetInterceptType

func (*TrafficInterceptRule) GetMethods

func (x *TrafficInterceptRule) GetMethods() []string

func (*TrafficInterceptRule) GetName

func (x *TrafficInterceptRule) GetName() string

func (*TrafficInterceptRule) ProtoMessage

func (*TrafficInterceptRule) ProtoMessage()

func (*TrafficInterceptRule) ProtoReflect

func (x *TrafficInterceptRule) ProtoReflect() protoreflect.Message

func (*TrafficInterceptRule) Reset

func (x *TrafficInterceptRule) Reset()

func (*TrafficInterceptRule) String

func (x *TrafficInterceptRule) String() string

type TrafficInterceptRule_ContentType

type TrafficInterceptRule_ContentType int32
const (
	TrafficInterceptRule_NORMAL TrafficInterceptRule_ContentType = 0
	TrafficInterceptRule_REGEXP TrafficInterceptRule_ContentType = 1
)

func (TrafficInterceptRule_ContentType) Descriptor

func (TrafficInterceptRule_ContentType) Enum

func (TrafficInterceptRule_ContentType) EnumDescriptor deprecated

func (TrafficInterceptRule_ContentType) EnumDescriptor() ([]byte, []int)

Deprecated: Use TrafficInterceptRule_ContentType.Descriptor instead.

func (TrafficInterceptRule_ContentType) Number

func (TrafficInterceptRule_ContentType) String

func (TrafficInterceptRule_ContentType) Type

type TrafficInterceptRule_InterceptType

type TrafficInterceptRule_InterceptType int32
const (
	TrafficInterceptRule_INTERCEPT_WHITELIST TrafficInterceptRule_InterceptType = 0
	TrafficInterceptRule_INTERCEPT_BLACKLIST TrafficInterceptRule_InterceptType = 1
)

func (TrafficInterceptRule_InterceptType) Descriptor

func (TrafficInterceptRule_InterceptType) Enum

func (TrafficInterceptRule_InterceptType) EnumDescriptor deprecated

func (TrafficInterceptRule_InterceptType) EnumDescriptor() ([]byte, []int)

Deprecated: Use TrafficInterceptRule_InterceptType.Descriptor instead.

func (TrafficInterceptRule_InterceptType) Number

func (TrafficInterceptRule_InterceptType) String

func (TrafficInterceptRule_InterceptType) Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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