Documentation
¶
Index ¶
- Variables
- func ClusterResourceClientType() reflect.Type
- func ClusterResourceHandlerType() reflect.Type
- func ClusterResourceServerType() reflect.Type
- func RegisterClusterResourceHandler(r http.Router, srv ClusterResourceHandler, opts ...http.HandleOption)
- func RegisterClusterResourceImp(regester transport.Register, srv ClusterResourceServer, ...)
- func RegisterClusterResourceServer(s grpc1.ServiceRegistrar, srv ClusterResourceServer, ...)
- func ServiceNames(svr ...string) []string
- func Types() []reflect.Type
- type ClusterNamespacePair
- func (*ClusterNamespacePair) Descriptor() ([]byte, []int)deprecated
- func (x *ClusterNamespacePair) GetClusterName() string
- func (x *ClusterNamespacePair) GetNamespace() string
- func (m *ClusterNamespacePair) MarshalJSON() ([]byte, error)
- func (*ClusterNamespacePair) ProtoMessage()
- func (x *ClusterNamespacePair) ProtoReflect() protoreflect.Message
- func (x *ClusterNamespacePair) Reset()
- func (x *ClusterNamespacePair) String() string
- func (m *ClusterNamespacePair) UnmarshalJSON(b []byte) error
- func (m *ClusterNamespacePair) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *ClusterNamespacePair) Validate() error
- type ClusterResourceClient
- type ClusterResourceDetail
- func (*ClusterResourceDetail) Descriptor() ([]byte, []int)deprecated
- func (x *ClusterResourceDetail) GetClusterName() string
- func (x *ClusterResourceDetail) GetErr() string
- func (x *ClusterResourceDetail) GetHosts() []*HostResourceDetail
- func (x *ClusterResourceDetail) GetSuccess() bool
- func (m *ClusterResourceDetail) MarshalJSON() ([]byte, error)
- func (*ClusterResourceDetail) ProtoMessage()
- func (x *ClusterResourceDetail) ProtoReflect() protoreflect.Message
- func (x *ClusterResourceDetail) Reset()
- func (x *ClusterResourceDetail) String() string
- func (m *ClusterResourceDetail) UnmarshalJSON(b []byte) error
- func (m *ClusterResourceDetail) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *ClusterResourceDetail) Validate() error
- type ClusterResourceHandler
- type ClusterResourceItem
- func (*ClusterResourceItem) Descriptor() ([]byte, []int)deprecated
- func (x *ClusterResourceItem) GetClusterName() string
- func (x *ClusterResourceItem) GetErr() string
- func (x *ClusterResourceItem) GetList() []*NamespaceResourceDetail
- func (x *ClusterResourceItem) GetSuccess() bool
- func (m *ClusterResourceItem) MarshalJSON() ([]byte, error)
- func (*ClusterResourceItem) ProtoMessage()
- func (x *ClusterResourceItem) ProtoReflect() protoreflect.Message
- func (x *ClusterResourceItem) Reset()
- func (x *ClusterResourceItem) String() string
- func (m *ClusterResourceItem) UnmarshalJSON(b []byte) error
- func (m *ClusterResourceItem) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *ClusterResourceItem) Validate() error
- type ClusterResourceServer
- type GetClusterResourcesResponse
- func (*GetClusterResourcesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetClusterResourcesResponse) GetList() []*ClusterResourceDetail
- func (x *GetClusterResourcesResponse) GetTotal() uint32
- func (m *GetClusterResourcesResponse) MarshalJSON() ([]byte, error)
- func (*GetClusterResourcesResponse) ProtoMessage()
- func (x *GetClusterResourcesResponse) ProtoReflect() protoreflect.Message
- func (x *GetClusterResourcesResponse) Reset()
- func (x *GetClusterResourcesResponse) String() string
- func (m *GetClusterResourcesResponse) UnmarshalJSON(b []byte) error
- func (m *GetClusterResourcesResponse) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *GetClusterResourcesResponse) Validate() error
- type GetClustersResourcesRequest
- func (*GetClustersResourcesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetClustersResourcesRequest) GetClusterNames() []string
- func (m *GetClustersResourcesRequest) MarshalJSON() ([]byte, error)
- func (*GetClustersResourcesRequest) ProtoMessage()
- func (x *GetClustersResourcesRequest) ProtoReflect() protoreflect.Message
- func (x *GetClustersResourcesRequest) Reset()
- func (x *GetClustersResourcesRequest) String() string
- func (m *GetClustersResourcesRequest) UnmarshalJSON(b []byte) error
- func (m *GetClustersResourcesRequest) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *GetClustersResourcesRequest) Validate() error
- type GetNamespacesResourcesRequest
- func (*GetNamespacesResourcesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetNamespacesResourcesRequest) GetNamespaces() []*ClusterNamespacePair
- func (m *GetNamespacesResourcesRequest) MarshalJSON() ([]byte, error)
- func (*GetNamespacesResourcesRequest) ProtoMessage()
- func (x *GetNamespacesResourcesRequest) ProtoReflect() protoreflect.Message
- func (x *GetNamespacesResourcesRequest) Reset()
- func (x *GetNamespacesResourcesRequest) String() string
- func (m *GetNamespacesResourcesRequest) UnmarshalJSON(b []byte) error
- func (m *GetNamespacesResourcesRequest) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *GetNamespacesResourcesRequest) Validate() error
- type GetNamespacesResourcesResponse
- func (*GetNamespacesResourcesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetNamespacesResourcesResponse) GetList() []*ClusterResourceItem
- func (x *GetNamespacesResourcesResponse) GetTotal() uint32
- func (m *GetNamespacesResourcesResponse) MarshalJSON() ([]byte, error)
- func (*GetNamespacesResourcesResponse) ProtoMessage()
- func (x *GetNamespacesResourcesResponse) ProtoReflect() protoreflect.Message
- func (x *GetNamespacesResourcesResponse) Reset()
- func (x *GetNamespacesResourcesResponse) String() string
- func (m *GetNamespacesResourcesResponse) UnmarshalJSON(b []byte) error
- func (m *GetNamespacesResourcesResponse) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *GetNamespacesResourcesResponse) Validate() error
- type HostResourceDetail
- func (*HostResourceDetail) Descriptor() ([]byte, []int)deprecated
- func (x *HostResourceDetail) GetCpuAllocatable() uint64
- func (x *HostResourceDetail) GetCpuRequest() uint64
- func (x *HostResourceDetail) GetCpuTotal() uint64
- func (x *HostResourceDetail) GetHost() string
- func (x *HostResourceDetail) GetLabels() []string
- func (x *HostResourceDetail) GetMemAllocatable() uint64
- func (x *HostResourceDetail) GetMemRequest() uint64
- func (x *HostResourceDetail) GetMemTotal() uint64
- func (m *HostResourceDetail) MarshalJSON() ([]byte, error)
- func (*HostResourceDetail) ProtoMessage()
- func (x *HostResourceDetail) ProtoReflect() protoreflect.Message
- func (x *HostResourceDetail) Reset()
- func (x *HostResourceDetail) String() string
- func (m *HostResourceDetail) UnmarshalJSON(b []byte) error
- func (m *HostResourceDetail) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *HostResourceDetail) Validate() error
- type NamespaceResourceDetail
- func (*NamespaceResourceDetail) Descriptor() ([]byte, []int)deprecated
- func (x *NamespaceResourceDetail) GetCpuRequest() uint64
- func (x *NamespaceResourceDetail) GetMemRequest() uint64
- func (x *NamespaceResourceDetail) GetNamespace() string
- func (m *NamespaceResourceDetail) MarshalJSON() ([]byte, error)
- func (*NamespaceResourceDetail) ProtoMessage()
- func (x *NamespaceResourceDetail) ProtoReflect() protoreflect.Message
- func (x *NamespaceResourceDetail) Reset()
- func (x *NamespaceResourceDetail) String() string
- func (m *NamespaceResourceDetail) UnmarshalJSON(b []byte) error
- func (m *NamespaceResourceDetail) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *NamespaceResourceDetail) Validate() error
- type UnimplementedClusterResourceServer
- func (*UnimplementedClusterResourceServer) GetClustersResources(context.Context, *GetClustersResourcesRequest) (*GetClusterResourcesResponse, error)
- func (*UnimplementedClusterResourceServer) GetNamespacesResources(context.Context, *GetNamespacesResourcesRequest) (*GetNamespacesResourcesResponse, error)
Constants ¶
This section is empty.
Variables ¶
var File_dashboard_proto protoreflect.FileDescriptor
Functions ¶
func ClusterResourceClientType ¶
ClusterResourceClientType .
func ClusterResourceHandlerType ¶
ClusterResourceHandlerType .
func ClusterResourceServerType ¶
ClusterResourceServerType .
func RegisterClusterResourceHandler ¶
func RegisterClusterResourceHandler(r http.Router, srv ClusterResourceHandler, opts ...http.HandleOption)
RegisterClusterResourceHandler register ClusterResourceHandler to http.Router.
func RegisterClusterResourceImp ¶
func RegisterClusterResourceImp(regester transport.Register, srv ClusterResourceServer, opts ...transport.ServiceOption)
RegisterClusterResourceImp dashboard.proto
func RegisterClusterResourceServer ¶
func RegisterClusterResourceServer(s grpc1.ServiceRegistrar, srv ClusterResourceServer, opts ...grpc1.HandleOption)
Types ¶
type ClusterNamespacePair ¶
type ClusterNamespacePair struct { ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*ClusterNamespacePair) Descriptor
deprecated
func (*ClusterNamespacePair) Descriptor() ([]byte, []int)
Deprecated: Use ClusterNamespacePair.ProtoReflect.Descriptor instead.
func (*ClusterNamespacePair) GetClusterName ¶
func (x *ClusterNamespacePair) GetClusterName() string
func (*ClusterNamespacePair) GetNamespace ¶
func (x *ClusterNamespacePair) GetNamespace() string
func (*ClusterNamespacePair) MarshalJSON ¶
func (m *ClusterNamespacePair) MarshalJSON() ([]byte, error)
ClusterNamespacePair implement json.Marshaler.
func (*ClusterNamespacePair) ProtoMessage ¶
func (*ClusterNamespacePair) ProtoMessage()
func (*ClusterNamespacePair) ProtoReflect ¶
func (x *ClusterNamespacePair) ProtoReflect() protoreflect.Message
func (*ClusterNamespacePair) Reset ¶
func (x *ClusterNamespacePair) Reset()
func (*ClusterNamespacePair) String ¶
func (x *ClusterNamespacePair) String() string
func (*ClusterNamespacePair) UnmarshalJSON ¶
func (m *ClusterNamespacePair) UnmarshalJSON(b []byte) error
ClusterNamespacePair implement json.Marshaler.
func (*ClusterNamespacePair) UnmarshalURLValues ¶
func (m *ClusterNamespacePair) UnmarshalURLValues(prefix string, values url.Values) error
ClusterNamespacePair implement urlenc.URLValuesUnmarshaler.
func (*ClusterNamespacePair) Validate ¶
func (this *ClusterNamespacePair) Validate() error
type ClusterResourceClient ¶
type ClusterResourceClient interface { GetClustersResources(ctx context.Context, in *GetClustersResourcesRequest, opts ...grpc.CallOption) (*GetClusterResourcesResponse, error) GetNamespacesResources(ctx context.Context, in *GetNamespacesResourcesRequest, opts ...grpc.CallOption) (*GetNamespacesResourcesResponse, error) }
ClusterResourceClient is the client API for ClusterResource 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.
func NewClusterResourceClient ¶
func NewClusterResourceClient(cc grpc1.ClientConnInterface) ClusterResourceClient
type ClusterResourceDetail ¶
type ClusterResourceDetail struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Err string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"` ClusterName string `protobuf:"bytes,3,opt,name=clusterName,proto3" json:"clusterName,omitempty"` Hosts []*HostResourceDetail `protobuf:"bytes,4,rep,name=hosts,proto3" json:"hosts,omitempty"` // contains filtered or unexported fields }
func (*ClusterResourceDetail) Descriptor
deprecated
func (*ClusterResourceDetail) Descriptor() ([]byte, []int)
Deprecated: Use ClusterResourceDetail.ProtoReflect.Descriptor instead.
func (*ClusterResourceDetail) GetClusterName ¶
func (x *ClusterResourceDetail) GetClusterName() string
func (*ClusterResourceDetail) GetErr ¶
func (x *ClusterResourceDetail) GetErr() string
func (*ClusterResourceDetail) GetHosts ¶
func (x *ClusterResourceDetail) GetHosts() []*HostResourceDetail
func (*ClusterResourceDetail) GetSuccess ¶
func (x *ClusterResourceDetail) GetSuccess() bool
func (*ClusterResourceDetail) MarshalJSON ¶
func (m *ClusterResourceDetail) MarshalJSON() ([]byte, error)
ClusterResourceDetail implement json.Marshaler.
func (*ClusterResourceDetail) ProtoMessage ¶
func (*ClusterResourceDetail) ProtoMessage()
func (*ClusterResourceDetail) ProtoReflect ¶
func (x *ClusterResourceDetail) ProtoReflect() protoreflect.Message
func (*ClusterResourceDetail) Reset ¶
func (x *ClusterResourceDetail) Reset()
func (*ClusterResourceDetail) String ¶
func (x *ClusterResourceDetail) String() string
func (*ClusterResourceDetail) UnmarshalJSON ¶
func (m *ClusterResourceDetail) UnmarshalJSON(b []byte) error
ClusterResourceDetail implement json.Marshaler.
func (*ClusterResourceDetail) UnmarshalURLValues ¶
func (m *ClusterResourceDetail) UnmarshalURLValues(prefix string, values url.Values) error
ClusterResourceDetail implement urlenc.URLValuesUnmarshaler.
func (*ClusterResourceDetail) Validate ¶
func (this *ClusterResourceDetail) Validate() error
type ClusterResourceHandler ¶
type ClusterResourceHandler interface { }
ClusterResourceHandler is the server API for ClusterResource service.
type ClusterResourceItem ¶
type ClusterResourceItem struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Err string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"` ClusterName string `protobuf:"bytes,3,opt,name=clusterName,proto3" json:"clusterName,omitempty"` List []*NamespaceResourceDetail `protobuf:"bytes,4,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*ClusterResourceItem) Descriptor
deprecated
func (*ClusterResourceItem) Descriptor() ([]byte, []int)
Deprecated: Use ClusterResourceItem.ProtoReflect.Descriptor instead.
func (*ClusterResourceItem) GetClusterName ¶
func (x *ClusterResourceItem) GetClusterName() string
func (*ClusterResourceItem) GetErr ¶
func (x *ClusterResourceItem) GetErr() string
func (*ClusterResourceItem) GetList ¶
func (x *ClusterResourceItem) GetList() []*NamespaceResourceDetail
func (*ClusterResourceItem) GetSuccess ¶
func (x *ClusterResourceItem) GetSuccess() bool
func (*ClusterResourceItem) MarshalJSON ¶
func (m *ClusterResourceItem) MarshalJSON() ([]byte, error)
ClusterResourceItem implement json.Marshaler.
func (*ClusterResourceItem) ProtoMessage ¶
func (*ClusterResourceItem) ProtoMessage()
func (*ClusterResourceItem) ProtoReflect ¶
func (x *ClusterResourceItem) ProtoReflect() protoreflect.Message
func (*ClusterResourceItem) Reset ¶
func (x *ClusterResourceItem) Reset()
func (*ClusterResourceItem) String ¶
func (x *ClusterResourceItem) String() string
func (*ClusterResourceItem) UnmarshalJSON ¶
func (m *ClusterResourceItem) UnmarshalJSON(b []byte) error
ClusterResourceItem implement json.Marshaler.
func (*ClusterResourceItem) UnmarshalURLValues ¶
func (m *ClusterResourceItem) UnmarshalURLValues(prefix string, values url.Values) error
ClusterResourceItem implement urlenc.URLValuesUnmarshaler.
func (*ClusterResourceItem) Validate ¶
func (this *ClusterResourceItem) Validate() error
type ClusterResourceServer ¶
type ClusterResourceServer interface { GetClustersResources(context.Context, *GetClustersResourcesRequest) (*GetClusterResourcesResponse, error) GetNamespacesResources(context.Context, *GetNamespacesResourcesRequest) (*GetNamespacesResourcesResponse, error) }
ClusterResourceServer is the server API for ClusterResource service. All implementations should embed UnimplementedClusterResourceServer for forward compatibility
type GetClusterResourcesResponse ¶
type GetClusterResourcesResponse struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*ClusterResourceDetail `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*GetClusterResourcesResponse) Descriptor
deprecated
func (*GetClusterResourcesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetClusterResourcesResponse.ProtoReflect.Descriptor instead.
func (*GetClusterResourcesResponse) GetList ¶
func (x *GetClusterResourcesResponse) GetList() []*ClusterResourceDetail
func (*GetClusterResourcesResponse) GetTotal ¶
func (x *GetClusterResourcesResponse) GetTotal() uint32
func (*GetClusterResourcesResponse) MarshalJSON ¶
func (m *GetClusterResourcesResponse) MarshalJSON() ([]byte, error)
GetClusterResourcesResponse implement json.Marshaler.
func (*GetClusterResourcesResponse) ProtoMessage ¶
func (*GetClusterResourcesResponse) ProtoMessage()
func (*GetClusterResourcesResponse) ProtoReflect ¶
func (x *GetClusterResourcesResponse) ProtoReflect() protoreflect.Message
func (*GetClusterResourcesResponse) Reset ¶
func (x *GetClusterResourcesResponse) Reset()
func (*GetClusterResourcesResponse) String ¶
func (x *GetClusterResourcesResponse) String() string
func (*GetClusterResourcesResponse) UnmarshalJSON ¶
func (m *GetClusterResourcesResponse) UnmarshalJSON(b []byte) error
GetClusterResourcesResponse implement json.Marshaler.
func (*GetClusterResourcesResponse) UnmarshalURLValues ¶
func (m *GetClusterResourcesResponse) UnmarshalURLValues(prefix string, values url.Values) error
GetClusterResourcesResponse implement urlenc.URLValuesUnmarshaler.
func (*GetClusterResourcesResponse) Validate ¶
func (this *GetClusterResourcesResponse) Validate() error
type GetClustersResourcesRequest ¶
type GetClustersResourcesRequest struct { ClusterNames []string `protobuf:"bytes,1,rep,name=clusterNames,proto3" json:"clusterNames,omitempty"` // contains filtered or unexported fields }
func (*GetClustersResourcesRequest) Descriptor
deprecated
func (*GetClustersResourcesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetClustersResourcesRequest.ProtoReflect.Descriptor instead.
func (*GetClustersResourcesRequest) GetClusterNames ¶
func (x *GetClustersResourcesRequest) GetClusterNames() []string
func (*GetClustersResourcesRequest) MarshalJSON ¶
func (m *GetClustersResourcesRequest) MarshalJSON() ([]byte, error)
GetClustersResourcesRequest implement json.Marshaler.
func (*GetClustersResourcesRequest) ProtoMessage ¶
func (*GetClustersResourcesRequest) ProtoMessage()
func (*GetClustersResourcesRequest) ProtoReflect ¶
func (x *GetClustersResourcesRequest) ProtoReflect() protoreflect.Message
func (*GetClustersResourcesRequest) Reset ¶
func (x *GetClustersResourcesRequest) Reset()
func (*GetClustersResourcesRequest) String ¶
func (x *GetClustersResourcesRequest) String() string
func (*GetClustersResourcesRequest) UnmarshalJSON ¶
func (m *GetClustersResourcesRequest) UnmarshalJSON(b []byte) error
GetClustersResourcesRequest implement json.Marshaler.
func (*GetClustersResourcesRequest) UnmarshalURLValues ¶
func (m *GetClustersResourcesRequest) UnmarshalURLValues(prefix string, values url.Values) error
GetClustersResourcesRequest implement urlenc.URLValuesUnmarshaler.
func (*GetClustersResourcesRequest) Validate ¶
func (this *GetClustersResourcesRequest) Validate() error
type GetNamespacesResourcesRequest ¶
type GetNamespacesResourcesRequest struct { Namespaces []*ClusterNamespacePair `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"` // contains filtered or unexported fields }
func (*GetNamespacesResourcesRequest) Descriptor
deprecated
func (*GetNamespacesResourcesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNamespacesResourcesRequest.ProtoReflect.Descriptor instead.
func (*GetNamespacesResourcesRequest) GetNamespaces ¶
func (x *GetNamespacesResourcesRequest) GetNamespaces() []*ClusterNamespacePair
func (*GetNamespacesResourcesRequest) MarshalJSON ¶
func (m *GetNamespacesResourcesRequest) MarshalJSON() ([]byte, error)
GetNamespacesResourcesRequest implement json.Marshaler.
func (*GetNamespacesResourcesRequest) ProtoMessage ¶
func (*GetNamespacesResourcesRequest) ProtoMessage()
func (*GetNamespacesResourcesRequest) ProtoReflect ¶
func (x *GetNamespacesResourcesRequest) ProtoReflect() protoreflect.Message
func (*GetNamespacesResourcesRequest) Reset ¶
func (x *GetNamespacesResourcesRequest) Reset()
func (*GetNamespacesResourcesRequest) String ¶
func (x *GetNamespacesResourcesRequest) String() string
func (*GetNamespacesResourcesRequest) UnmarshalJSON ¶
func (m *GetNamespacesResourcesRequest) UnmarshalJSON(b []byte) error
GetNamespacesResourcesRequest implement json.Marshaler.
func (*GetNamespacesResourcesRequest) UnmarshalURLValues ¶
func (m *GetNamespacesResourcesRequest) UnmarshalURLValues(prefix string, values url.Values) error
GetNamespacesResourcesRequest implement urlenc.URLValuesUnmarshaler.
func (*GetNamespacesResourcesRequest) Validate ¶
func (this *GetNamespacesResourcesRequest) Validate() error
type GetNamespacesResourcesResponse ¶
type GetNamespacesResourcesResponse struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*ClusterResourceItem `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*GetNamespacesResourcesResponse) Descriptor
deprecated
func (*GetNamespacesResourcesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNamespacesResourcesResponse.ProtoReflect.Descriptor instead.
func (*GetNamespacesResourcesResponse) GetList ¶
func (x *GetNamespacesResourcesResponse) GetList() []*ClusterResourceItem
func (*GetNamespacesResourcesResponse) GetTotal ¶
func (x *GetNamespacesResourcesResponse) GetTotal() uint32
func (*GetNamespacesResourcesResponse) MarshalJSON ¶
func (m *GetNamespacesResourcesResponse) MarshalJSON() ([]byte, error)
GetNamespacesResourcesResponse implement json.Marshaler.
func (*GetNamespacesResourcesResponse) ProtoMessage ¶
func (*GetNamespacesResourcesResponse) ProtoMessage()
func (*GetNamespacesResourcesResponse) ProtoReflect ¶
func (x *GetNamespacesResourcesResponse) ProtoReflect() protoreflect.Message
func (*GetNamespacesResourcesResponse) Reset ¶
func (x *GetNamespacesResourcesResponse) Reset()
func (*GetNamespacesResourcesResponse) String ¶
func (x *GetNamespacesResourcesResponse) String() string
func (*GetNamespacesResourcesResponse) UnmarshalJSON ¶
func (m *GetNamespacesResourcesResponse) UnmarshalJSON(b []byte) error
GetNamespacesResourcesResponse implement json.Marshaler.
func (*GetNamespacesResourcesResponse) UnmarshalURLValues ¶
func (m *GetNamespacesResourcesResponse) UnmarshalURLValues(prefix string, values url.Values) error
GetNamespacesResourcesResponse implement urlenc.URLValuesUnmarshaler.
func (*GetNamespacesResourcesResponse) Validate ¶
func (this *GetNamespacesResourcesResponse) Validate() error
type HostResourceDetail ¶
type HostResourceDetail struct { Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` CpuAllocatable uint64 `protobuf:"varint,3,opt,name=cpuAllocatable,proto3" json:"cpuAllocatable,omitempty"` CpuTotal uint64 `protobuf:"varint,4,opt,name=cpuTotal,proto3" json:"cpuTotal,omitempty"` CpuRequest uint64 `protobuf:"varint,5,opt,name=cpuRequest,proto3" json:"cpuRequest,omitempty"` MemAllocatable uint64 `protobuf:"varint,6,opt,name=memAllocatable,proto3" json:"memAllocatable,omitempty"` MemTotal uint64 `protobuf:"varint,7,opt,name=memTotal,proto3" json:"memTotal,omitempty"` MemRequest uint64 `protobuf:"varint,8,opt,name=memRequest,proto3" json:"memRequest,omitempty"` Labels []string `protobuf:"bytes,9,rep,name=labels,proto3" json:"labels,omitempty"` // contains filtered or unexported fields }
func (*HostResourceDetail) Descriptor
deprecated
func (*HostResourceDetail) Descriptor() ([]byte, []int)
Deprecated: Use HostResourceDetail.ProtoReflect.Descriptor instead.
func (*HostResourceDetail) GetCpuAllocatable ¶
func (x *HostResourceDetail) GetCpuAllocatable() uint64
func (*HostResourceDetail) GetCpuRequest ¶
func (x *HostResourceDetail) GetCpuRequest() uint64
func (*HostResourceDetail) GetCpuTotal ¶
func (x *HostResourceDetail) GetCpuTotal() uint64
func (*HostResourceDetail) GetHost ¶
func (x *HostResourceDetail) GetHost() string
func (*HostResourceDetail) GetLabels ¶
func (x *HostResourceDetail) GetLabels() []string
func (*HostResourceDetail) GetMemAllocatable ¶
func (x *HostResourceDetail) GetMemAllocatable() uint64
func (*HostResourceDetail) GetMemRequest ¶
func (x *HostResourceDetail) GetMemRequest() uint64
func (*HostResourceDetail) GetMemTotal ¶
func (x *HostResourceDetail) GetMemTotal() uint64
func (*HostResourceDetail) MarshalJSON ¶
func (m *HostResourceDetail) MarshalJSON() ([]byte, error)
HostResourceDetail implement json.Marshaler.
func (*HostResourceDetail) ProtoMessage ¶
func (*HostResourceDetail) ProtoMessage()
func (*HostResourceDetail) ProtoReflect ¶
func (x *HostResourceDetail) ProtoReflect() protoreflect.Message
func (*HostResourceDetail) Reset ¶
func (x *HostResourceDetail) Reset()
func (*HostResourceDetail) String ¶
func (x *HostResourceDetail) String() string
func (*HostResourceDetail) UnmarshalJSON ¶
func (m *HostResourceDetail) UnmarshalJSON(b []byte) error
HostResourceDetail implement json.Marshaler.
func (*HostResourceDetail) UnmarshalURLValues ¶
func (m *HostResourceDetail) UnmarshalURLValues(prefix string, values url.Values) error
HostResourceDetail implement urlenc.URLValuesUnmarshaler.
func (*HostResourceDetail) Validate ¶
func (this *HostResourceDetail) Validate() error
type NamespaceResourceDetail ¶
type NamespaceResourceDetail struct { Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` CpuRequest uint64 `protobuf:"varint,3,opt,name=cpuRequest,proto3" json:"cpuRequest,omitempty"` MemRequest uint64 `protobuf:"varint,4,opt,name=memRequest,proto3" json:"memRequest,omitempty"` // contains filtered or unexported fields }
func (*NamespaceResourceDetail) Descriptor
deprecated
func (*NamespaceResourceDetail) Descriptor() ([]byte, []int)
Deprecated: Use NamespaceResourceDetail.ProtoReflect.Descriptor instead.
func (*NamespaceResourceDetail) GetCpuRequest ¶
func (x *NamespaceResourceDetail) GetCpuRequest() uint64
func (*NamespaceResourceDetail) GetMemRequest ¶
func (x *NamespaceResourceDetail) GetMemRequest() uint64
func (*NamespaceResourceDetail) GetNamespace ¶
func (x *NamespaceResourceDetail) GetNamespace() string
func (*NamespaceResourceDetail) MarshalJSON ¶
func (m *NamespaceResourceDetail) MarshalJSON() ([]byte, error)
NamespaceResourceDetail implement json.Marshaler.
func (*NamespaceResourceDetail) ProtoMessage ¶
func (*NamespaceResourceDetail) ProtoMessage()
func (*NamespaceResourceDetail) ProtoReflect ¶
func (x *NamespaceResourceDetail) ProtoReflect() protoreflect.Message
func (*NamespaceResourceDetail) Reset ¶
func (x *NamespaceResourceDetail) Reset()
func (*NamespaceResourceDetail) String ¶
func (x *NamespaceResourceDetail) String() string
func (*NamespaceResourceDetail) UnmarshalJSON ¶
func (m *NamespaceResourceDetail) UnmarshalJSON(b []byte) error
NamespaceResourceDetail implement json.Marshaler.
func (*NamespaceResourceDetail) UnmarshalURLValues ¶
func (m *NamespaceResourceDetail) UnmarshalURLValues(prefix string, values url.Values) error
NamespaceResourceDetail implement urlenc.URLValuesUnmarshaler.
func (*NamespaceResourceDetail) Validate ¶
func (this *NamespaceResourceDetail) Validate() error
type UnimplementedClusterResourceServer ¶
type UnimplementedClusterResourceServer struct { }
UnimplementedClusterResourceServer should be embedded to have forward compatible implementations.
func (*UnimplementedClusterResourceServer) GetClustersResources ¶
func (*UnimplementedClusterResourceServer) GetClustersResources(context.Context, *GetClustersResourcesRequest) (*GetClusterResourcesResponse, error)
func (*UnimplementedClusterResourceServer) GetNamespacesResources ¶
func (*UnimplementedClusterResourceServer) GetNamespacesResources(context.Context, *GetNamespacesResourcesRequest) (*GetNamespacesResourcesResponse, error)