v1beta1

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDiskServer

func RegisterDiskServer(s *grpc.Server, srv DiskServer)

Types

type DiskClient

type DiskClient interface {
	// ListDiskLocations returns locations <Adapter, Bus, Target, LUN ID> of all
	// disk devices enumerated by the host
	ListDiskLocations(ctx context.Context, in *ListDiskLocationsRequest, opts ...grpc.CallOption) (*ListDiskLocationsResponse, error)
	// PartitionDisk initializes and partitions a disk device (if the disk has not
	// been partitioned already) and returns the resulting volume device ID
	PartitionDisk(ctx context.Context, in *PartitionDiskRequest, opts ...grpc.CallOption) (*PartitionDiskResponse, error)
	// Rescan refreshes the host's storage cache
	Rescan(ctx context.Context, in *RescanRequest, opts ...grpc.CallOption) (*RescanResponse, error)
	// ListDiskIDs returns a map of DiskID objects where the key is the disk number
	ListDiskIDs(ctx context.Context, in *ListDiskIDsRequest, opts ...grpc.CallOption) (*ListDiskIDsResponse, error)
	DiskStats(ctx context.Context, in *DiskStatsRequest, opts ...grpc.CallOption) (*DiskStatsResponse, error)
}

DiskClient is the client API for Disk service.

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

func NewDiskClient

func NewDiskClient(cc *grpc.ClientConn) DiskClient

type DiskIDs

type DiskIDs struct {
	// Map of Disk ID types and Disk ID values
	Identifiers          map[string]string `` /* 163-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*DiskIDs) Descriptor

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

func (*DiskIDs) GetIdentifiers

func (m *DiskIDs) GetIdentifiers() map[string]string

func (*DiskIDs) ProtoMessage

func (*DiskIDs) ProtoMessage()

func (*DiskIDs) Reset

func (m *DiskIDs) Reset()

func (*DiskIDs) String

func (m *DiskIDs) String() string

func (*DiskIDs) XXX_DiscardUnknown

func (m *DiskIDs) XXX_DiscardUnknown()

func (*DiskIDs) XXX_Marshal

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

func (*DiskIDs) XXX_Merge

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

func (*DiskIDs) XXX_Size

func (m *DiskIDs) XXX_Size() int

func (*DiskIDs) XXX_Unmarshal

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

type DiskLocation

type DiskLocation struct {
	Adapter              string   `protobuf:"bytes,1,opt,name=Adapter,proto3" json:"Adapter,omitempty"`
	Bus                  string   `protobuf:"bytes,2,opt,name=Bus,proto3" json:"Bus,omitempty"`
	Target               string   `protobuf:"bytes,3,opt,name=Target,proto3" json:"Target,omitempty"`
	LUNID                string   `protobuf:"bytes,4,opt,name=LUNID,proto3" json:"LUNID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DiskLocation) Descriptor

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

func (*DiskLocation) GetAdapter

func (m *DiskLocation) GetAdapter() string

func (*DiskLocation) GetBus

func (m *DiskLocation) GetBus() string

func (*DiskLocation) GetLUNID

func (m *DiskLocation) GetLUNID() string

func (*DiskLocation) GetTarget

func (m *DiskLocation) GetTarget() string

func (*DiskLocation) ProtoMessage

func (*DiskLocation) ProtoMessage()

func (*DiskLocation) Reset

func (m *DiskLocation) Reset()

func (*DiskLocation) String

func (m *DiskLocation) String() string

func (*DiskLocation) XXX_DiscardUnknown

func (m *DiskLocation) XXX_DiscardUnknown()

func (*DiskLocation) XXX_Marshal

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

func (*DiskLocation) XXX_Merge

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

func (*DiskLocation) XXX_Size

func (m *DiskLocation) XXX_Size() int

func (*DiskLocation) XXX_Unmarshal

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

type DiskServer

type DiskServer interface {
	// ListDiskLocations returns locations <Adapter, Bus, Target, LUN ID> of all
	// disk devices enumerated by the host
	ListDiskLocations(context.Context, *ListDiskLocationsRequest) (*ListDiskLocationsResponse, error)
	// PartitionDisk initializes and partitions a disk device (if the disk has not
	// been partitioned already) and returns the resulting volume device ID
	PartitionDisk(context.Context, *PartitionDiskRequest) (*PartitionDiskResponse, error)
	// Rescan refreshes the host's storage cache
	Rescan(context.Context, *RescanRequest) (*RescanResponse, error)
	// ListDiskIDs returns a map of DiskID objects where the key is the disk number
	ListDiskIDs(context.Context, *ListDiskIDsRequest) (*ListDiskIDsResponse, error)
	DiskStats(context.Context, *DiskStatsRequest) (*DiskStatsResponse, error)
}

DiskServer is the server API for Disk service.

type DiskStatsRequest

type DiskStatsRequest struct {
	// Disk device ID of the disk to get the size from
	DiskID               string   `protobuf:"bytes,1,opt,name=diskID,proto3" json:"diskID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DiskStatsRequest) Descriptor

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

func (*DiskStatsRequest) GetDiskID

func (m *DiskStatsRequest) GetDiskID() string

func (*DiskStatsRequest) ProtoMessage

func (*DiskStatsRequest) ProtoMessage()

func (*DiskStatsRequest) Reset

func (m *DiskStatsRequest) Reset()

func (*DiskStatsRequest) String

func (m *DiskStatsRequest) String() string

func (*DiskStatsRequest) XXX_DiscardUnknown

func (m *DiskStatsRequest) XXX_DiscardUnknown()

func (*DiskStatsRequest) XXX_Marshal

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

func (*DiskStatsRequest) XXX_Merge

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

func (*DiskStatsRequest) XXX_Size

func (m *DiskStatsRequest) XXX_Size() int

func (*DiskStatsRequest) XXX_Unmarshal

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

type DiskStatsResponse

type DiskStatsResponse struct {
	//Total size of the volume
	DiskSize             int64    `protobuf:"varint,1,opt,name=diskSize,proto3" json:"diskSize,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DiskStatsResponse) Descriptor

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

func (*DiskStatsResponse) GetDiskSize

func (m *DiskStatsResponse) GetDiskSize() int64

func (*DiskStatsResponse) ProtoMessage

func (*DiskStatsResponse) ProtoMessage()

func (*DiskStatsResponse) Reset

func (m *DiskStatsResponse) Reset()

func (*DiskStatsResponse) String

func (m *DiskStatsResponse) String() string

func (*DiskStatsResponse) XXX_DiscardUnknown

func (m *DiskStatsResponse) XXX_DiscardUnknown()

func (*DiskStatsResponse) XXX_Marshal

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

func (*DiskStatsResponse) XXX_Merge

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

func (*DiskStatsResponse) XXX_Size

func (m *DiskStatsResponse) XXX_Size() int

func (*DiskStatsResponse) XXX_Unmarshal

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

type ListDiskIDsRequest

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

func (*ListDiskIDsRequest) Descriptor

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

func (*ListDiskIDsRequest) ProtoMessage

func (*ListDiskIDsRequest) ProtoMessage()

func (*ListDiskIDsRequest) Reset

func (m *ListDiskIDsRequest) Reset()

func (*ListDiskIDsRequest) String

func (m *ListDiskIDsRequest) String() string

func (*ListDiskIDsRequest) XXX_DiscardUnknown

func (m *ListDiskIDsRequest) XXX_DiscardUnknown()

func (*ListDiskIDsRequest) XXX_Marshal

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

func (*ListDiskIDsRequest) XXX_Merge

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

func (*ListDiskIDsRequest) XXX_Size

func (m *ListDiskIDsRequest) XXX_Size() int

func (*ListDiskIDsRequest) XXX_Unmarshal

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

type ListDiskIDsResponse

type ListDiskIDsResponse struct {
	// Map of disk device numbers and IDs <page83> associated with each disk device
	DiskIDs              map[string]*DiskIDs `` /* 155-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*ListDiskIDsResponse) Descriptor

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

func (*ListDiskIDsResponse) GetDiskIDs

func (m *ListDiskIDsResponse) GetDiskIDs() map[string]*DiskIDs

func (*ListDiskIDsResponse) ProtoMessage

func (*ListDiskIDsResponse) ProtoMessage()

func (*ListDiskIDsResponse) Reset

func (m *ListDiskIDsResponse) Reset()

func (*ListDiskIDsResponse) String

func (m *ListDiskIDsResponse) String() string

func (*ListDiskIDsResponse) XXX_DiscardUnknown

func (m *ListDiskIDsResponse) XXX_DiscardUnknown()

func (*ListDiskIDsResponse) XXX_Marshal

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

func (*ListDiskIDsResponse) XXX_Merge

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

func (*ListDiskIDsResponse) XXX_Size

func (m *ListDiskIDsResponse) XXX_Size() int

func (*ListDiskIDsResponse) XXX_Unmarshal

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

type ListDiskLocationsRequest

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

func (*ListDiskLocationsRequest) Descriptor

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

func (*ListDiskLocationsRequest) ProtoMessage

func (*ListDiskLocationsRequest) ProtoMessage()

func (*ListDiskLocationsRequest) Reset

func (m *ListDiskLocationsRequest) Reset()

func (*ListDiskLocationsRequest) String

func (m *ListDiskLocationsRequest) String() string

func (*ListDiskLocationsRequest) XXX_DiscardUnknown

func (m *ListDiskLocationsRequest) XXX_DiscardUnknown()

func (*ListDiskLocationsRequest) XXX_Marshal

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

func (*ListDiskLocationsRequest) XXX_Merge

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

func (*ListDiskLocationsRequest) XXX_Size

func (m *ListDiskLocationsRequest) XXX_Size() int

func (*ListDiskLocationsRequest) XXX_Unmarshal

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

type ListDiskLocationsResponse

type ListDiskLocationsResponse struct {
	// Map of disk device IDs and <adapter, bus, target, lun ID> associated with each disk device
	DiskLocations        map[string]*DiskLocation `` /* 188-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

func (*ListDiskLocationsResponse) Descriptor

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

func (*ListDiskLocationsResponse) GetDiskLocations

func (m *ListDiskLocationsResponse) GetDiskLocations() map[string]*DiskLocation

func (*ListDiskLocationsResponse) ProtoMessage

func (*ListDiskLocationsResponse) ProtoMessage()

func (*ListDiskLocationsResponse) Reset

func (m *ListDiskLocationsResponse) Reset()

func (*ListDiskLocationsResponse) String

func (m *ListDiskLocationsResponse) String() string

func (*ListDiskLocationsResponse) XXX_DiscardUnknown

func (m *ListDiskLocationsResponse) XXX_DiscardUnknown()

func (*ListDiskLocationsResponse) XXX_Marshal

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

func (*ListDiskLocationsResponse) XXX_Merge

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

func (*ListDiskLocationsResponse) XXX_Size

func (m *ListDiskLocationsResponse) XXX_Size() int

func (*ListDiskLocationsResponse) XXX_Unmarshal

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

type PartitionDiskRequest

type PartitionDiskRequest struct {
	// Disk device ID of the disk to partition
	DiskID               string   `protobuf:"bytes,1,opt,name=diskID,proto3" json:"diskID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PartitionDiskRequest) Descriptor

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

func (*PartitionDiskRequest) GetDiskID

func (m *PartitionDiskRequest) GetDiskID() string

func (*PartitionDiskRequest) ProtoMessage

func (*PartitionDiskRequest) ProtoMessage()

func (*PartitionDiskRequest) Reset

func (m *PartitionDiskRequest) Reset()

func (*PartitionDiskRequest) String

func (m *PartitionDiskRequest) String() string

func (*PartitionDiskRequest) XXX_DiscardUnknown

func (m *PartitionDiskRequest) XXX_DiscardUnknown()

func (*PartitionDiskRequest) XXX_Marshal

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

func (*PartitionDiskRequest) XXX_Merge

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

func (*PartitionDiskRequest) XXX_Size

func (m *PartitionDiskRequest) XXX_Size() int

func (*PartitionDiskRequest) XXX_Unmarshal

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

type PartitionDiskResponse

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

func (*PartitionDiskResponse) Descriptor

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

func (*PartitionDiskResponse) ProtoMessage

func (*PartitionDiskResponse) ProtoMessage()

func (*PartitionDiskResponse) Reset

func (m *PartitionDiskResponse) Reset()

func (*PartitionDiskResponse) String

func (m *PartitionDiskResponse) String() string

func (*PartitionDiskResponse) XXX_DiscardUnknown

func (m *PartitionDiskResponse) XXX_DiscardUnknown()

func (*PartitionDiskResponse) XXX_Marshal

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

func (*PartitionDiskResponse) XXX_Merge

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

func (*PartitionDiskResponse) XXX_Size

func (m *PartitionDiskResponse) XXX_Size() int

func (*PartitionDiskResponse) XXX_Unmarshal

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

type RescanRequest

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

func (*RescanRequest) Descriptor

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

func (*RescanRequest) ProtoMessage

func (*RescanRequest) ProtoMessage()

func (*RescanRequest) Reset

func (m *RescanRequest) Reset()

func (*RescanRequest) String

func (m *RescanRequest) String() string

func (*RescanRequest) XXX_DiscardUnknown

func (m *RescanRequest) XXX_DiscardUnknown()

func (*RescanRequest) XXX_Marshal

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

func (*RescanRequest) XXX_Merge

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

func (*RescanRequest) XXX_Size

func (m *RescanRequest) XXX_Size() int

func (*RescanRequest) XXX_Unmarshal

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

type RescanResponse

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

func (*RescanResponse) Descriptor

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

func (*RescanResponse) ProtoMessage

func (*RescanResponse) ProtoMessage()

func (*RescanResponse) Reset

func (m *RescanResponse) Reset()

func (*RescanResponse) String

func (m *RescanResponse) String() string

func (*RescanResponse) XXX_DiscardUnknown

func (m *RescanResponse) XXX_DiscardUnknown()

func (*RescanResponse) XXX_Marshal

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

func (*RescanResponse) XXX_Merge

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

func (*RescanResponse) XXX_Size

func (m *RescanResponse) XXX_Size() int

func (*RescanResponse) XXX_Unmarshal

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

type UnimplementedDiskServer

type UnimplementedDiskServer struct {
}

UnimplementedDiskServer can be embedded to have forward compatible implementations.

func (*UnimplementedDiskServer) DiskStats

func (*UnimplementedDiskServer) ListDiskIDs

func (*UnimplementedDiskServer) ListDiskLocations

func (*UnimplementedDiskServer) PartitionDisk

func (*UnimplementedDiskServer) Rescan

Jump to

Keyboard shortcuts

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