system

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSystemServer

func RegisterSystemServer(s *grpc.Server, srv SystemServer)

Types

type GenericRequest

type GenericRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GenericRequest) Descriptor

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

func (*GenericRequest) ProtoMessage

func (*GenericRequest) ProtoMessage()

func (*GenericRequest) Reset

func (m *GenericRequest) Reset()

func (*GenericRequest) String

func (m *GenericRequest) String() string

func (*GenericRequest) XXX_DiscardUnknown

func (m *GenericRequest) XXX_DiscardUnknown()

func (*GenericRequest) XXX_Marshal

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

func (*GenericRequest) XXX_Merge

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

func (*GenericRequest) XXX_Size

func (m *GenericRequest) XXX_Size() int

func (*GenericRequest) XXX_Unmarshal

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

type SystemClient

type SystemClient interface {
	SystemStatus(ctx context.Context, in *GenericRequest, opts ...grpc.CallOption) (*SystemStatusResponse, error)
	SystemSummary(ctx context.Context, in *GenericRequest, opts ...grpc.CallOption) (*SystemSummaryResponse, error)
}

SystemClient is the client API for System service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSystemClient

func NewSystemClient(cc *grpc.ClientConn) SystemClient

type SystemInfo

type SystemInfo struct {
	HostName             string               `protobuf:"bytes,1,opt,name=hostName,proto3" json:"hostName,omitempty"`
	ContId               string               `protobuf:"bytes,2,opt,name=contId,proto3" json:"contId,omitempty"`
	Gw                   bool                 `protobuf:"varint,3,opt,name=gw,proto3" json:"gw,omitempty"`
	State                string               `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"`
	VdevCount            int32                `protobuf:"varint,5,opt,name=vdevCount,proto3" json:"vdevCount,omitempty"`
	VdevOfflineCount     int32                `protobuf:"varint,6,opt,name=vdevOfflineCount,proto3" json:"vdevOfflineCount,omitempty"`
	VdevReadOnlyCount    int32                `protobuf:"varint,7,opt,name=vdevReadOnlyCount,proto3" json:"vdevReadOnlyCount,omitempty"`
	Vdevs                map[string]*VdevInfo `` /* 151-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*SystemInfo) Descriptor

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

func (*SystemInfo) GetContId

func (m *SystemInfo) GetContId() string

func (*SystemInfo) GetGw

func (m *SystemInfo) GetGw() bool

func (*SystemInfo) GetHostName

func (m *SystemInfo) GetHostName() string

func (*SystemInfo) GetState

func (m *SystemInfo) GetState() string

func (*SystemInfo) GetVdevCount

func (m *SystemInfo) GetVdevCount() int32

func (*SystemInfo) GetVdevOfflineCount

func (m *SystemInfo) GetVdevOfflineCount() int32

func (*SystemInfo) GetVdevReadOnlyCount

func (m *SystemInfo) GetVdevReadOnlyCount() int32

func (*SystemInfo) GetVdevs

func (m *SystemInfo) GetVdevs() map[string]*VdevInfo

func (*SystemInfo) ProtoMessage

func (*SystemInfo) ProtoMessage()

func (*SystemInfo) Reset

func (m *SystemInfo) Reset()

func (*SystemInfo) String

func (m *SystemInfo) String() string

func (*SystemInfo) XXX_DiscardUnknown

func (m *SystemInfo) XXX_DiscardUnknown()

func (*SystemInfo) XXX_Marshal

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

func (*SystemInfo) XXX_Merge

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

func (*SystemInfo) XXX_Size

func (m *SystemInfo) XXX_Size() int

func (*SystemInfo) XXX_Unmarshal

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

type SystemServer

type SystemServer interface {
	SystemStatus(context.Context, *GenericRequest) (*SystemStatusResponse, error)
	SystemSummary(context.Context, *GenericRequest) (*SystemSummaryResponse, error)
}

SystemServer is the server API for System service.

type SystemStatusResponse

type SystemStatusResponse struct {
	Status               map[string]*SystemInfo `` /* 153-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*SystemStatusResponse) Descriptor

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

func (*SystemStatusResponse) GetStatus

func (m *SystemStatusResponse) GetStatus() map[string]*SystemInfo

func (*SystemStatusResponse) ProtoMessage

func (*SystemStatusResponse) ProtoMessage()

func (*SystemStatusResponse) Reset

func (m *SystemStatusResponse) Reset()

func (*SystemStatusResponse) String

func (m *SystemStatusResponse) String() string

func (*SystemStatusResponse) XXX_DiscardUnknown

func (m *SystemStatusResponse) XXX_DiscardUnknown()

func (*SystemStatusResponse) XXX_Marshal

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

func (*SystemStatusResponse) XXX_Merge

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

func (*SystemStatusResponse) XXX_Size

func (m *SystemStatusResponse) XXX_Size() int

func (*SystemStatusResponse) XXX_Unmarshal

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

type SystemSummaryResponse

type SystemSummaryResponse struct {
	TotalCapacity          int64    `protobuf:"varint,1,opt,name=totalCapacity,proto3" json:"totalCapacity,omitempty"`
	TotalUsed              int64    `protobuf:"varint,2,opt,name=totalUsed,proto3" json:"totalUsed,omitempty"`
	TotalAvailable         int64    `protobuf:"varint,3,opt,name=totalAvailable,proto3" json:"totalAvailable,omitempty"`
	TotalUtilization       float32  `protobuf:"fixed32,4,opt,name=totalUtilization,proto3" json:"totalUtilization,omitempty"`
	TotalMdoffloadCapacity int64    `protobuf:"varint,5,opt,name=totalMdoffloadCapacity,proto3" json:"totalMdoffloadCapacity,omitempty"`
	TotalMdoffloadUsed     int64    `protobuf:"varint,6,opt,name=totalMdoffloadUsed,proto3" json:"totalMdoffloadUsed,omitempty"`
	TotalS3OffloadCapacity int64    `protobuf:"varint,7,opt,name=totalS3offloadCapacity,proto3" json:"totalS3offloadCapacity,omitempty"`
	TotalS3OffloadUsed     int64    `protobuf:"varint,8,opt,name=totalS3offloadUsed,proto3" json:"totalS3offloadUsed,omitempty"`
	TotalVersions          int64    `protobuf:"varint,9,opt,name=totalVersions,proto3" json:"totalVersions,omitempty"`
	TrlogMarker            int64    `protobuf:"varint,10,opt,name=trlogMarker,proto3" json:"trlogMarker,omitempty"`
	TrlogMarkerDelay       int64    `protobuf:"varint,11,opt,name=trlogMarkerDelay,proto3" json:"trlogMarkerDelay,omitempty"`
	Guid                   string   `protobuf:"bytes,12,opt,name=guid,proto3" json:"guid,omitempty"`
	Segid                  string   `protobuf:"bytes,13,opt,name=segid,proto3" json:"segid,omitempty"`
	Timezone               string   `protobuf:"bytes,14,opt,name=timezone,proto3" json:"timezone,omitempty"`
	XXX_NoUnkeyedLiteral   struct{} `json:"-"`
	XXX_unrecognized       []byte   `json:"-"`
	XXX_sizecache          int32    `json:"-"`
}

func (*SystemSummaryResponse) Descriptor

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

func (*SystemSummaryResponse) GetGuid

func (m *SystemSummaryResponse) GetGuid() string

func (*SystemSummaryResponse) GetSegid

func (m *SystemSummaryResponse) GetSegid() string

func (*SystemSummaryResponse) GetTimezone added in v1.3.0

func (m *SystemSummaryResponse) GetTimezone() string

func (*SystemSummaryResponse) GetTotalAvailable

func (m *SystemSummaryResponse) GetTotalAvailable() int64

func (*SystemSummaryResponse) GetTotalCapacity

func (m *SystemSummaryResponse) GetTotalCapacity() int64

func (*SystemSummaryResponse) GetTotalMdoffloadCapacity

func (m *SystemSummaryResponse) GetTotalMdoffloadCapacity() int64

func (*SystemSummaryResponse) GetTotalMdoffloadUsed

func (m *SystemSummaryResponse) GetTotalMdoffloadUsed() int64

func (*SystemSummaryResponse) GetTotalS3OffloadCapacity

func (m *SystemSummaryResponse) GetTotalS3OffloadCapacity() int64

func (*SystemSummaryResponse) GetTotalS3OffloadUsed

func (m *SystemSummaryResponse) GetTotalS3OffloadUsed() int64

func (*SystemSummaryResponse) GetTotalUsed

func (m *SystemSummaryResponse) GetTotalUsed() int64

func (*SystemSummaryResponse) GetTotalUtilization

func (m *SystemSummaryResponse) GetTotalUtilization() float32

func (*SystemSummaryResponse) GetTotalVersions

func (m *SystemSummaryResponse) GetTotalVersions() int64

func (*SystemSummaryResponse) GetTrlogMarker

func (m *SystemSummaryResponse) GetTrlogMarker() int64

func (*SystemSummaryResponse) GetTrlogMarkerDelay

func (m *SystemSummaryResponse) GetTrlogMarkerDelay() int64

func (*SystemSummaryResponse) ProtoMessage

func (*SystemSummaryResponse) ProtoMessage()

func (*SystemSummaryResponse) Reset

func (m *SystemSummaryResponse) Reset()

func (*SystemSummaryResponse) String

func (m *SystemSummaryResponse) String() string

func (*SystemSummaryResponse) XXX_DiscardUnknown

func (m *SystemSummaryResponse) XXX_DiscardUnknown()

func (*SystemSummaryResponse) XXX_Marshal

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

func (*SystemSummaryResponse) XXX_Merge

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

func (*SystemSummaryResponse) XXX_Size

func (m *SystemSummaryResponse) XXX_Size() int

func (*SystemSummaryResponse) XXX_Unmarshal

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

type UnimplementedSystemServer

type UnimplementedSystemServer struct {
}

UnimplementedSystemServer can be embedded to have forward compatible implementations.

func (*UnimplementedSystemServer) SystemStatus

func (*UnimplementedSystemServer) SystemSummary

type VdevInfo

type VdevInfo struct {
	DevName              string   `protobuf:"bytes,1,opt,name=devName,proto3" json:"devName,omitempty"`
	State                string   `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
	Capacity             int64    `protobuf:"varint,3,opt,name=capacity,proto3" json:"capacity,omitempty"`
	Used                 int64    `protobuf:"varint,4,opt,name=used,proto3" json:"used,omitempty"`
	Util                 int64    `protobuf:"varint,5,opt,name=util,proto3" json:"util,omitempty"`
	Mdutil               int64    `protobuf:"varint,6,opt,name=mdutil,proto3" json:"mdutil,omitempty"`
	S3Util               int64    `protobuf:"varint,7,opt,name=s3util,proto3" json:"s3util,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*VdevInfo) Descriptor

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

func (*VdevInfo) GetCapacity

func (m *VdevInfo) GetCapacity() int64

func (*VdevInfo) GetDevName

func (m *VdevInfo) GetDevName() string

func (*VdevInfo) GetMdutil

func (m *VdevInfo) GetMdutil() int64

func (*VdevInfo) GetS3Util

func (m *VdevInfo) GetS3Util() int64

func (*VdevInfo) GetState

func (m *VdevInfo) GetState() string

func (*VdevInfo) GetUsed

func (m *VdevInfo) GetUsed() int64

func (*VdevInfo) GetUtil

func (m *VdevInfo) GetUtil() int64

func (*VdevInfo) ProtoMessage

func (*VdevInfo) ProtoMessage()

func (*VdevInfo) Reset

func (m *VdevInfo) Reset()

func (*VdevInfo) String

func (m *VdevInfo) String() string

func (*VdevInfo) XXX_DiscardUnknown

func (m *VdevInfo) XXX_DiscardUnknown()

func (*VdevInfo) XXX_Marshal

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

func (*VdevInfo) XXX_Merge

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

func (*VdevInfo) XXX_Size

func (m *VdevInfo) XXX_Size() int

func (*VdevInfo) XXX_Unmarshal

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

Directories

Path Synopsis
* Copyright (c) 2015-2018 Nexenta Systems, Inc.
* Copyright (c) 2015-2018 Nexenta Systems, Inc.

Jump to

Keyboard shortcuts

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