v1alpha2

package
v4.2.789+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: Apache-2.0 Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// use containersai.datahub.metric.v1alpha2.MetricType as key
	LimitResource map[int32]*v1alpha2.MetricData `` /* 189-byte string literal not displayed */
	// use containersai.datahub.metric.v1alpha2.MetricType as key
	RequestResource      map[int32]*v1alpha2.MetricData `` /* 195-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                       `json:"-"`
	XXX_unrecognized     []byte                         `json:"-"`
	XXX_sizecache        int32                          `json:"-"`
}

* Represents a container and its containing limit and requeset configurations

func (*Container) Descriptor

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

func (*Container) GetLimitResource

func (m *Container) GetLimitResource() map[int32]*v1alpha2.MetricData

func (*Container) GetName

func (m *Container) GetName() string

func (*Container) GetRequestResource

func (m *Container) GetRequestResource() map[int32]*v1alpha2.MetricData

func (*Container) ProtoMessage

func (*Container) ProtoMessage()

func (*Container) Reset

func (m *Container) Reset()

func (*Container) String

func (m *Container) String() string

func (*Container) XXX_DiscardUnknown

func (m *Container) XXX_DiscardUnknown()

func (*Container) XXX_Marshal

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

func (*Container) XXX_Merge

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

func (*Container) XXX_Size

func (m *Container) XXX_Size() int

func (*Container) XXX_Unmarshal

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

type Node

type Node struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	IsPredicted          bool     `protobuf:"varint,2,opt,name=is_predicted,json=isPredicted,proto3" json:"is_predicted,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Represents a Kubernetes node

func (*Node) Descriptor

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

func (*Node) GetIsPredicted

func (m *Node) GetIsPredicted() bool

func (*Node) GetName

func (m *Node) GetName() string

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) String

func (m *Node) String() string

func (*Node) XXX_DiscardUnknown

func (m *Node) XXX_DiscardUnknown()

func (*Node) XXX_Marshal

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

func (*Node) XXX_Merge

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

func (*Node) XXX_Size

func (m *Node) XXX_Size() int

func (*Node) XXX_Unmarshal

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

type Pod

type Pod struct {
	NamespacedName       *v1alpha21.NamespacedName      `protobuf:"bytes,1,opt,name=namespaced_name,json=namespacedName,proto3" json:"namespaced_name,omitempty"`
	ResourceLink         string                         `protobuf:"bytes,2,opt,name=resource_link,json=resourceLink,proto3" json:"resource_link,omitempty"`
	Containers           []*Container                   `protobuf:"bytes,3,rep,name=containers,proto3" json:"containers,omitempty"`
	IsPredicted          bool                           `protobuf:"varint,4,opt,name=is_predicted,json=isPredicted,proto3" json:"is_predicted,omitempty"`
	Scaler               *v1alpha21.NamespacedName      `protobuf:"bytes,5,opt,name=scaler,proto3" json:"scaler,omitempty"`
	NodeName             string                         `protobuf:"bytes,6,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"`
	StartTime            *timestamp.Timestamp           `protobuf:"bytes,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	Policy               v1alpha22.RecommendationPolicy `` /* 137-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                       `json:"-"`
	XXX_unrecognized     []byte                         `json:"-"`
	XXX_sizecache        int32                          `json:"-"`
}

* Represents a Kubernetes pod

func (*Pod) Descriptor

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

func (*Pod) GetContainers

func (m *Pod) GetContainers() []*Container

func (*Pod) GetIsPredicted

func (m *Pod) GetIsPredicted() bool

func (*Pod) GetNamespacedName

func (m *Pod) GetNamespacedName() *v1alpha21.NamespacedName

func (*Pod) GetNodeName

func (m *Pod) GetNodeName() string

func (*Pod) GetPolicy

func (m *Pod) GetPolicy() v1alpha22.RecommendationPolicy
func (m *Pod) GetResourceLink() string

func (*Pod) GetScaler

func (m *Pod) GetScaler() *v1alpha21.NamespacedName

func (*Pod) GetStartTime

func (m *Pod) GetStartTime() *timestamp.Timestamp

func (*Pod) ProtoMessage

func (*Pod) ProtoMessage()

func (*Pod) Reset

func (m *Pod) Reset()

func (*Pod) String

func (m *Pod) String() string

func (*Pod) XXX_DiscardUnknown

func (m *Pod) XXX_DiscardUnknown()

func (*Pod) XXX_Marshal

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

func (*Pod) XXX_Merge

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

func (*Pod) XXX_Size

func (m *Pod) XXX_Size() int

func (*Pod) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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