externalscaler

package
v0.0.0-...-260b785 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_externalscaler_externalscaler_proto protoreflect.FileDescriptor

Functions

func RegisterExternalScalerServer

func RegisterExternalScalerServer(s *grpc.Server, srv ExternalScalerServer)

Types

type ExternalScalerClient

type ExternalScalerClient interface {
	IsActive(ctx context.Context, in *ScaledObjectRef, opts ...grpc.CallOption) (*IsActiveResponse, error)
	StreamIsActive(ctx context.Context, in *ScaledObjectRef, opts ...grpc.CallOption) (ExternalScaler_StreamIsActiveClient, error)
	GetMetricSpec(ctx context.Context, in *ScaledObjectRef, opts ...grpc.CallOption) (*GetMetricSpecResponse, error)
	GetMetrics(ctx context.Context, in *GetMetricsRequest, opts ...grpc.CallOption) (*GetMetricsResponse, error)
}

ExternalScalerClient is the client API for ExternalScaler service.

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

type ExternalScalerServer

ExternalScalerServer is the server API for ExternalScaler service.

type ExternalScaler_StreamIsActiveClient

type ExternalScaler_StreamIsActiveClient interface {
	Recv() (*IsActiveResponse, error)
	grpc.ClientStream
}

type ExternalScaler_StreamIsActiveServer

type ExternalScaler_StreamIsActiveServer interface {
	Send(*IsActiveResponse) error
	grpc.ServerStream
}

type GetMetricSpecResponse

type GetMetricSpecResponse struct {
	MetricSpecs []*MetricSpec `protobuf:"bytes,1,rep,name=metricSpecs,proto3" json:"metricSpecs,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMetricSpecResponse) Descriptor deprecated

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

Deprecated: Use GetMetricSpecResponse.ProtoReflect.Descriptor instead.

func (*GetMetricSpecResponse) GetMetricSpecs

func (x *GetMetricSpecResponse) GetMetricSpecs() []*MetricSpec

func (*GetMetricSpecResponse) ProtoMessage

func (*GetMetricSpecResponse) ProtoMessage()

func (*GetMetricSpecResponse) ProtoReflect

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

func (*GetMetricSpecResponse) Reset

func (x *GetMetricSpecResponse) Reset()

func (*GetMetricSpecResponse) String

func (x *GetMetricSpecResponse) String() string

type GetMetricsRequest

type GetMetricsRequest struct {
	ScaledObjectRef *ScaledObjectRef `protobuf:"bytes,1,opt,name=scaledObjectRef,proto3" json:"scaledObjectRef,omitempty"`
	MetricName      string           `protobuf:"bytes,2,opt,name=metricName,proto3" json:"metricName,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMetricsRequest) Descriptor deprecated

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

Deprecated: Use GetMetricsRequest.ProtoReflect.Descriptor instead.

func (*GetMetricsRequest) GetMetricName

func (x *GetMetricsRequest) GetMetricName() string

func (*GetMetricsRequest) GetScaledObjectRef

func (x *GetMetricsRequest) GetScaledObjectRef() *ScaledObjectRef

func (*GetMetricsRequest) ProtoMessage

func (*GetMetricsRequest) ProtoMessage()

func (*GetMetricsRequest) ProtoReflect

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

func (*GetMetricsRequest) Reset

func (x *GetMetricsRequest) Reset()

func (*GetMetricsRequest) String

func (x *GetMetricsRequest) String() string

type GetMetricsResponse

type GetMetricsResponse struct {
	MetricValues []*MetricValue `protobuf:"bytes,1,rep,name=metricValues,proto3" json:"metricValues,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMetricsResponse) Descriptor deprecated

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

Deprecated: Use GetMetricsResponse.ProtoReflect.Descriptor instead.

func (*GetMetricsResponse) GetMetricValues

func (x *GetMetricsResponse) GetMetricValues() []*MetricValue

func (*GetMetricsResponse) ProtoMessage

func (*GetMetricsResponse) ProtoMessage()

func (*GetMetricsResponse) ProtoReflect

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

func (*GetMetricsResponse) Reset

func (x *GetMetricsResponse) Reset()

func (*GetMetricsResponse) String

func (x *GetMetricsResponse) String() string

type IsActiveResponse

type IsActiveResponse struct {
	Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*IsActiveResponse) Descriptor deprecated

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

Deprecated: Use IsActiveResponse.ProtoReflect.Descriptor instead.

func (*IsActiveResponse) GetResult

func (x *IsActiveResponse) GetResult() bool

func (*IsActiveResponse) ProtoMessage

func (*IsActiveResponse) ProtoMessage()

func (*IsActiveResponse) ProtoReflect

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

func (*IsActiveResponse) Reset

func (x *IsActiveResponse) Reset()

func (*IsActiveResponse) String

func (x *IsActiveResponse) String() string

type MetricSpec

type MetricSpec struct {
	MetricName string `protobuf:"bytes,1,opt,name=metricName,proto3" json:"metricName,omitempty"`
	TargetSize int64  `protobuf:"varint,2,opt,name=targetSize,proto3" json:"targetSize,omitempty"`
	// contains filtered or unexported fields
}

func (*MetricSpec) Descriptor deprecated

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

Deprecated: Use MetricSpec.ProtoReflect.Descriptor instead.

func (*MetricSpec) GetMetricName

func (x *MetricSpec) GetMetricName() string

func (*MetricSpec) GetTargetSize

func (x *MetricSpec) GetTargetSize() int64

func (*MetricSpec) ProtoMessage

func (*MetricSpec) ProtoMessage()

func (*MetricSpec) ProtoReflect

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

func (*MetricSpec) Reset

func (x *MetricSpec) Reset()

func (*MetricSpec) String

func (x *MetricSpec) String() string

type MetricValue

type MetricValue struct {
	MetricName  string `protobuf:"bytes,1,opt,name=metricName,proto3" json:"metricName,omitempty"`
	MetricValue int64  `protobuf:"varint,2,opt,name=metricValue,proto3" json:"metricValue,omitempty"`
	// contains filtered or unexported fields
}

func (*MetricValue) Descriptor deprecated

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

Deprecated: Use MetricValue.ProtoReflect.Descriptor instead.

func (*MetricValue) GetMetricName

func (x *MetricValue) GetMetricName() string

func (*MetricValue) GetMetricValue

func (x *MetricValue) GetMetricValue() int64

func (*MetricValue) ProtoMessage

func (*MetricValue) ProtoMessage()

func (*MetricValue) ProtoReflect

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

func (*MetricValue) Reset

func (x *MetricValue) Reset()

func (*MetricValue) String

func (x *MetricValue) String() string

type ScaledObjectRef

type ScaledObjectRef struct {
	Name           string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Namespace      string            `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	ScalerMetadata map[string]string `` /* 169-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ScaledObjectRef) Descriptor deprecated

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

Deprecated: Use ScaledObjectRef.ProtoReflect.Descriptor instead.

func (*ScaledObjectRef) GetName

func (x *ScaledObjectRef) GetName() string

func (*ScaledObjectRef) GetNamespace

func (x *ScaledObjectRef) GetNamespace() string

func (*ScaledObjectRef) GetScalerMetadata

func (x *ScaledObjectRef) GetScalerMetadata() map[string]string

func (*ScaledObjectRef) ProtoMessage

func (*ScaledObjectRef) ProtoMessage()

func (*ScaledObjectRef) ProtoReflect

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

func (*ScaledObjectRef) Reset

func (x *ScaledObjectRef) Reset()

func (*ScaledObjectRef) String

func (x *ScaledObjectRef) String() string

type UnimplementedExternalScalerServer

type UnimplementedExternalScalerServer struct {
}

UnimplementedExternalScalerServer can be embedded to have forward compatible implementations.

func (*UnimplementedExternalScalerServer) GetMetricSpec

func (*UnimplementedExternalScalerServer) GetMetrics

func (*UnimplementedExternalScalerServer) IsActive

func (*UnimplementedExternalScalerServer) StreamIsActive

Jump to

Keyboard shortcuts

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