v1alpha1

package
v1.13.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package v1alpha1 is a generated protocol buffer package.

It is generated from these files:

api.proto

It has these top-level messages:

ListPodResourcesRequest
ListPodResourcesResponse
PodResources
ContainerResources
ContainerDevices

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowApi   = fmt.Errorf("proto: integer overflow")
)

Functions

func RegisterPodResourcesListerServer

func RegisterPodResourcesListerServer(s *grpc.Server, srv PodResourcesListerServer)

Types

type ContainerDevices

type ContainerDevices struct {
	ResourceName string   `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
	DeviceIds    []string `protobuf:"bytes,2,rep,name=device_ids,json=deviceIds" json:"device_ids,omitempty"`
}

ContainerDevices contains information about the devices assigned to a container

func (*ContainerDevices) Descriptor

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

func (*ContainerDevices) GetDeviceIds

func (m *ContainerDevices) GetDeviceIds() []string

func (*ContainerDevices) GetResourceName

func (m *ContainerDevices) GetResourceName() string

func (*ContainerDevices) Marshal

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

func (*ContainerDevices) MarshalTo

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

func (*ContainerDevices) ProtoMessage

func (*ContainerDevices) ProtoMessage()

func (*ContainerDevices) Reset

func (m *ContainerDevices) Reset()

func (*ContainerDevices) Size

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

func (*ContainerDevices) String

func (this *ContainerDevices) String() string

func (*ContainerDevices) Unmarshal

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

type ContainerResources

type ContainerResources struct {
	Name    string              `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Devices []*ContainerDevices `protobuf:"bytes,2,rep,name=devices" json:"devices,omitempty"`
}

ContainerResources contains information about the resources assigned to a container

func (*ContainerResources) Descriptor

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

func (*ContainerResources) GetDevices

func (m *ContainerResources) GetDevices() []*ContainerDevices

func (*ContainerResources) GetName

func (m *ContainerResources) GetName() string

func (*ContainerResources) Marshal

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

func (*ContainerResources) MarshalTo

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

func (*ContainerResources) ProtoMessage

func (*ContainerResources) ProtoMessage()

func (*ContainerResources) Reset

func (m *ContainerResources) Reset()

func (*ContainerResources) Size

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

func (*ContainerResources) String

func (this *ContainerResources) String() string

func (*ContainerResources) Unmarshal

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

type ListPodResourcesRequest

type ListPodResourcesRequest struct {
}

ListPodResourcesRequest is the request made to the PodResourcesLister service

func (*ListPodResourcesRequest) Descriptor

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

func (*ListPodResourcesRequest) Marshal

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

func (*ListPodResourcesRequest) MarshalTo

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

func (*ListPodResourcesRequest) ProtoMessage

func (*ListPodResourcesRequest) ProtoMessage()

func (*ListPodResourcesRequest) Reset

func (m *ListPodResourcesRequest) Reset()

func (*ListPodResourcesRequest) Size

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

func (*ListPodResourcesRequest) String

func (this *ListPodResourcesRequest) String() string

func (*ListPodResourcesRequest) Unmarshal

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

type ListPodResourcesResponse

type ListPodResourcesResponse struct {
	PodResources []*PodResources `protobuf:"bytes,1,rep,name=pod_resources,json=podResources" json:"pod_resources,omitempty"`
}

ListPodResourcesResponse is the response returned by List function

func (*ListPodResourcesResponse) Descriptor

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

func (*ListPodResourcesResponse) GetPodResources

func (m *ListPodResourcesResponse) GetPodResources() []*PodResources

func (*ListPodResourcesResponse) Marshal

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

func (*ListPodResourcesResponse) MarshalTo

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

func (*ListPodResourcesResponse) ProtoMessage

func (*ListPodResourcesResponse) ProtoMessage()

func (*ListPodResourcesResponse) Reset

func (m *ListPodResourcesResponse) Reset()

func (*ListPodResourcesResponse) Size

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

func (*ListPodResourcesResponse) String

func (this *ListPodResourcesResponse) String() string

func (*ListPodResourcesResponse) Unmarshal

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

type PodResources

type PodResources 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"`
	Containers []*ContainerResources `protobuf:"bytes,3,rep,name=containers" json:"containers,omitempty"`
}

PodResources contains information about the node resources assigned to a pod

func (*PodResources) Descriptor

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

func (*PodResources) GetContainers

func (m *PodResources) GetContainers() []*ContainerResources

func (*PodResources) GetName

func (m *PodResources) GetName() string

func (*PodResources) GetNamespace

func (m *PodResources) GetNamespace() string

func (*PodResources) Marshal

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

func (*PodResources) MarshalTo

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

func (*PodResources) ProtoMessage

func (*PodResources) ProtoMessage()

func (*PodResources) Reset

func (m *PodResources) Reset()

func (*PodResources) Size

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

func (*PodResources) String

func (this *PodResources) String() string

func (*PodResources) Unmarshal

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

type PodResourcesListerClient

type PodResourcesListerClient interface {
	List(ctx context.Context, in *ListPodResourcesRequest, opts ...grpc.CallOption) (*ListPodResourcesResponse, error)
}

func NewPodResourcesListerClient

func NewPodResourcesListerClient(cc *grpc.ClientConn) PodResourcesListerClient

type PodResourcesListerServer

type PodResourcesListerServer interface {
	List(context.Context, *ListPodResourcesRequest) (*ListPodResourcesResponse, error)
}

Jump to

Keyboard shortcuts

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