kubernetes

package
v5.0.117 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_autoscaling_kubernetes_autoscaling_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ContainerResources

type ContainerResources struct {
	ContainerName string                             `protobuf:"bytes,1,opt,name=containerName,proto3" json:"containerName,omitempty"` // ContainerName is the name of the container
	Requests      []*ContainerResources_ResourceList `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"`
	Limits        []*ContainerResources_ResourceList `protobuf:"bytes,3,rep,name=limits,proto3" json:"limits,omitempty"`
	// contains filtered or unexported fields
}

func (*ContainerResources) Descriptor deprecated

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

Deprecated: Use ContainerResources.ProtoReflect.Descriptor instead.

func (*ContainerResources) GetContainerName

func (x *ContainerResources) GetContainerName() string

func (*ContainerResources) GetLimits

func (*ContainerResources) GetRequests

func (*ContainerResources) ProtoMessage

func (*ContainerResources) ProtoMessage()

func (*ContainerResources) ProtoReflect

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

func (*ContainerResources) Reset

func (x *ContainerResources) Reset()

func (*ContainerResources) String

func (x *ContainerResources) String() string

type ContainerResources_ResourceList

type ContainerResources_ResourceList struct {
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`   // Name is the name of the resource (e.g. "cpu" or "memory")
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // Value is stored in Kubernetes format (e.g. "1Gi")
	// contains filtered or unexported fields
}

func (*ContainerResources_ResourceList) Descriptor deprecated

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

Deprecated: Use ContainerResources_ResourceList.ProtoReflect.Descriptor instead.

func (*ContainerResources_ResourceList) GetName

func (*ContainerResources_ResourceList) GetValue

func (*ContainerResources_ResourceList) ProtoMessage

func (*ContainerResources_ResourceList) ProtoMessage()

func (*ContainerResources_ResourceList) ProtoReflect

func (*ContainerResources_ResourceList) Reset

func (*ContainerResources_ResourceList) String

type Error

type Error struct {
	Code    *int32 `protobuf:"varint,1,opt,name=code,proto3,oneof" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

Error represents an error message

func (*Error) Descriptor deprecated

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetCode

func (x *Error) GetCode() int32

func (*Error) GetMessage

func (x *Error) GetMessage() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

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

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

type WorkloadHorizontalData

type WorkloadHorizontalData struct {
	Timestamp *timestamp.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`      // Timestamp is the time the values were generated
	Replicas  *int32               `protobuf:"varint,2,opt,name=replicas,proto3,oneof" json:"replicas,omitempty"` // Replicas is the number of replicas the workload should have
	// contains filtered or unexported fields
}

func (*WorkloadHorizontalData) Descriptor deprecated

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

Deprecated: Use WorkloadHorizontalData.ProtoReflect.Descriptor instead.

func (*WorkloadHorizontalData) GetReplicas

func (x *WorkloadHorizontalData) GetReplicas() int32

func (*WorkloadHorizontalData) GetTimestamp

func (x *WorkloadHorizontalData) GetTimestamp() *timestamp.Timestamp

func (*WorkloadHorizontalData) ProtoMessage

func (*WorkloadHorizontalData) ProtoMessage()

func (*WorkloadHorizontalData) ProtoReflect

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

func (*WorkloadHorizontalData) Reset

func (x *WorkloadHorizontalData) Reset()

func (*WorkloadHorizontalData) String

func (x *WorkloadHorizontalData) String() string

type WorkloadHorizontalValues

type WorkloadHorizontalValues struct {
	Error  *Error                  `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`   // Error is the error message if new values cannot be calculated
	Manual *WorkloadHorizontalData `protobuf:"bytes,2,opt,name=manual,proto3" json:"manual,omitempty"` // Manual is the manual override values for the workload
	Auto   *WorkloadHorizontalData `protobuf:"bytes,3,opt,name=auto,proto3" json:"auto,omitempty"`     // Auto is the periodic recommendation values for the workload
	// contains filtered or unexported fields
}

func (*WorkloadHorizontalValues) Descriptor deprecated

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

Deprecated: Use WorkloadHorizontalValues.ProtoReflect.Descriptor instead.

func (*WorkloadHorizontalValues) GetAuto

func (*WorkloadHorizontalValues) GetError

func (x *WorkloadHorizontalValues) GetError() *Error

func (*WorkloadHorizontalValues) GetManual

func (*WorkloadHorizontalValues) ProtoMessage

func (*WorkloadHorizontalValues) ProtoMessage()

func (*WorkloadHorizontalValues) ProtoReflect

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

func (*WorkloadHorizontalValues) Reset

func (x *WorkloadHorizontalValues) Reset()

func (*WorkloadHorizontalValues) String

func (x *WorkloadHorizontalValues) String() string

type WorkloadValues

type WorkloadValues struct {
	Namespace  string                    `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // Namespace is the namespace of PodAutoscaler object
	Name       string                    `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`           // Name is the name of the PodAutoscaler object
	Error      *Error                    `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`         // Error is any global error that prevent the calculation of new values (not specific to horizontal or vertical values)
	Horizontal *WorkloadHorizontalValues `protobuf:"bytes,4,opt,name=horizontal,proto3" json:"horizontal,omitempty"`
	Vertical   *WorkloadVerticalValues   `protobuf:"bytes,5,opt,name=vertical,proto3" json:"vertical,omitempty"`
	// contains filtered or unexported fields
}

WorkloadValues represents the values of a workload

func (*WorkloadValues) Descriptor deprecated

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

Deprecated: Use WorkloadValues.ProtoReflect.Descriptor instead.

func (*WorkloadValues) GetError

func (x *WorkloadValues) GetError() *Error

func (*WorkloadValues) GetHorizontal

func (x *WorkloadValues) GetHorizontal() *WorkloadHorizontalValues

func (*WorkloadValues) GetName

func (x *WorkloadValues) GetName() string

func (*WorkloadValues) GetNamespace

func (x *WorkloadValues) GetNamespace() string

func (*WorkloadValues) GetVertical

func (x *WorkloadValues) GetVertical() *WorkloadVerticalValues

func (*WorkloadValues) ProtoMessage

func (*WorkloadValues) ProtoMessage()

func (*WorkloadValues) ProtoReflect

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

func (*WorkloadValues) Reset

func (x *WorkloadValues) Reset()

func (*WorkloadValues) String

func (x *WorkloadValues) String() string

type WorkloadValuesList

type WorkloadValuesList struct {
	Values []*WorkloadValues `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

WorkloadValuesList represents a list of workload values

func (*WorkloadValuesList) Descriptor deprecated

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

Deprecated: Use WorkloadValuesList.ProtoReflect.Descriptor instead.

func (*WorkloadValuesList) GetValues

func (x *WorkloadValuesList) GetValues() []*WorkloadValues

func (*WorkloadValuesList) ProtoMessage

func (*WorkloadValuesList) ProtoMessage()

func (*WorkloadValuesList) ProtoReflect

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

func (*WorkloadValuesList) Reset

func (x *WorkloadValuesList) Reset()

func (*WorkloadValuesList) String

func (x *WorkloadValuesList) String() string

type WorkloadVerticalData

type WorkloadVerticalData struct {
	Timestamp *timestamp.Timestamp  `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Timestamp is the time the values were generated
	Resources []*ContainerResources `protobuf:"bytes,2,rep,name=resources,proto3" json:"resources,omitempty"` // Resources is the list of resources for the workload
	// contains filtered or unexported fields
}

func (*WorkloadVerticalData) Descriptor deprecated

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

Deprecated: Use WorkloadVerticalData.ProtoReflect.Descriptor instead.

func (*WorkloadVerticalData) GetResources

func (x *WorkloadVerticalData) GetResources() []*ContainerResources

func (*WorkloadVerticalData) GetTimestamp

func (x *WorkloadVerticalData) GetTimestamp() *timestamp.Timestamp

func (*WorkloadVerticalData) ProtoMessage

func (*WorkloadVerticalData) ProtoMessage()

func (*WorkloadVerticalData) ProtoReflect

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

func (*WorkloadVerticalData) Reset

func (x *WorkloadVerticalData) Reset()

func (*WorkloadVerticalData) String

func (x *WorkloadVerticalData) String() string

type WorkloadVerticalValues

type WorkloadVerticalValues struct {
	Error  *Error                `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`   // Error is the error message if new values cannot be calculated
	Manual *WorkloadVerticalData `protobuf:"bytes,2,opt,name=manual,proto3" json:"manual,omitempty"` // Manual is the manual override values for the workload
	Auto   *WorkloadVerticalData `protobuf:"bytes,3,opt,name=auto,proto3" json:"auto,omitempty"`     // Auto is the periodic recommendation values for the workload
	// contains filtered or unexported fields
}

func (*WorkloadVerticalValues) Descriptor deprecated

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

Deprecated: Use WorkloadVerticalValues.ProtoReflect.Descriptor instead.

func (*WorkloadVerticalValues) GetAuto

func (*WorkloadVerticalValues) GetError

func (x *WorkloadVerticalValues) GetError() *Error

func (*WorkloadVerticalValues) GetManual

func (*WorkloadVerticalValues) ProtoMessage

func (*WorkloadVerticalValues) ProtoMessage()

func (*WorkloadVerticalValues) ProtoReflect

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

func (*WorkloadVerticalValues) Reset

func (x *WorkloadVerticalValues) Reset()

func (*WorkloadVerticalValues) String

func (x *WorkloadVerticalValues) String() string

Jump to

Keyboard shortcuts

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