pb

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: Apache-2.0 Imports: 22 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_dashboard_proto protoreflect.FileDescriptor

Functions

func ClusterResourceClientType

func ClusterResourceClientType() reflect.Type

ClusterResourceClientType .

func ClusterResourceHandlerType

func ClusterResourceHandlerType() reflect.Type

ClusterResourceHandlerType .

func ClusterResourceServerType

func ClusterResourceServerType() reflect.Type

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)

func ServiceNames

func ServiceNames(svr ...string) []string

ServiceNames return all service names

func Types

func Types() []reflect.Type

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.

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 (*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 (*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 (*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 (*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 (*GetNamespacesResourcesRequest) MarshalJSON

func (m *GetNamespacesResourcesRequest) MarshalJSON() ([]byte, error)

GetNamespacesResourcesRequest implement json.Marshaler.

func (*GetNamespacesResourcesRequest) ProtoMessage

func (*GetNamespacesResourcesRequest) ProtoMessage()

func (*GetNamespacesResourcesRequest) ProtoReflect

func (*GetNamespacesResourcesRequest) Reset

func (x *GetNamespacesResourcesRequest) Reset()

func (*GetNamespacesResourcesRequest) 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 (*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 (*GetNamespacesResourcesResponse) Reset

func (x *GetNamespacesResourcesResponse) Reset()

func (*GetNamespacesResourcesResponse) 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

Jump to

Keyboard shortcuts

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