v1alpha1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 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)
	// GetDiskNumberByName returns disk number based on the passing disk name information
	GetDiskNumberByName(ctx context.Context, in *GetDiskNumberByNameRequest, opts ...grpc.CallOption) (*GetDiskNumberByNameResponse, 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.ClientConnInterface) DiskClient

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)
	// GetDiskNumberByName returns disk number based on the passing disk name information
	GetDiskNumberByName(context.Context, *GetDiskNumberByNameRequest) (*GetDiskNumberByNameResponse, error)
}

DiskServer is the server API for Disk service.

type GetDiskNumberByNameRequest

type GetDiskNumberByNameRequest struct {
	// Disk ID
	DiskName             string   `protobuf:"bytes,1,opt,name=disk_name,json=diskName,proto3" json:"disk_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetDiskNumberByNameRequest) Descriptor

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

func (*GetDiskNumberByNameRequest) GetDiskName

func (m *GetDiskNumberByNameRequest) GetDiskName() string

func (*GetDiskNumberByNameRequest) ProtoMessage

func (*GetDiskNumberByNameRequest) ProtoMessage()

func (*GetDiskNumberByNameRequest) Reset

func (m *GetDiskNumberByNameRequest) Reset()

func (*GetDiskNumberByNameRequest) String

func (m *GetDiskNumberByNameRequest) String() string

func (*GetDiskNumberByNameRequest) XXX_DiscardUnknown

func (m *GetDiskNumberByNameRequest) XXX_DiscardUnknown()

func (*GetDiskNumberByNameRequest) XXX_Marshal

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

func (*GetDiskNumberByNameRequest) XXX_Merge

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

func (*GetDiskNumberByNameRequest) XXX_Size

func (m *GetDiskNumberByNameRequest) XXX_Size() int

func (*GetDiskNumberByNameRequest) XXX_Unmarshal

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

type GetDiskNumberByNameResponse

type GetDiskNumberByNameResponse struct {
	// Disk number
	DiskNumber           string   `protobuf:"bytes,1,opt,name=disk_number,json=diskNumber,proto3" json:"disk_number,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetDiskNumberByNameResponse) Descriptor

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

func (*GetDiskNumberByNameResponse) GetDiskNumber

func (m *GetDiskNumberByNameResponse) GetDiskNumber() string

func (*GetDiskNumberByNameResponse) ProtoMessage

func (*GetDiskNumberByNameResponse) ProtoMessage()

func (*GetDiskNumberByNameResponse) Reset

func (m *GetDiskNumberByNameResponse) Reset()

func (*GetDiskNumberByNameResponse) String

func (m *GetDiskNumberByNameResponse) String() string

func (*GetDiskNumberByNameResponse) XXX_DiscardUnknown

func (m *GetDiskNumberByNameResponse) XXX_DiscardUnknown()

func (*GetDiskNumberByNameResponse) XXX_Marshal

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

func (*GetDiskNumberByNameResponse) XXX_Merge

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

func (*GetDiskNumberByNameResponse) XXX_Size

func (m *GetDiskNumberByNameResponse) XXX_Size() int

func (*GetDiskNumberByNameResponse) XXX_Unmarshal

func (m *GetDiskNumberByNameResponse) 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) GetDiskNumberByName

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