v1alpha1

package
v0.34.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: Apache-2.0 Imports: 9 Imported by: 35

Documentation

Index

Constants

View Source
const (
	PodResourcesLister_List_FullMethodName = "/v1alpha1.PodResourcesLister/List"
)

Variables

View Source
var File_staging_src_k8s_io_kubelet_pkg_apis_podresources_v1alpha1_api_proto protoreflect.FileDescriptor
View Source
var PodResourcesLister_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "v1alpha1.PodResourcesLister",
	HandlerType: (*PodResourcesListerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _PodResourcesLister_List_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "staging/src/k8s.io/kubelet/pkg/apis/podresources/v1alpha1/api.proto",
}

PodResourcesLister_ServiceDesc is the grpc.ServiceDesc for PodResourcesLister service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterPodResourcesListerServer

func RegisterPodResourcesListerServer(s grpc.ServiceRegistrar, 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,proto3" json:"device_ids,omitempty"`
	// contains filtered or unexported fields
}

ContainerDevices contains information about the devices assigned to a container

func (*ContainerDevices) Descriptor deprecated

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

Deprecated: Use ContainerDevices.ProtoReflect.Descriptor instead.

func (*ContainerDevices) GetDeviceIds

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

func (*ContainerDevices) GetResourceName

func (x *ContainerDevices) GetResourceName() string

func (*ContainerDevices) ProtoMessage

func (*ContainerDevices) ProtoMessage()

func (*ContainerDevices) ProtoReflect added in v0.34.0

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

func (*ContainerDevices) Reset

func (x *ContainerDevices) Reset()

func (*ContainerDevices) String

func (x *ContainerDevices) String() string

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,proto3" json:"devices,omitempty"`
	// contains filtered or unexported fields
}

ContainerResources contains information about the resources assigned to a container

func (*ContainerResources) Descriptor deprecated

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

Deprecated: Use ContainerResources.ProtoReflect.Descriptor instead.

func (*ContainerResources) GetDevices

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

func (*ContainerResources) GetName

func (x *ContainerResources) GetName() string

func (*ContainerResources) ProtoMessage

func (*ContainerResources) ProtoMessage()

func (*ContainerResources) ProtoReflect added in v0.34.0

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

func (*ContainerResources) Reset

func (x *ContainerResources) Reset()

func (*ContainerResources) String

func (x *ContainerResources) String() string

type ListPodResourcesRequest

type ListPodResourcesRequest struct {
	// contains filtered or unexported fields
}

ListPodResourcesRequest is the request made to the PodResourcesLister service

func (*ListPodResourcesRequest) Descriptor deprecated

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

Deprecated: Use ListPodResourcesRequest.ProtoReflect.Descriptor instead.

func (*ListPodResourcesRequest) ProtoMessage

func (*ListPodResourcesRequest) ProtoMessage()

func (*ListPodResourcesRequest) ProtoReflect added in v0.34.0

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

func (*ListPodResourcesRequest) Reset

func (x *ListPodResourcesRequest) Reset()

func (*ListPodResourcesRequest) String

func (x *ListPodResourcesRequest) String() string

type ListPodResourcesResponse

type ListPodResourcesResponse struct {
	PodResources []*PodResources `protobuf:"bytes,1,rep,name=pod_resources,json=podResources,proto3" json:"pod_resources,omitempty"`
	// contains filtered or unexported fields
}

ListPodResourcesResponse is the response returned by List function

func (*ListPodResourcesResponse) Descriptor deprecated

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

Deprecated: Use ListPodResourcesResponse.ProtoReflect.Descriptor instead.

func (*ListPodResourcesResponse) GetPodResources

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

func (*ListPodResourcesResponse) ProtoMessage

func (*ListPodResourcesResponse) ProtoMessage()

func (*ListPodResourcesResponse) ProtoReflect added in v0.34.0

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

func (*ListPodResourcesResponse) Reset

func (x *ListPodResourcesResponse) Reset()

func (*ListPodResourcesResponse) String

func (x *ListPodResourcesResponse) String() string

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,proto3" json:"containers,omitempty"`
	// contains filtered or unexported fields
}

PodResources contains information about the node resources assigned to a pod

func (*PodResources) Descriptor deprecated

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

Deprecated: Use PodResources.ProtoReflect.Descriptor instead.

func (*PodResources) GetContainers

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

func (*PodResources) GetName

func (x *PodResources) GetName() string

func (*PodResources) GetNamespace

func (x *PodResources) GetNamespace() string

func (*PodResources) ProtoMessage

func (*PodResources) ProtoMessage()

func (*PodResources) ProtoReflect added in v0.34.0

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

func (*PodResources) Reset

func (x *PodResources) Reset()

func (*PodResources) String

func (x *PodResources) String() string

type PodResourcesListerClient

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

PodResourcesListerClient is the client API for PodResourcesLister service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

PodResourcesLister is a service provided by the kubelet that provides information about the node resources consumed by pods and containers on the node

type PodResourcesListerServer

type PodResourcesListerServer interface {
	List(context.Context, *ListPodResourcesRequest) (*ListPodResourcesResponse, error)
	// contains filtered or unexported methods
}

PodResourcesListerServer is the server API for PodResourcesLister service. All implementations must embed UnimplementedPodResourcesListerServer for forward compatibility.

PodResourcesLister is a service provided by the kubelet that provides information about the node resources consumed by pods and containers on the node

type UnimplementedPodResourcesListerServer

type UnimplementedPodResourcesListerServer struct{}

UnimplementedPodResourcesListerServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedPodResourcesListerServer) List

type UnsafePodResourcesListerServer added in v0.34.0

type UnsafePodResourcesListerServer interface {
	// contains filtered or unexported methods
}

UnsafePodResourcesListerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PodResourcesListerServer will result in compilation errors.

Jump to

Keyboard shortcuts

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