v1alpha1

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 14 Imported by: 10

Documentation

Index

Constants

View Source
const (
	Version = "v1alpha1"
)

Variables

View Source
var (
	ErrInvalidLengthApi        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowApi          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupApi = fmt.Errorf("proto: unexpected end of group")
)
View Source
var ConditionType_name = map[int32]string{
	0: "NODE_CONDITION",
	1: "CNR_CONDITION",
}
View Source
var ConditionType_value = map[string]int32{
	"NODE_CONDITION": 0,
	"CNR_CONDITION":  1,
}
View Source
var SupportedVersions = [...]string{Version}
View Source
var ThresholdMetType_name = map[int32]string{
	0: "NOT_MET",
	1: "SOFT_MET",
	2: "HARD_MET",
}
View Source
var ThresholdMetType_value = map[string]int32{
	"NOT_MET":  0,
	"SOFT_MET": 1,
	"HARD_MET": 2,
}
View Source
var ThresholdOperator_name = map[int32]string{
	0: "LESS_THAN",
	1: "GREATER_THAN",
}
View Source
var ThresholdOperator_value = map[string]int32{
	"LESS_THAN":    0,
	"GREATER_THAN": 1,
}

Functions

func RegisterEvictionPluginServer

func RegisterEvictionPluginServer(s *grpc.Server, srv EvictionPluginServer)

Types

type Condition

type Condition struct {
	ConditionType        ConditionType `` /* 144-byte string literal not displayed */
	Effects              []string      `protobuf:"bytes,2,rep,name=effects,proto3" json:"effects,omitempty"`
	ConditionName        string        `protobuf:"bytes,3,opt,name=condition_name,json=conditionName,proto3" json:"condition_name,omitempty"`
	MetCondition         bool          `protobuf:"varint,4,opt,name=met_condition,json=metCondition,proto3" json:"met_condition,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*Condition) Descriptor

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

func (*Condition) GetConditionName

func (m *Condition) GetConditionName() string

func (*Condition) GetConditionType

func (m *Condition) GetConditionType() ConditionType

func (*Condition) GetEffects

func (m *Condition) GetEffects() []string

func (*Condition) GetMetCondition

func (m *Condition) GetMetCondition() bool

func (*Condition) Marshal

func (m *Condition) Marshal() (dAtA []byte, err error)

func (*Condition) MarshalTo

func (m *Condition) MarshalTo(dAtA []byte) (int, error)

func (*Condition) MarshalToSizedBuffer

func (m *Condition) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Condition) ProtoMessage

func (*Condition) ProtoMessage()

func (*Condition) Reset

func (m *Condition) Reset()

func (*Condition) Size

func (m *Condition) Size() (n int)

func (*Condition) String

func (this *Condition) String() string

func (*Condition) Unmarshal

func (m *Condition) Unmarshal(dAtA []byte) error

func (*Condition) XXX_DiscardUnknown

func (m *Condition) XXX_DiscardUnknown()

func (*Condition) XXX_Marshal

func (m *Condition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Condition) XXX_Merge

func (m *Condition) XXX_Merge(src proto.Message)

func (*Condition) XXX_Size

func (m *Condition) XXX_Size() int

func (*Condition) XXX_Unmarshal

func (m *Condition) XXX_Unmarshal(b []byte) error

type ConditionType

type ConditionType int32
const (
	ConditionType_NODE_CONDITION ConditionType = 0
	ConditionType_CNR_CONDITION  ConditionType = 1
)

func (ConditionType) EnumDescriptor

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

func (ConditionType) String

func (x ConditionType) String() string

type DeletionOptions

type DeletionOptions struct {
	GracePeriodSeconds   int64    `protobuf:"varint,1,opt,name=grace_period_seconds,json=gracePeriodSeconds,proto3" json:"grace_period_seconds,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeletionOptions) Descriptor

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

func (*DeletionOptions) GetGracePeriodSeconds

func (m *DeletionOptions) GetGracePeriodSeconds() int64

func (*DeletionOptions) Marshal

func (m *DeletionOptions) Marshal() (dAtA []byte, err error)

func (*DeletionOptions) MarshalTo

func (m *DeletionOptions) MarshalTo(dAtA []byte) (int, error)

func (*DeletionOptions) MarshalToSizedBuffer

func (m *DeletionOptions) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DeletionOptions) ProtoMessage

func (*DeletionOptions) ProtoMessage()

func (*DeletionOptions) Reset

func (m *DeletionOptions) Reset()

func (*DeletionOptions) Size

func (m *DeletionOptions) Size() (n int)

func (*DeletionOptions) String

func (this *DeletionOptions) String() string

func (*DeletionOptions) Unmarshal

func (m *DeletionOptions) Unmarshal(dAtA []byte) error

func (*DeletionOptions) XXX_DiscardUnknown

func (m *DeletionOptions) XXX_DiscardUnknown()

func (*DeletionOptions) XXX_Marshal

func (m *DeletionOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeletionOptions) XXX_Merge

func (m *DeletionOptions) XXX_Merge(src proto.Message)

func (*DeletionOptions) XXX_Size

func (m *DeletionOptions) XXX_Size() int

func (*DeletionOptions) XXX_Unmarshal

func (m *DeletionOptions) XXX_Unmarshal(b []byte) error

type Empty

type Empty struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Empty) Descriptor

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

func (*Empty) Marshal

func (m *Empty) Marshal() (dAtA []byte, err error)

func (*Empty) MarshalTo

func (m *Empty) MarshalTo(dAtA []byte) (int, error)

func (*Empty) MarshalToSizedBuffer

func (m *Empty) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) Size

func (m *Empty) Size() (n int)

func (*Empty) String

func (this *Empty) String() string

func (*Empty) Unmarshal

func (m *Empty) Unmarshal(dAtA []byte) error

func (*Empty) XXX_DiscardUnknown

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal

func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Empty) XXX_Merge

func (m *Empty) XXX_Merge(src proto.Message)

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

func (m *Empty) XXX_Unmarshal(b []byte) error

type EvictPod

type EvictPod struct {
	Pod                  *v1.Pod          `protobuf:"bytes,1,opt,name=pod,proto3" json:"pod,omitempty"`
	Reason               string           `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
	DeletionOptions      *DeletionOptions `protobuf:"bytes,3,opt,name=deletion_options,json=deletionOptions,proto3" json:"deletion_options,omitempty"`
	ForceEvict           bool             `protobuf:"varint,4,opt,name=force_evict,json=forceEvict,proto3" json:"force_evict,omitempty"`
	EvictionPluginName   string           `protobuf:"bytes,5,opt,name=eviction_plugin_name,json=evictionPluginName,proto3" json:"eviction_plugin_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*EvictPod) Descriptor

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

func (*EvictPod) GetDeletionOptions

func (m *EvictPod) GetDeletionOptions() *DeletionOptions

func (*EvictPod) GetEvictionPluginName

func (m *EvictPod) GetEvictionPluginName() string

func (*EvictPod) GetForceEvict

func (m *EvictPod) GetForceEvict() bool

func (*EvictPod) GetPod

func (m *EvictPod) GetPod() *v1.Pod

func (*EvictPod) GetReason

func (m *EvictPod) GetReason() string

func (*EvictPod) Marshal

func (m *EvictPod) Marshal() (dAtA []byte, err error)

func (*EvictPod) MarshalTo

func (m *EvictPod) MarshalTo(dAtA []byte) (int, error)

func (*EvictPod) MarshalToSizedBuffer

func (m *EvictPod) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EvictPod) ProtoMessage

func (*EvictPod) ProtoMessage()

func (*EvictPod) Reset

func (m *EvictPod) Reset()

func (*EvictPod) Size

func (m *EvictPod) Size() (n int)

func (*EvictPod) String

func (this *EvictPod) String() string

func (*EvictPod) Unmarshal

func (m *EvictPod) Unmarshal(dAtA []byte) error

func (*EvictPod) XXX_DiscardUnknown

func (m *EvictPod) XXX_DiscardUnknown()

func (*EvictPod) XXX_Marshal

func (m *EvictPod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EvictPod) XXX_Merge

func (m *EvictPod) XXX_Merge(src proto.Message)

func (*EvictPod) XXX_Size

func (m *EvictPod) XXX_Size() int

func (*EvictPod) XXX_Unmarshal

func (m *EvictPod) XXX_Unmarshal(b []byte) error

type EvictionPluginClient

type EvictionPluginClient interface {
	GetToken(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GetTokenResponse, error)
	ThresholdMet(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ThresholdMetResponse, error)
	GetTopEvictionPods(ctx context.Context, in *GetTopEvictionPodsRequest, opts ...grpc.CallOption) (*GetTopEvictionPodsResponse, error)
	GetEvictPods(ctx context.Context, in *GetEvictPodsRequest, opts ...grpc.CallOption) (*GetEvictPodsResponse, error)
}

EvictionPluginClient is the client API for EvictionPlugin service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewEvictionPluginClient

func NewEvictionPluginClient(cc *grpc.ClientConn) EvictionPluginClient

type EvictionPluginServer

type EvictionPluginServer interface {
	GetToken(context.Context, *Empty) (*GetTokenResponse, error)
	ThresholdMet(context.Context, *Empty) (*ThresholdMetResponse, error)
	GetTopEvictionPods(context.Context, *GetTopEvictionPodsRequest) (*GetTopEvictionPodsResponse, error)
	GetEvictPods(context.Context, *GetEvictPodsRequest) (*GetEvictPodsResponse, error)
}

EvictionPluginServer is the server API for EvictionPlugin service.

type GetEvictPodsRequest

type GetEvictPodsRequest struct {
	ActivePods           []*v1.Pod `protobuf:"bytes,1,rep,name=active_pods,json=activePods,proto3" json:"active_pods,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*GetEvictPodsRequest) Descriptor

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

func (*GetEvictPodsRequest) GetActivePods

func (m *GetEvictPodsRequest) GetActivePods() []*v1.Pod

func (*GetEvictPodsRequest) Marshal

func (m *GetEvictPodsRequest) Marshal() (dAtA []byte, err error)

func (*GetEvictPodsRequest) MarshalTo

func (m *GetEvictPodsRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetEvictPodsRequest) MarshalToSizedBuffer

func (m *GetEvictPodsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetEvictPodsRequest) ProtoMessage

func (*GetEvictPodsRequest) ProtoMessage()

func (*GetEvictPodsRequest) Reset

func (m *GetEvictPodsRequest) Reset()

func (*GetEvictPodsRequest) Size

func (m *GetEvictPodsRequest) Size() (n int)

func (*GetEvictPodsRequest) String

func (this *GetEvictPodsRequest) String() string

func (*GetEvictPodsRequest) Unmarshal

func (m *GetEvictPodsRequest) Unmarshal(dAtA []byte) error

func (*GetEvictPodsRequest) XXX_DiscardUnknown

func (m *GetEvictPodsRequest) XXX_DiscardUnknown()

func (*GetEvictPodsRequest) XXX_Marshal

func (m *GetEvictPodsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetEvictPodsRequest) XXX_Merge

func (m *GetEvictPodsRequest) XXX_Merge(src proto.Message)

func (*GetEvictPodsRequest) XXX_Size

func (m *GetEvictPodsRequest) XXX_Size() int

func (*GetEvictPodsRequest) XXX_Unmarshal

func (m *GetEvictPodsRequest) XXX_Unmarshal(b []byte) error

type GetEvictPodsResponse

type GetEvictPodsResponse struct {
	EvictPods            []*EvictPod `protobuf:"bytes,1,rep,name=evict_pods,json=evictPods,proto3" json:"evict_pods,omitempty"`
	Condition            *Condition  `protobuf:"bytes,2,opt,name=condition,proto3" json:"condition,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*GetEvictPodsResponse) Descriptor

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

func (*GetEvictPodsResponse) GetCondition

func (m *GetEvictPodsResponse) GetCondition() *Condition

func (*GetEvictPodsResponse) GetEvictPods

func (m *GetEvictPodsResponse) GetEvictPods() []*EvictPod

func (*GetEvictPodsResponse) Marshal

func (m *GetEvictPodsResponse) Marshal() (dAtA []byte, err error)

func (*GetEvictPodsResponse) MarshalTo

func (m *GetEvictPodsResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetEvictPodsResponse) MarshalToSizedBuffer

func (m *GetEvictPodsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetEvictPodsResponse) ProtoMessage

func (*GetEvictPodsResponse) ProtoMessage()

func (*GetEvictPodsResponse) Reset

func (m *GetEvictPodsResponse) Reset()

func (*GetEvictPodsResponse) Size

func (m *GetEvictPodsResponse) Size() (n int)

func (*GetEvictPodsResponse) String

func (this *GetEvictPodsResponse) String() string

func (*GetEvictPodsResponse) Unmarshal

func (m *GetEvictPodsResponse) Unmarshal(dAtA []byte) error

func (*GetEvictPodsResponse) XXX_DiscardUnknown

func (m *GetEvictPodsResponse) XXX_DiscardUnknown()

func (*GetEvictPodsResponse) XXX_Marshal

func (m *GetEvictPodsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetEvictPodsResponse) XXX_Merge

func (m *GetEvictPodsResponse) XXX_Merge(src proto.Message)

func (*GetEvictPodsResponse) XXX_Size

func (m *GetEvictPodsResponse) XXX_Size() int

func (*GetEvictPodsResponse) XXX_Unmarshal

func (m *GetEvictPodsResponse) XXX_Unmarshal(b []byte) error

type GetTokenResponse added in v0.3.3

type GetTokenResponse struct {
	Token                string   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetTokenResponse) Descriptor added in v0.3.3

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

func (*GetTokenResponse) GetToken added in v0.3.3

func (m *GetTokenResponse) GetToken() string

func (*GetTokenResponse) Marshal added in v0.3.3

func (m *GetTokenResponse) Marshal() (dAtA []byte, err error)

func (*GetTokenResponse) MarshalTo added in v0.3.3

func (m *GetTokenResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetTokenResponse) MarshalToSizedBuffer added in v0.3.3

func (m *GetTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetTokenResponse) ProtoMessage added in v0.3.3

func (*GetTokenResponse) ProtoMessage()

func (*GetTokenResponse) Reset added in v0.3.3

func (m *GetTokenResponse) Reset()

func (*GetTokenResponse) Size added in v0.3.3

func (m *GetTokenResponse) Size() (n int)

func (*GetTokenResponse) String added in v0.3.3

func (this *GetTokenResponse) String() string

func (*GetTokenResponse) Unmarshal added in v0.3.3

func (m *GetTokenResponse) Unmarshal(dAtA []byte) error

func (*GetTokenResponse) XXX_DiscardUnknown added in v0.3.3

func (m *GetTokenResponse) XXX_DiscardUnknown()

func (*GetTokenResponse) XXX_Marshal added in v0.3.3

func (m *GetTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetTokenResponse) XXX_Merge added in v0.3.3

func (m *GetTokenResponse) XXX_Merge(src proto.Message)

func (*GetTokenResponse) XXX_Size added in v0.3.3

func (m *GetTokenResponse) XXX_Size() int

func (*GetTokenResponse) XXX_Unmarshal added in v0.3.3

func (m *GetTokenResponse) XXX_Unmarshal(b []byte) error

type GetTopEvictionPodsRequest

type GetTopEvictionPodsRequest struct {
	ActivePods           []*v1.Pod `protobuf:"bytes,1,rep,name=active_pods,json=activePods,proto3" json:"active_pods,omitempty"`
	TopN                 uint64    `protobuf:"varint,2,opt,name=topN,proto3" json:"topN,omitempty"`
	EvictionScope        string    `protobuf:"bytes,3,opt,name=eviction_scope,json=evictionScope,proto3" json:"eviction_scope,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*GetTopEvictionPodsRequest) Descriptor

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

func (*GetTopEvictionPodsRequest) GetActivePods

func (m *GetTopEvictionPodsRequest) GetActivePods() []*v1.Pod

func (*GetTopEvictionPodsRequest) GetEvictionScope

func (m *GetTopEvictionPodsRequest) GetEvictionScope() string

func (*GetTopEvictionPodsRequest) GetTopN

func (m *GetTopEvictionPodsRequest) GetTopN() uint64

func (*GetTopEvictionPodsRequest) Marshal

func (m *GetTopEvictionPodsRequest) Marshal() (dAtA []byte, err error)

func (*GetTopEvictionPodsRequest) MarshalTo

func (m *GetTopEvictionPodsRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetTopEvictionPodsRequest) MarshalToSizedBuffer

func (m *GetTopEvictionPodsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetTopEvictionPodsRequest) ProtoMessage

func (*GetTopEvictionPodsRequest) ProtoMessage()

func (*GetTopEvictionPodsRequest) Reset

func (m *GetTopEvictionPodsRequest) Reset()

func (*GetTopEvictionPodsRequest) Size

func (m *GetTopEvictionPodsRequest) Size() (n int)

func (*GetTopEvictionPodsRequest) String

func (this *GetTopEvictionPodsRequest) String() string

func (*GetTopEvictionPodsRequest) Unmarshal

func (m *GetTopEvictionPodsRequest) Unmarshal(dAtA []byte) error

func (*GetTopEvictionPodsRequest) XXX_DiscardUnknown

func (m *GetTopEvictionPodsRequest) XXX_DiscardUnknown()

func (*GetTopEvictionPodsRequest) XXX_Marshal

func (m *GetTopEvictionPodsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetTopEvictionPodsRequest) XXX_Merge

func (m *GetTopEvictionPodsRequest) XXX_Merge(src proto.Message)

func (*GetTopEvictionPodsRequest) XXX_Size

func (m *GetTopEvictionPodsRequest) XXX_Size() int

func (*GetTopEvictionPodsRequest) XXX_Unmarshal

func (m *GetTopEvictionPodsRequest) XXX_Unmarshal(b []byte) error

type GetTopEvictionPodsResponse

type GetTopEvictionPodsResponse struct {
	TargetPods           []*v1.Pod        `protobuf:"bytes,1,rep,name=target_pods,json=targetPods,proto3" json:"target_pods,omitempty"`
	DeletionOptions      *DeletionOptions `protobuf:"bytes,2,opt,name=deletion_options,json=deletionOptions,proto3" json:"deletion_options,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*GetTopEvictionPodsResponse) Descriptor

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

func (*GetTopEvictionPodsResponse) GetDeletionOptions

func (m *GetTopEvictionPodsResponse) GetDeletionOptions() *DeletionOptions

func (*GetTopEvictionPodsResponse) GetTargetPods

func (m *GetTopEvictionPodsResponse) GetTargetPods() []*v1.Pod

func (*GetTopEvictionPodsResponse) Marshal

func (m *GetTopEvictionPodsResponse) Marshal() (dAtA []byte, err error)

func (*GetTopEvictionPodsResponse) MarshalTo

func (m *GetTopEvictionPodsResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetTopEvictionPodsResponse) MarshalToSizedBuffer

func (m *GetTopEvictionPodsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetTopEvictionPodsResponse) ProtoMessage

func (*GetTopEvictionPodsResponse) ProtoMessage()

func (*GetTopEvictionPodsResponse) Reset

func (m *GetTopEvictionPodsResponse) Reset()

func (*GetTopEvictionPodsResponse) Size

func (m *GetTopEvictionPodsResponse) Size() (n int)

func (*GetTopEvictionPodsResponse) String

func (this *GetTopEvictionPodsResponse) String() string

func (*GetTopEvictionPodsResponse) Unmarshal

func (m *GetTopEvictionPodsResponse) Unmarshal(dAtA []byte) error

func (*GetTopEvictionPodsResponse) XXX_DiscardUnknown

func (m *GetTopEvictionPodsResponse) XXX_DiscardUnknown()

func (*GetTopEvictionPodsResponse) XXX_Marshal

func (m *GetTopEvictionPodsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetTopEvictionPodsResponse) XXX_Merge

func (m *GetTopEvictionPodsResponse) XXX_Merge(src proto.Message)

func (*GetTopEvictionPodsResponse) XXX_Size

func (m *GetTopEvictionPodsResponse) XXX_Size() int

func (*GetTopEvictionPodsResponse) XXX_Unmarshal

func (m *GetTopEvictionPodsResponse) XXX_Unmarshal(b []byte) error

type ThresholdMetResponse

type ThresholdMetResponse struct {
	ThresholdValue       float64           `protobuf:"fixed64,1,opt,name=threshold_value,json=thresholdValue,proto3" json:"threshold_value,omitempty"`
	ObservedValue        float64           `protobuf:"fixed64,2,opt,name=observed_value,json=observedValue,proto3" json:"observed_value,omitempty"`
	ThresholdOperator    ThresholdOperator `` /* 160-byte string literal not displayed */
	MetType              ThresholdMetType  `` /* 129-byte string literal not displayed */
	EvictionScope        string            `protobuf:"bytes,5,opt,name=eviction_scope,json=evictionScope,proto3" json:"eviction_scope,omitempty"`
	GracePeriodSeconds   int64             `protobuf:"varint,6,opt,name=grace_period_seconds,json=gracePeriodSeconds,proto3" json:"grace_period_seconds,omitempty"`
	Condition            *Condition        `protobuf:"bytes,7,opt,name=condition,proto3" json:"condition,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*ThresholdMetResponse) Descriptor

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

func (*ThresholdMetResponse) GetCondition

func (m *ThresholdMetResponse) GetCondition() *Condition

func (*ThresholdMetResponse) GetEvictionScope

func (m *ThresholdMetResponse) GetEvictionScope() string

func (*ThresholdMetResponse) GetGracePeriodSeconds

func (m *ThresholdMetResponse) GetGracePeriodSeconds() int64

func (*ThresholdMetResponse) GetMetType

func (m *ThresholdMetResponse) GetMetType() ThresholdMetType

func (*ThresholdMetResponse) GetObservedValue

func (m *ThresholdMetResponse) GetObservedValue() float64

func (*ThresholdMetResponse) GetThresholdOperator

func (m *ThresholdMetResponse) GetThresholdOperator() ThresholdOperator

func (*ThresholdMetResponse) GetThresholdValue

func (m *ThresholdMetResponse) GetThresholdValue() float64

func (*ThresholdMetResponse) Marshal

func (m *ThresholdMetResponse) Marshal() (dAtA []byte, err error)

func (*ThresholdMetResponse) MarshalTo

func (m *ThresholdMetResponse) MarshalTo(dAtA []byte) (int, error)

func (*ThresholdMetResponse) MarshalToSizedBuffer

func (m *ThresholdMetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ThresholdMetResponse) ProtoMessage

func (*ThresholdMetResponse) ProtoMessage()

func (*ThresholdMetResponse) Reset

func (m *ThresholdMetResponse) Reset()

func (*ThresholdMetResponse) Size

func (m *ThresholdMetResponse) Size() (n int)

func (*ThresholdMetResponse) String

func (this *ThresholdMetResponse) String() string

func (*ThresholdMetResponse) Unmarshal

func (m *ThresholdMetResponse) Unmarshal(dAtA []byte) error

func (*ThresholdMetResponse) XXX_DiscardUnknown

func (m *ThresholdMetResponse) XXX_DiscardUnknown()

func (*ThresholdMetResponse) XXX_Marshal

func (m *ThresholdMetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ThresholdMetResponse) XXX_Merge

func (m *ThresholdMetResponse) XXX_Merge(src proto.Message)

func (*ThresholdMetResponse) XXX_Size

func (m *ThresholdMetResponse) XXX_Size() int

func (*ThresholdMetResponse) XXX_Unmarshal

func (m *ThresholdMetResponse) XXX_Unmarshal(b []byte) error

type ThresholdMetType

type ThresholdMetType int32
const (
	ThresholdMetType_NOT_MET  ThresholdMetType = 0
	ThresholdMetType_SOFT_MET ThresholdMetType = 1
	ThresholdMetType_HARD_MET ThresholdMetType = 2
)

func (ThresholdMetType) EnumDescriptor

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

func (ThresholdMetType) String

func (x ThresholdMetType) String() string

type ThresholdOperator

type ThresholdOperator int32
const (
	ThresholdOperator_LESS_THAN    ThresholdOperator = 0
	ThresholdOperator_GREATER_THAN ThresholdOperator = 1
)

func (ThresholdOperator) EnumDescriptor

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

func (ThresholdOperator) String

func (x ThresholdOperator) String() string

type UnimplementedEvictionPluginServer

type UnimplementedEvictionPluginServer struct {
}

UnimplementedEvictionPluginServer can be embedded to have forward compatible implementations.

func (*UnimplementedEvictionPluginServer) GetEvictPods

func (*UnimplementedEvictionPluginServer) GetToken added in v0.3.3

func (*UnimplementedEvictionPluginServer) GetTopEvictionPods

func (*UnimplementedEvictionPluginServer) ThresholdMet

Jump to

Keyboard shortcuts

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