v1

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_kubernetes_csi_csi_proxy_client_api_disk_v1_api_proto protoreflect.FileDescriptor

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 with the GPT partition style
	// (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)
	// GetDiskStats returns the stats of a disk (currently it returns the disk size).
	GetDiskStats(ctx context.Context, in *GetDiskStatsRequest, opts ...grpc.CallOption) (*GetDiskStatsResponse, error)
	// SetDiskState sets the offline/online state of a disk.
	SetDiskState(ctx context.Context, in *SetDiskStateRequest, opts ...grpc.CallOption) (*SetDiskStateResponse, error)
	// GetDiskState gets the offline/online state of a disk.
	GetDiskState(ctx context.Context, in *GetDiskStateRequest, opts ...grpc.CallOption) (*GetDiskStateResponse, 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 DiskIDs

type DiskIDs struct {

	// The disk page83 id.
	Page83 string `protobuf:"bytes,1,opt,name=page83,proto3" json:"page83,omitempty"`
	// The disk serial number.
	SerialNumber string `protobuf:"bytes,2,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"`
	// contains filtered or unexported fields
}

func (*DiskIDs) Descriptor deprecated

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

Deprecated: Use DiskIDs.ProtoReflect.Descriptor instead.

func (*DiskIDs) GetPage83

func (x *DiskIDs) GetPage83() string

func (*DiskIDs) GetSerialNumber

func (x *DiskIDs) GetSerialNumber() string

func (*DiskIDs) ProtoMessage

func (*DiskIDs) ProtoMessage()

func (*DiskIDs) ProtoReflect

func (x *DiskIDs) ProtoReflect() protoreflect.Message

func (*DiskIDs) Reset

func (x *DiskIDs) Reset()

func (*DiskIDs) String

func (x *DiskIDs) String() string

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"`
	// contains filtered or unexported fields
}

func (*DiskLocation) Descriptor deprecated

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

Deprecated: Use DiskLocation.ProtoReflect.Descriptor instead.

func (*DiskLocation) GetAdapter

func (x *DiskLocation) GetAdapter() string

func (*DiskLocation) GetBus

func (x *DiskLocation) GetBus() string

func (*DiskLocation) GetLUNID

func (x *DiskLocation) GetLUNID() string

func (*DiskLocation) GetTarget

func (x *DiskLocation) GetTarget() string

func (*DiskLocation) ProtoMessage

func (*DiskLocation) ProtoMessage()

func (*DiskLocation) ProtoReflect

func (x *DiskLocation) ProtoReflect() protoreflect.Message

func (*DiskLocation) Reset

func (x *DiskLocation) Reset()

func (*DiskLocation) String

func (x *DiskLocation) String() string

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 with the GPT partition style
	// (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)
	// GetDiskStats returns the stats of a disk (currently it returns the disk size).
	GetDiskStats(context.Context, *GetDiskStatsRequest) (*GetDiskStatsResponse, error)
	// SetDiskState sets the offline/online state of a disk.
	SetDiskState(context.Context, *SetDiskStateRequest) (*SetDiskStateResponse, error)
	// GetDiskState gets the offline/online state of a disk.
	GetDiskState(context.Context, *GetDiskStateRequest) (*GetDiskStateResponse, error)
}

DiskServer is the server API for Disk service.

type GetDiskStateRequest

type GetDiskStateRequest struct {

	// Disk device number of the disk.
	DiskNumber uint32 `protobuf:"varint,1,opt,name=disk_number,json=diskNumber,proto3" json:"disk_number,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDiskStateRequest) Descriptor deprecated

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

Deprecated: Use GetDiskStateRequest.ProtoReflect.Descriptor instead.

func (*GetDiskStateRequest) GetDiskNumber

func (x *GetDiskStateRequest) GetDiskNumber() uint32

func (*GetDiskStateRequest) ProtoMessage

func (*GetDiskStateRequest) ProtoMessage()

func (*GetDiskStateRequest) ProtoReflect

func (x *GetDiskStateRequest) ProtoReflect() protoreflect.Message

func (*GetDiskStateRequest) Reset

func (x *GetDiskStateRequest) Reset()

func (*GetDiskStateRequest) String

func (x *GetDiskStateRequest) String() string

type GetDiskStateResponse

type GetDiskStateResponse struct {

	// Online state of the disk. true for online, false for offline.
	IsOnline bool `protobuf:"varint,1,opt,name=is_online,json=isOnline,proto3" json:"is_online,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDiskStateResponse) Descriptor deprecated

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

Deprecated: Use GetDiskStateResponse.ProtoReflect.Descriptor instead.

func (*GetDiskStateResponse) GetIsOnline

func (x *GetDiskStateResponse) GetIsOnline() bool

func (*GetDiskStateResponse) ProtoMessage

func (*GetDiskStateResponse) ProtoMessage()

func (*GetDiskStateResponse) ProtoReflect

func (x *GetDiskStateResponse) ProtoReflect() protoreflect.Message

func (*GetDiskStateResponse) Reset

func (x *GetDiskStateResponse) Reset()

func (*GetDiskStateResponse) String

func (x *GetDiskStateResponse) String() string

type GetDiskStatsRequest

type GetDiskStatsRequest struct {

	// Disk device number of the disk to get the stats from.
	DiskNumber uint32 `protobuf:"varint,1,opt,name=disk_number,json=diskNumber,proto3" json:"disk_number,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDiskStatsRequest) Descriptor deprecated

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

Deprecated: Use GetDiskStatsRequest.ProtoReflect.Descriptor instead.

func (*GetDiskStatsRequest) GetDiskNumber

func (x *GetDiskStatsRequest) GetDiskNumber() uint32

func (*GetDiskStatsRequest) ProtoMessage

func (*GetDiskStatsRequest) ProtoMessage()

func (*GetDiskStatsRequest) ProtoReflect

func (x *GetDiskStatsRequest) ProtoReflect() protoreflect.Message

func (*GetDiskStatsRequest) Reset

func (x *GetDiskStatsRequest) Reset()

func (*GetDiskStatsRequest) String

func (x *GetDiskStatsRequest) String() string

type GetDiskStatsResponse

type GetDiskStatsResponse struct {

	// Total size of the volume.
	TotalBytes int64 `protobuf:"varint,1,opt,name=total_bytes,json=totalBytes,proto3" json:"total_bytes,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDiskStatsResponse) Descriptor deprecated

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

Deprecated: Use GetDiskStatsResponse.ProtoReflect.Descriptor instead.

func (*GetDiskStatsResponse) GetTotalBytes

func (x *GetDiskStatsResponse) GetTotalBytes() int64

func (*GetDiskStatsResponse) ProtoMessage

func (*GetDiskStatsResponse) ProtoMessage()

func (*GetDiskStatsResponse) ProtoReflect

func (x *GetDiskStatsResponse) ProtoReflect() protoreflect.Message

func (*GetDiskStatsResponse) Reset

func (x *GetDiskStatsResponse) Reset()

func (*GetDiskStatsResponse) String

func (x *GetDiskStatsResponse) String() string

type ListDiskIDsRequest

type ListDiskIDsRequest struct {
	// contains filtered or unexported fields
}

func (*ListDiskIDsRequest) Descriptor deprecated

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

Deprecated: Use ListDiskIDsRequest.ProtoReflect.Descriptor instead.

func (*ListDiskIDsRequest) ProtoMessage

func (*ListDiskIDsRequest) ProtoMessage()

func (*ListDiskIDsRequest) ProtoReflect

func (x *ListDiskIDsRequest) ProtoReflect() protoreflect.Message

func (*ListDiskIDsRequest) Reset

func (x *ListDiskIDsRequest) Reset()

func (*ListDiskIDsRequest) String

func (x *ListDiskIDsRequest) String() string

type ListDiskIDsResponse

type ListDiskIDsResponse struct {

	// Map of disk numbers and disk identifiers associated with each disk device.
	DiskIDs map[uint32]*DiskIDs `` // the case is intentional for protoc to generate the field as DiskIDs
	/* 156-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ListDiskIDsResponse) Descriptor deprecated

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

Deprecated: Use ListDiskIDsResponse.ProtoReflect.Descriptor instead.

func (*ListDiskIDsResponse) GetDiskIDs

func (x *ListDiskIDsResponse) GetDiskIDs() map[uint32]*DiskIDs

func (*ListDiskIDsResponse) ProtoMessage

func (*ListDiskIDsResponse) ProtoMessage()

func (*ListDiskIDsResponse) ProtoReflect

func (x *ListDiskIDsResponse) ProtoReflect() protoreflect.Message

func (*ListDiskIDsResponse) Reset

func (x *ListDiskIDsResponse) Reset()

func (*ListDiskIDsResponse) String

func (x *ListDiskIDsResponse) String() string

type ListDiskLocationsRequest

type ListDiskLocationsRequest struct {
	// contains filtered or unexported fields
}

func (*ListDiskLocationsRequest) Descriptor deprecated

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

Deprecated: Use ListDiskLocationsRequest.ProtoReflect.Descriptor instead.

func (*ListDiskLocationsRequest) ProtoMessage

func (*ListDiskLocationsRequest) ProtoMessage()

func (*ListDiskLocationsRequest) ProtoReflect

func (x *ListDiskLocationsRequest) ProtoReflect() protoreflect.Message

func (*ListDiskLocationsRequest) Reset

func (x *ListDiskLocationsRequest) Reset()

func (*ListDiskLocationsRequest) String

func (x *ListDiskLocationsRequest) String() string

type ListDiskLocationsResponse

type ListDiskLocationsResponse struct {

	// Map of disk number and <adapter, bus, target, lun ID> associated with each disk device.
	DiskLocations map[uint32]*DiskLocation `` /* 189-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ListDiskLocationsResponse) Descriptor deprecated

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

Deprecated: Use ListDiskLocationsResponse.ProtoReflect.Descriptor instead.

func (*ListDiskLocationsResponse) GetDiskLocations

func (x *ListDiskLocationsResponse) GetDiskLocations() map[uint32]*DiskLocation

func (*ListDiskLocationsResponse) ProtoMessage

func (*ListDiskLocationsResponse) ProtoMessage()

func (*ListDiskLocationsResponse) ProtoReflect

func (*ListDiskLocationsResponse) Reset

func (x *ListDiskLocationsResponse) Reset()

func (*ListDiskLocationsResponse) String

func (x *ListDiskLocationsResponse) String() string

type PartitionDiskRequest

type PartitionDiskRequest struct {

	// Disk device number of the disk to partition.
	DiskNumber uint32 `protobuf:"varint,1,opt,name=disk_number,json=diskNumber,proto3" json:"disk_number,omitempty"`
	// contains filtered or unexported fields
}

func (*PartitionDiskRequest) Descriptor deprecated

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

Deprecated: Use PartitionDiskRequest.ProtoReflect.Descriptor instead.

func (*PartitionDiskRequest) GetDiskNumber

func (x *PartitionDiskRequest) GetDiskNumber() uint32

func (*PartitionDiskRequest) ProtoMessage

func (*PartitionDiskRequest) ProtoMessage()

func (*PartitionDiskRequest) ProtoReflect

func (x *PartitionDiskRequest) ProtoReflect() protoreflect.Message

func (*PartitionDiskRequest) Reset

func (x *PartitionDiskRequest) Reset()

func (*PartitionDiskRequest) String

func (x *PartitionDiskRequest) String() string

type PartitionDiskResponse

type PartitionDiskResponse struct {
	// contains filtered or unexported fields
}

func (*PartitionDiskResponse) Descriptor deprecated

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

Deprecated: Use PartitionDiskResponse.ProtoReflect.Descriptor instead.

func (*PartitionDiskResponse) ProtoMessage

func (*PartitionDiskResponse) ProtoMessage()

func (*PartitionDiskResponse) ProtoReflect

func (x *PartitionDiskResponse) ProtoReflect() protoreflect.Message

func (*PartitionDiskResponse) Reset

func (x *PartitionDiskResponse) Reset()

func (*PartitionDiskResponse) String

func (x *PartitionDiskResponse) String() string

type RescanRequest

type RescanRequest struct {
	// contains filtered or unexported fields
}

func (*RescanRequest) Descriptor deprecated

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

Deprecated: Use RescanRequest.ProtoReflect.Descriptor instead.

func (*RescanRequest) ProtoMessage

func (*RescanRequest) ProtoMessage()

func (*RescanRequest) ProtoReflect

func (x *RescanRequest) ProtoReflect() protoreflect.Message

func (*RescanRequest) Reset

func (x *RescanRequest) Reset()

func (*RescanRequest) String

func (x *RescanRequest) String() string

type RescanResponse

type RescanResponse struct {
	// contains filtered or unexported fields
}

func (*RescanResponse) Descriptor deprecated

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

Deprecated: Use RescanResponse.ProtoReflect.Descriptor instead.

func (*RescanResponse) ProtoMessage

func (*RescanResponse) ProtoMessage()

func (*RescanResponse) ProtoReflect

func (x *RescanResponse) ProtoReflect() protoreflect.Message

func (*RescanResponse) Reset

func (x *RescanResponse) Reset()

func (*RescanResponse) String

func (x *RescanResponse) String() string

type SetDiskStateRequest

type SetDiskStateRequest struct {

	// Disk device number of the disk.
	DiskNumber uint32 `protobuf:"varint,1,opt,name=disk_number,json=diskNumber,proto3" json:"disk_number,omitempty"`
	// Online state to set for the disk. true for online, false for offline.
	IsOnline bool `protobuf:"varint,2,opt,name=is_online,json=isOnline,proto3" json:"is_online,omitempty"`
	// contains filtered or unexported fields
}

func (*SetDiskStateRequest) Descriptor deprecated

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

Deprecated: Use SetDiskStateRequest.ProtoReflect.Descriptor instead.

func (*SetDiskStateRequest) GetDiskNumber

func (x *SetDiskStateRequest) GetDiskNumber() uint32

func (*SetDiskStateRequest) GetIsOnline

func (x *SetDiskStateRequest) GetIsOnline() bool

func (*SetDiskStateRequest) ProtoMessage

func (*SetDiskStateRequest) ProtoMessage()

func (*SetDiskStateRequest) ProtoReflect

func (x *SetDiskStateRequest) ProtoReflect() protoreflect.Message

func (*SetDiskStateRequest) Reset

func (x *SetDiskStateRequest) Reset()

func (*SetDiskStateRequest) String

func (x *SetDiskStateRequest) String() string

type SetDiskStateResponse

type SetDiskStateResponse struct {
	// contains filtered or unexported fields
}

func (*SetDiskStateResponse) Descriptor deprecated

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

Deprecated: Use SetDiskStateResponse.ProtoReflect.Descriptor instead.

func (*SetDiskStateResponse) ProtoMessage

func (*SetDiskStateResponse) ProtoMessage()

func (*SetDiskStateResponse) ProtoReflect

func (x *SetDiskStateResponse) ProtoReflect() protoreflect.Message

func (*SetDiskStateResponse) Reset

func (x *SetDiskStateResponse) Reset()

func (*SetDiskStateResponse) String

func (x *SetDiskStateResponse) String() string

type UnimplementedDiskServer

type UnimplementedDiskServer struct {
}

UnimplementedDiskServer can be embedded to have forward compatible implementations.

func (*UnimplementedDiskServer) GetDiskState

func (*UnimplementedDiskServer) GetDiskStats

func (*UnimplementedDiskServer) ListDiskIDs

func (*UnimplementedDiskServer) ListDiskLocations

func (*UnimplementedDiskServer) PartitionDisk

func (*UnimplementedDiskServer) Rescan

func (*UnimplementedDiskServer) SetDiskState

Jump to

Keyboard shortcuts

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