rpc

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_modify_proto protoreflect.FileDescriptor
View Source
var Modify_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "modify.v1.Modify",
	HandlerType: (*ModifyServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetCSIDriverModificationCapability",
			Handler:    _Modify_GetCSIDriverModificationCapability_Handler,
		},
		{
			MethodName: "ModifyVolumeProperties",
			Handler:    _Modify_ModifyVolumeProperties_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "modify.proto",
}

Modify_ServiceDesc is the grpc.ServiceDesc for Modify service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterModifyServer

func RegisterModifyServer(s grpc.ServiceRegistrar, srv ModifyServer)

Types

type GetCSIDriverModificationCapabilityRequest

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

func (*GetCSIDriverModificationCapabilityRequest) Descriptor deprecated

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

Deprecated: Use GetCSIDriverModificationCapabilityRequest.ProtoReflect.Descriptor instead.

func (*GetCSIDriverModificationCapabilityRequest) ProtoMessage

func (*GetCSIDriverModificationCapabilityRequest) ProtoReflect

func (*GetCSIDriverModificationCapabilityRequest) Reset

func (*GetCSIDriverModificationCapabilityRequest) String

type GetCSIDriverModificationCapabilityResponse

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

func (*GetCSIDriverModificationCapabilityResponse) Descriptor deprecated

Deprecated: Use GetCSIDriverModificationCapabilityResponse.ProtoReflect.Descriptor instead.

func (*GetCSIDriverModificationCapabilityResponse) ProtoMessage

func (*GetCSIDriverModificationCapabilityResponse) ProtoReflect

func (*GetCSIDriverModificationCapabilityResponse) Reset

func (*GetCSIDriverModificationCapabilityResponse) String

type ModifyClient

type ModifyClient interface {
	GetCSIDriverModificationCapability(ctx context.Context, in *GetCSIDriverModificationCapabilityRequest, opts ...grpc.CallOption) (*GetCSIDriverModificationCapabilityResponse, error)
	ModifyVolumeProperties(ctx context.Context, in *ModifyVolumePropertiesRequest, opts ...grpc.CallOption) (*ModifyVolumePropertiesResponse, error)
}

ModifyClient is the client API for Modify 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.

func NewModifyClient

func NewModifyClient(cc grpc.ClientConnInterface) ModifyClient

type ModifyServer

type ModifyServer interface {
	GetCSIDriverModificationCapability(context.Context, *GetCSIDriverModificationCapabilityRequest) (*GetCSIDriverModificationCapabilityResponse, error)
	ModifyVolumeProperties(context.Context, *ModifyVolumePropertiesRequest) (*ModifyVolumePropertiesResponse, error)
	// contains filtered or unexported methods
}

ModifyServer is the server API for Modify service. All implementations must embed UnimplementedModifyServer for forward compatibility

type ModifyVolumePropertiesRequest

type ModifyVolumePropertiesRequest struct {

	// Name of the volume.
	// This field is REQUIRED.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// New volume attributes.
	// This field is REQUIRED.
	Parameters map[string]string `` /* 161-byte string literal not displayed */
	// Contains additional information that
	// may be required by driver.
	Context map[string]string `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ModifyVolumePropertiesRequest) Descriptor deprecated

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

Deprecated: Use ModifyVolumePropertiesRequest.ProtoReflect.Descriptor instead.

func (*ModifyVolumePropertiesRequest) GetContext

func (x *ModifyVolumePropertiesRequest) GetContext() map[string]string

func (*ModifyVolumePropertiesRequest) GetName

func (*ModifyVolumePropertiesRequest) GetParameters

func (x *ModifyVolumePropertiesRequest) GetParameters() map[string]string

func (*ModifyVolumePropertiesRequest) ProtoMessage

func (*ModifyVolumePropertiesRequest) ProtoMessage()

func (*ModifyVolumePropertiesRequest) ProtoReflect

func (*ModifyVolumePropertiesRequest) Reset

func (x *ModifyVolumePropertiesRequest) Reset()

func (*ModifyVolumePropertiesRequest) String

type ModifyVolumePropertiesResponse

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

func (*ModifyVolumePropertiesResponse) Descriptor deprecated

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

Deprecated: Use ModifyVolumePropertiesResponse.ProtoReflect.Descriptor instead.

func (*ModifyVolumePropertiesResponse) ProtoMessage

func (*ModifyVolumePropertiesResponse) ProtoMessage()

func (*ModifyVolumePropertiesResponse) ProtoReflect

func (*ModifyVolumePropertiesResponse) Reset

func (x *ModifyVolumePropertiesResponse) Reset()

func (*ModifyVolumePropertiesResponse) String

type UnimplementedModifyServer

type UnimplementedModifyServer struct {
}

UnimplementedModifyServer must be embedded to have forward compatible implementations.

type UnsafeModifyServer

type UnsafeModifyServer interface {
	// contains filtered or unexported methods
}

UnsafeModifyServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ModifyServer will result in compilation errors.

Jump to

Keyboard shortcuts

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