Documentation ¶
Index ¶
- Variables
- func RegisterControllerServer(s grpc.ServiceRegistrar, srv ControllerServer)
- type ControllerClient
- type ControllerGetVolumeGroupRequest
- func (*ControllerGetVolumeGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ControllerGetVolumeGroupRequest) GetSecrets() map[string]string
- func (x *ControllerGetVolumeGroupRequest) GetVolumeGroupId() string
- func (*ControllerGetVolumeGroupRequest) ProtoMessage()
- func (x *ControllerGetVolumeGroupRequest) ProtoReflect() protoreflect.Message
- func (x *ControllerGetVolumeGroupRequest) Reset()
- func (x *ControllerGetVolumeGroupRequest) String() string
- type ControllerGetVolumeGroupResponse
- func (*ControllerGetVolumeGroupResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ControllerGetVolumeGroupResponse) GetVolumeGroup() *VolumeGroup
- func (*ControllerGetVolumeGroupResponse) ProtoMessage()
- func (x *ControllerGetVolumeGroupResponse) ProtoReflect() protoreflect.Message
- func (x *ControllerGetVolumeGroupResponse) Reset()
- func (x *ControllerGetVolumeGroupResponse) String() string
- type ControllerServer
- type CreateVolumeGroupRequest
- func (*CreateVolumeGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateVolumeGroupRequest) GetName() string
- func (x *CreateVolumeGroupRequest) GetParameters() map[string]string
- func (x *CreateVolumeGroupRequest) GetSecrets() map[string]string
- func (*CreateVolumeGroupRequest) ProtoMessage()
- func (x *CreateVolumeGroupRequest) ProtoReflect() protoreflect.Message
- func (x *CreateVolumeGroupRequest) Reset()
- func (x *CreateVolumeGroupRequest) String() string
- type CreateVolumeGroupResponse
- func (*CreateVolumeGroupResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateVolumeGroupResponse) GetVolumeGroup() *VolumeGroup
- func (*CreateVolumeGroupResponse) ProtoMessage()
- func (x *CreateVolumeGroupResponse) ProtoReflect() protoreflect.Message
- func (x *CreateVolumeGroupResponse) Reset()
- func (x *CreateVolumeGroupResponse) String() string
- type DeleteVolumeGroupRequest
- func (*DeleteVolumeGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteVolumeGroupRequest) GetSecrets() map[string]string
- func (x *DeleteVolumeGroupRequest) GetVolumeGroupId() string
- func (*DeleteVolumeGroupRequest) ProtoMessage()
- func (x *DeleteVolumeGroupRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteVolumeGroupRequest) Reset()
- func (x *DeleteVolumeGroupRequest) String() string
- type DeleteVolumeGroupResponse
- type ListVolumeGroupsRequest
- func (*ListVolumeGroupsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListVolumeGroupsRequest) GetMaxEntries() int32
- func (x *ListVolumeGroupsRequest) GetSecrets() map[string]string
- func (x *ListVolumeGroupsRequest) GetStartingToken() string
- func (*ListVolumeGroupsRequest) ProtoMessage()
- func (x *ListVolumeGroupsRequest) ProtoReflect() protoreflect.Message
- func (x *ListVolumeGroupsRequest) Reset()
- func (x *ListVolumeGroupsRequest) String() string
- type ListVolumeGroupsResponse
- func (*ListVolumeGroupsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListVolumeGroupsResponse) GetEntries() []*ListVolumeGroupsResponse_Entry
- func (x *ListVolumeGroupsResponse) GetNextToken() string
- func (*ListVolumeGroupsResponse) ProtoMessage()
- func (x *ListVolumeGroupsResponse) ProtoReflect() protoreflect.Message
- func (x *ListVolumeGroupsResponse) Reset()
- func (x *ListVolumeGroupsResponse) String() string
- type ListVolumeGroupsResponse_Entry
- func (*ListVolumeGroupsResponse_Entry) Descriptor() ([]byte, []int)deprecated
- func (x *ListVolumeGroupsResponse_Entry) GetVolumeGroup() *VolumeGroup
- func (*ListVolumeGroupsResponse_Entry) ProtoMessage()
- func (x *ListVolumeGroupsResponse_Entry) ProtoReflect() protoreflect.Message
- func (x *ListVolumeGroupsResponse_Entry) Reset()
- func (x *ListVolumeGroupsResponse_Entry) String() string
- type ModifyVolumeGroupMembershipRequest
- func (*ModifyVolumeGroupMembershipRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ModifyVolumeGroupMembershipRequest) GetSecrets() map[string]string
- func (x *ModifyVolumeGroupMembershipRequest) GetVolumeGroupId() string
- func (x *ModifyVolumeGroupMembershipRequest) GetVolumeIds() []string
- func (*ModifyVolumeGroupMembershipRequest) ProtoMessage()
- func (x *ModifyVolumeGroupMembershipRequest) ProtoReflect() protoreflect.Message
- func (x *ModifyVolumeGroupMembershipRequest) Reset()
- func (x *ModifyVolumeGroupMembershipRequest) String() string
- type ModifyVolumeGroupMembershipResponse
- func (*ModifyVolumeGroupMembershipResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ModifyVolumeGroupMembershipResponse) GetVolumeGroup() *VolumeGroup
- func (*ModifyVolumeGroupMembershipResponse) ProtoMessage()
- func (x *ModifyVolumeGroupMembershipResponse) ProtoReflect() protoreflect.Message
- func (x *ModifyVolumeGroupMembershipResponse) Reset()
- func (x *ModifyVolumeGroupMembershipResponse) String() string
- type UnimplementedControllerServer
- func (UnimplementedControllerServer) ControllerGetVolumeGroup(context.Context, *ControllerGetVolumeGroupRequest) (*ControllerGetVolumeGroupResponse, error)
- func (UnimplementedControllerServer) CreateVolumeGroup(context.Context, *CreateVolumeGroupRequest) (*CreateVolumeGroupResponse, error)
- func (UnimplementedControllerServer) DeleteVolumeGroup(context.Context, *DeleteVolumeGroupRequest) (*DeleteVolumeGroupResponse, error)
- func (UnimplementedControllerServer) ListVolumeGroups(context.Context, *ListVolumeGroupsRequest) (*ListVolumeGroupsResponse, error)
- func (UnimplementedControllerServer) ModifyVolumeGroupMembership(context.Context, *ModifyVolumeGroupMembershipRequest) (*ModifyVolumeGroupMembershipResponse, error)
- type UnsafeControllerServer
- type VgTopology
- type VgVolume
- func (*VgVolume) Descriptor() ([]byte, []int)deprecated
- func (x *VgVolume) GetAccessibleTopology() []*VgTopology
- func (x *VgVolume) GetCapacityBytes() int64
- func (x *VgVolume) GetContentSource() *VgVolumeContentSource
- func (x *VgVolume) GetVolumeContext() map[string]string
- func (x *VgVolume) GetVolumeId() string
- func (*VgVolume) ProtoMessage()
- func (x *VgVolume) ProtoReflect() protoreflect.Message
- func (x *VgVolume) Reset()
- func (x *VgVolume) String() string
- type VgVolumeContentSource
- func (*VgVolumeContentSource) Descriptor() ([]byte, []int)deprecated
- func (x *VgVolumeContentSource) GetSnapshot() *VgVolumeContentSource_SnapshotSource
- func (m *VgVolumeContentSource) GetType() isVgVolumeContentSource_Type
- func (x *VgVolumeContentSource) GetVolume() *VgVolumeContentSource_VolumeSource
- func (*VgVolumeContentSource) ProtoMessage()
- func (x *VgVolumeContentSource) ProtoReflect() protoreflect.Message
- func (x *VgVolumeContentSource) Reset()
- func (x *VgVolumeContentSource) String() string
- type VgVolumeContentSource_Snapshot
- type VgVolumeContentSource_SnapshotSource
- func (*VgVolumeContentSource_SnapshotSource) Descriptor() ([]byte, []int)deprecated
- func (x *VgVolumeContentSource_SnapshotSource) GetSnapshotId() string
- func (*VgVolumeContentSource_SnapshotSource) ProtoMessage()
- func (x *VgVolumeContentSource_SnapshotSource) ProtoReflect() protoreflect.Message
- func (x *VgVolumeContentSource_SnapshotSource) Reset()
- func (x *VgVolumeContentSource_SnapshotSource) String() string
- type VgVolumeContentSource_Volume
- type VgVolumeContentSource_VolumeSource
- func (*VgVolumeContentSource_VolumeSource) Descriptor() ([]byte, []int)deprecated
- func (x *VgVolumeContentSource_VolumeSource) GetVolumeId() string
- func (*VgVolumeContentSource_VolumeSource) ProtoMessage()
- func (x *VgVolumeContentSource_VolumeSource) ProtoReflect() protoreflect.Message
- func (x *VgVolumeContentSource_VolumeSource) Reset()
- func (x *VgVolumeContentSource_VolumeSource) String() string
- type VolumeGroup
- func (*VolumeGroup) Descriptor() ([]byte, []int)deprecated
- func (x *VolumeGroup) GetVolumeGroupContext() map[string]string
- func (x *VolumeGroup) GetVolumeGroupId() string
- func (x *VolumeGroup) GetVolumes() []*VgVolume
- func (*VolumeGroup) ProtoMessage()
- func (x *VolumeGroup) ProtoReflect() protoreflect.Message
- func (x *VolumeGroup) Reset()
- func (x *VolumeGroup) String() string
Constants ¶
This section is empty.
Variables ¶
var Controller_ServiceDesc = grpc.ServiceDesc{ ServiceName: "volumegroup.Controller", HandlerType: (*ControllerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateVolumeGroup", Handler: _Controller_CreateVolumeGroup_Handler, }, { MethodName: "ModifyVolumeGroupMembership", Handler: _Controller_ModifyVolumeGroupMembership_Handler, }, { MethodName: "DeleteVolumeGroup", Handler: _Controller_DeleteVolumeGroup_Handler, }, { MethodName: "ListVolumeGroups", Handler: _Controller_ListVolumeGroups_Handler, }, { MethodName: "ControllerGetVolumeGroup", Handler: _Controller_ControllerGetVolumeGroup_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "volumegroup/volumegroup.proto", }
Controller_ServiceDesc is the grpc.ServiceDesc for Controller service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var ( // Indicates that this message is OPTIONAL and part of an experimental // API that may be deprecated and eventually removed between minor // releases. // // optional bool vg_alpha_message = 1102; E_VgAlphaMessage = &file_volumegroup_volumegroup_proto_extTypes[1] )
Extension fields to descriptorpb.MessageOptions.
var ( // Indicates that this method is OPTIONAL and part of an experimental // API that may be deprecated and eventually removed between minor // releases. // // optional bool vg_alpha_method = 1102; E_VgAlphaMethod = &file_volumegroup_volumegroup_proto_extTypes[2] )
Extension fields to descriptorpb.MethodOptions.
var ( // Indicates that a field MAY contain information that is sensitive // and MUST be treated as such (e.g. not logged). // // optional bool vg_csi_secret = 1101; E_VgCsiSecret = &file_volumegroup_volumegroup_proto_extTypes[0] )
Extension fields to descriptorpb.FieldOptions.
var File_volumegroup_volumegroup_proto protoreflect.FileDescriptor
Functions ¶
func RegisterControllerServer ¶
func RegisterControllerServer(s grpc.ServiceRegistrar, srv ControllerServer)
Types ¶
type ControllerClient ¶
type ControllerClient interface { CreateVolumeGroup(ctx context.Context, in *CreateVolumeGroupRequest, opts ...grpc.CallOption) (*CreateVolumeGroupResponse, error) ModifyVolumeGroupMembership(ctx context.Context, in *ModifyVolumeGroupMembershipRequest, opts ...grpc.CallOption) (*ModifyVolumeGroupMembershipResponse, error) DeleteVolumeGroup(ctx context.Context, in *DeleteVolumeGroupRequest, opts ...grpc.CallOption) (*DeleteVolumeGroupResponse, error) ListVolumeGroups(ctx context.Context, in *ListVolumeGroupsRequest, opts ...grpc.CallOption) (*ListVolumeGroupsResponse, error) ControllerGetVolumeGroup(ctx context.Context, in *ControllerGetVolumeGroupRequest, opts ...grpc.CallOption) (*ControllerGetVolumeGroupResponse, error) }
ControllerClient is the client API for Controller 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 NewControllerClient ¶
func NewControllerClient(cc grpc.ClientConnInterface) ControllerClient
type ControllerGetVolumeGroupRequest ¶
type ControllerGetVolumeGroupRequest struct { // The ID of the volume group to fetch current volume group // information for. // This field is REQUIRED. VolumeGroupId string `protobuf:"bytes,1,opt,name=volume_group_id,json=volumeGroupId,proto3" json:"volume_group_id,omitempty"` // Secrets required by plugin to complete ControllerGetVolumeGroup // request. // This field is OPTIONAL. Refer to the `Secrets Requirements` // section on how to use this field. Secrets map[string]string `` /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ControllerGetVolumeGroupRequest) Descriptor
deprecated
func (*ControllerGetVolumeGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use ControllerGetVolumeGroupRequest.ProtoReflect.Descriptor instead.
func (*ControllerGetVolumeGroupRequest) GetSecrets ¶
func (x *ControllerGetVolumeGroupRequest) GetSecrets() map[string]string
func (*ControllerGetVolumeGroupRequest) GetVolumeGroupId ¶
func (x *ControllerGetVolumeGroupRequest) GetVolumeGroupId() string
func (*ControllerGetVolumeGroupRequest) ProtoMessage ¶
func (*ControllerGetVolumeGroupRequest) ProtoMessage()
func (*ControllerGetVolumeGroupRequest) ProtoReflect ¶
func (x *ControllerGetVolumeGroupRequest) ProtoReflect() protoreflect.Message
func (*ControllerGetVolumeGroupRequest) Reset ¶
func (x *ControllerGetVolumeGroupRequest) Reset()
func (*ControllerGetVolumeGroupRequest) String ¶
func (x *ControllerGetVolumeGroupRequest) String() string
type ControllerGetVolumeGroupResponse ¶
type ControllerGetVolumeGroupResponse struct { // This field is REQUIRED VolumeGroup *VolumeGroup `protobuf:"bytes,1,opt,name=volume_group,json=volumeGroup,proto3" json:"volume_group,omitempty"` // contains filtered or unexported fields }
func (*ControllerGetVolumeGroupResponse) Descriptor
deprecated
func (*ControllerGetVolumeGroupResponse) Descriptor() ([]byte, []int)
Deprecated: Use ControllerGetVolumeGroupResponse.ProtoReflect.Descriptor instead.
func (*ControllerGetVolumeGroupResponse) GetVolumeGroup ¶
func (x *ControllerGetVolumeGroupResponse) GetVolumeGroup() *VolumeGroup
func (*ControllerGetVolumeGroupResponse) ProtoMessage ¶
func (*ControllerGetVolumeGroupResponse) ProtoMessage()
func (*ControllerGetVolumeGroupResponse) ProtoReflect ¶
func (x *ControllerGetVolumeGroupResponse) ProtoReflect() protoreflect.Message
func (*ControllerGetVolumeGroupResponse) Reset ¶
func (x *ControllerGetVolumeGroupResponse) Reset()
func (*ControllerGetVolumeGroupResponse) String ¶
func (x *ControllerGetVolumeGroupResponse) String() string
type ControllerServer ¶
type ControllerServer interface { CreateVolumeGroup(context.Context, *CreateVolumeGroupRequest) (*CreateVolumeGroupResponse, error) ModifyVolumeGroupMembership(context.Context, *ModifyVolumeGroupMembershipRequest) (*ModifyVolumeGroupMembershipResponse, error) DeleteVolumeGroup(context.Context, *DeleteVolumeGroupRequest) (*DeleteVolumeGroupResponse, error) ListVolumeGroups(context.Context, *ListVolumeGroupsRequest) (*ListVolumeGroupsResponse, error) ControllerGetVolumeGroup(context.Context, *ControllerGetVolumeGroupRequest) (*ControllerGetVolumeGroupResponse, error) // contains filtered or unexported methods }
ControllerServer is the server API for Controller service. All implementations must embed UnimplementedControllerServer for forward compatibility
type CreateVolumeGroupRequest ¶
type CreateVolumeGroupRequest struct { // suggested name for volume group (required for idempotency) // This field is REQUIRED. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // params passed from VolumeGroupClass // This field is OPTIONAL. Parameters map[string]string `` /* 161-byte string literal not displayed */ // Secrets required by plugin to complete volume group creation // request. // This field is OPTIONAL. Refer to the `Secrets Requirements` // section on how to use this field. Secrets map[string]string `` /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CreateVolumeGroupRequest) Descriptor
deprecated
func (*CreateVolumeGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateVolumeGroupRequest.ProtoReflect.Descriptor instead.
func (*CreateVolumeGroupRequest) GetName ¶
func (x *CreateVolumeGroupRequest) GetName() string
func (*CreateVolumeGroupRequest) GetParameters ¶
func (x *CreateVolumeGroupRequest) GetParameters() map[string]string
func (*CreateVolumeGroupRequest) GetSecrets ¶
func (x *CreateVolumeGroupRequest) GetSecrets() map[string]string
func (*CreateVolumeGroupRequest) ProtoMessage ¶
func (*CreateVolumeGroupRequest) ProtoMessage()
func (*CreateVolumeGroupRequest) ProtoReflect ¶
func (x *CreateVolumeGroupRequest) ProtoReflect() protoreflect.Message
func (*CreateVolumeGroupRequest) Reset ¶
func (x *CreateVolumeGroupRequest) Reset()
func (*CreateVolumeGroupRequest) String ¶
func (x *CreateVolumeGroupRequest) String() string
type CreateVolumeGroupResponse ¶
type CreateVolumeGroupResponse struct { // Contains all attributes of the newly created volume group. // This field is REQUIRED. VolumeGroup *VolumeGroup `protobuf:"bytes,1,opt,name=volume_group,json=volumeGroup,proto3" json:"volume_group,omitempty"` // contains filtered or unexported fields }
func (*CreateVolumeGroupResponse) Descriptor
deprecated
func (*CreateVolumeGroupResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateVolumeGroupResponse.ProtoReflect.Descriptor instead.
func (*CreateVolumeGroupResponse) GetVolumeGroup ¶
func (x *CreateVolumeGroupResponse) GetVolumeGroup() *VolumeGroup
func (*CreateVolumeGroupResponse) ProtoMessage ¶
func (*CreateVolumeGroupResponse) ProtoMessage()
func (*CreateVolumeGroupResponse) ProtoReflect ¶
func (x *CreateVolumeGroupResponse) ProtoReflect() protoreflect.Message
func (*CreateVolumeGroupResponse) Reset ¶
func (x *CreateVolumeGroupResponse) Reset()
func (*CreateVolumeGroupResponse) String ¶
func (x *CreateVolumeGroupResponse) String() string
type DeleteVolumeGroupRequest ¶
type DeleteVolumeGroupRequest struct { // The ID of the volume group to be deleted. // This field is REQUIRED. VolumeGroupId string `protobuf:"bytes,1,opt,name=volume_group_id,json=volumeGroupId,proto3" json:"volume_group_id,omitempty"` // Secrets required by plugin to complete volume group // deletion request. // This field is OPTIONAL. Refer to the `Secrets Requirements` // section on how to use this field. Secrets map[string]string `` /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
func (*DeleteVolumeGroupRequest) Descriptor
deprecated
func (*DeleteVolumeGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteVolumeGroupRequest.ProtoReflect.Descriptor instead.
func (*DeleteVolumeGroupRequest) GetSecrets ¶
func (x *DeleteVolumeGroupRequest) GetSecrets() map[string]string
func (*DeleteVolumeGroupRequest) GetVolumeGroupId ¶
func (x *DeleteVolumeGroupRequest) GetVolumeGroupId() string
func (*DeleteVolumeGroupRequest) ProtoMessage ¶
func (*DeleteVolumeGroupRequest) ProtoMessage()
func (*DeleteVolumeGroupRequest) ProtoReflect ¶
func (x *DeleteVolumeGroupRequest) ProtoReflect() protoreflect.Message
func (*DeleteVolumeGroupRequest) Reset ¶
func (x *DeleteVolumeGroupRequest) Reset()
func (*DeleteVolumeGroupRequest) String ¶
func (x *DeleteVolumeGroupRequest) String() string
type DeleteVolumeGroupResponse ¶
type DeleteVolumeGroupResponse struct {
// contains filtered or unexported fields
}
func (*DeleteVolumeGroupResponse) Descriptor
deprecated
func (*DeleteVolumeGroupResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteVolumeGroupResponse.ProtoReflect.Descriptor instead.
func (*DeleteVolumeGroupResponse) ProtoMessage ¶
func (*DeleteVolumeGroupResponse) ProtoMessage()
func (*DeleteVolumeGroupResponse) ProtoReflect ¶
func (x *DeleteVolumeGroupResponse) ProtoReflect() protoreflect.Message
func (*DeleteVolumeGroupResponse) Reset ¶
func (x *DeleteVolumeGroupResponse) Reset()
func (*DeleteVolumeGroupResponse) String ¶
func (x *DeleteVolumeGroupResponse) String() string
type ListVolumeGroupsRequest ¶
type ListVolumeGroupsRequest struct { // If specified (non-zero value), the Plugin MUST NOT return more // entries than this number in the response. If the actual number of // entries is more than this number, the Plugin MUST set `next_token` // in the response which can be used to get the next page of entries // in the subsequent `ListVolumeGroups` call. This field is OPTIONAL. // If not specified (zero value), it means there is no restriction on // the number of entries that can be returned. // The value of this field MUST NOT be negative. MaxEntries int32 `protobuf:"varint,1,opt,name=max_entries,json=maxEntries,proto3" json:"max_entries,omitempty"` // A token to specify where to start paginating. Set this field to // `next_token` returned by a previous `ListVolumeGroups` call to get // the next page of entries. This field is OPTIONAL. // An empty string is equal to an unspecified field value. StartingToken string `protobuf:"bytes,2,opt,name=starting_token,json=startingToken,proto3" json:"starting_token,omitempty"` // Secrets required by plugin to complete ListVolumeGroup request. // This field is OPTIONAL. Refer to the `Secrets Requirements` // section on how to use this field. Secrets map[string]string `` /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ListVolumeGroupsRequest) Descriptor
deprecated
func (*ListVolumeGroupsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListVolumeGroupsRequest.ProtoReflect.Descriptor instead.
func (*ListVolumeGroupsRequest) GetMaxEntries ¶
func (x *ListVolumeGroupsRequest) GetMaxEntries() int32
func (*ListVolumeGroupsRequest) GetSecrets ¶
func (x *ListVolumeGroupsRequest) GetSecrets() map[string]string
func (*ListVolumeGroupsRequest) GetStartingToken ¶
func (x *ListVolumeGroupsRequest) GetStartingToken() string
func (*ListVolumeGroupsRequest) ProtoMessage ¶
func (*ListVolumeGroupsRequest) ProtoMessage()
func (*ListVolumeGroupsRequest) ProtoReflect ¶
func (x *ListVolumeGroupsRequest) ProtoReflect() protoreflect.Message
func (*ListVolumeGroupsRequest) Reset ¶
func (x *ListVolumeGroupsRequest) Reset()
func (*ListVolumeGroupsRequest) String ¶
func (x *ListVolumeGroupsRequest) String() string
type ListVolumeGroupsResponse ¶
type ListVolumeGroupsResponse struct { Entries []*ListVolumeGroupsResponse_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` // This token allows you to get the next page of entries for // `ListVolumeGroups` request. If the number of entries is larger than // `max_entries`, use the `next_token` as a value for the // `starting_token` field in the next `ListVolumeGroups` request. This // field is OPTIONAL. // An empty string is equal to an unspecified field value. NextToken string `protobuf:"bytes,2,opt,name=next_token,json=nextToken,proto3" json:"next_token,omitempty"` // contains filtered or unexported fields }
func (*ListVolumeGroupsResponse) Descriptor
deprecated
func (*ListVolumeGroupsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListVolumeGroupsResponse.ProtoReflect.Descriptor instead.
func (*ListVolumeGroupsResponse) GetEntries ¶
func (x *ListVolumeGroupsResponse) GetEntries() []*ListVolumeGroupsResponse_Entry
func (*ListVolumeGroupsResponse) GetNextToken ¶
func (x *ListVolumeGroupsResponse) GetNextToken() string
func (*ListVolumeGroupsResponse) ProtoMessage ¶
func (*ListVolumeGroupsResponse) ProtoMessage()
func (*ListVolumeGroupsResponse) ProtoReflect ¶
func (x *ListVolumeGroupsResponse) ProtoReflect() protoreflect.Message
func (*ListVolumeGroupsResponse) Reset ¶
func (x *ListVolumeGroupsResponse) Reset()
func (*ListVolumeGroupsResponse) String ¶
func (x *ListVolumeGroupsResponse) String() string
type ListVolumeGroupsResponse_Entry ¶
type ListVolumeGroupsResponse_Entry struct { // This field is REQUIRED VolumeGroup *VolumeGroup `protobuf:"bytes,1,opt,name=volume_group,json=volumeGroup,proto3" json:"volume_group,omitempty"` // contains filtered or unexported fields }
func (*ListVolumeGroupsResponse_Entry) Descriptor
deprecated
func (*ListVolumeGroupsResponse_Entry) Descriptor() ([]byte, []int)
Deprecated: Use ListVolumeGroupsResponse_Entry.ProtoReflect.Descriptor instead.
func (*ListVolumeGroupsResponse_Entry) GetVolumeGroup ¶
func (x *ListVolumeGroupsResponse_Entry) GetVolumeGroup() *VolumeGroup
func (*ListVolumeGroupsResponse_Entry) ProtoMessage ¶
func (*ListVolumeGroupsResponse_Entry) ProtoMessage()
func (*ListVolumeGroupsResponse_Entry) ProtoReflect ¶
func (x *ListVolumeGroupsResponse_Entry) ProtoReflect() protoreflect.Message
func (*ListVolumeGroupsResponse_Entry) Reset ¶
func (x *ListVolumeGroupsResponse_Entry) Reset()
func (*ListVolumeGroupsResponse_Entry) String ¶
func (x *ListVolumeGroupsResponse_Entry) String() string
type ModifyVolumeGroupMembershipRequest ¶
type ModifyVolumeGroupMembershipRequest struct { // The ID of the volume group to be modified. // This field is REQUIRED. VolumeGroupId string `protobuf:"bytes,1,opt,name=volume_group_id,json=volumeGroupId,proto3" json:"volume_group_id,omitempty"` // Specify volume_ids that will be in the modified volume group. // This list will be compared with the volume_ids in the existing // group. // New ones will be added and missing ones will be removed. // If no volume_ids are provided, all existing volumes will // be removed from the group. // This field is OPTIONAL. VolumeIds []string `protobuf:"bytes,2,rep,name=volume_ids,json=volumeIds,proto3" json:"volume_ids,omitempty"` // Secrets required by plugin to complete volume group // modification request. // This field is OPTIONAL. Refer to the `Secrets Requirements` // section on how to use this field. Secrets map[string]string `` /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ModifyVolumeGroupMembershipRequest) Descriptor
deprecated
func (*ModifyVolumeGroupMembershipRequest) Descriptor() ([]byte, []int)
Deprecated: Use ModifyVolumeGroupMembershipRequest.ProtoReflect.Descriptor instead.
func (*ModifyVolumeGroupMembershipRequest) GetSecrets ¶
func (x *ModifyVolumeGroupMembershipRequest) GetSecrets() map[string]string
func (*ModifyVolumeGroupMembershipRequest) GetVolumeGroupId ¶
func (x *ModifyVolumeGroupMembershipRequest) GetVolumeGroupId() string
func (*ModifyVolumeGroupMembershipRequest) GetVolumeIds ¶
func (x *ModifyVolumeGroupMembershipRequest) GetVolumeIds() []string
func (*ModifyVolumeGroupMembershipRequest) ProtoMessage ¶
func (*ModifyVolumeGroupMembershipRequest) ProtoMessage()
func (*ModifyVolumeGroupMembershipRequest) ProtoReflect ¶
func (x *ModifyVolumeGroupMembershipRequest) ProtoReflect() protoreflect.Message
func (*ModifyVolumeGroupMembershipRequest) Reset ¶
func (x *ModifyVolumeGroupMembershipRequest) Reset()
func (*ModifyVolumeGroupMembershipRequest) String ¶
func (x *ModifyVolumeGroupMembershipRequest) String() string
type ModifyVolumeGroupMembershipResponse ¶
type ModifyVolumeGroupMembershipResponse struct { // Contains all attributes of the modified volume group. // This field is REQUIRED. VolumeGroup *VolumeGroup `protobuf:"bytes,1,opt,name=volume_group,json=volumeGroup,proto3" json:"volume_group,omitempty"` // contains filtered or unexported fields }
func (*ModifyVolumeGroupMembershipResponse) Descriptor
deprecated
func (*ModifyVolumeGroupMembershipResponse) Descriptor() ([]byte, []int)
Deprecated: Use ModifyVolumeGroupMembershipResponse.ProtoReflect.Descriptor instead.
func (*ModifyVolumeGroupMembershipResponse) GetVolumeGroup ¶
func (x *ModifyVolumeGroupMembershipResponse) GetVolumeGroup() *VolumeGroup
func (*ModifyVolumeGroupMembershipResponse) ProtoMessage ¶
func (*ModifyVolumeGroupMembershipResponse) ProtoMessage()
func (*ModifyVolumeGroupMembershipResponse) ProtoReflect ¶
func (x *ModifyVolumeGroupMembershipResponse) ProtoReflect() protoreflect.Message
func (*ModifyVolumeGroupMembershipResponse) Reset ¶
func (x *ModifyVolumeGroupMembershipResponse) Reset()
func (*ModifyVolumeGroupMembershipResponse) String ¶
func (x *ModifyVolumeGroupMembershipResponse) String() string
type UnimplementedControllerServer ¶
type UnimplementedControllerServer struct { }
UnimplementedControllerServer must be embedded to have forward compatible implementations.
func (UnimplementedControllerServer) ControllerGetVolumeGroup ¶
func (UnimplementedControllerServer) ControllerGetVolumeGroup(context.Context, *ControllerGetVolumeGroupRequest) (*ControllerGetVolumeGroupResponse, error)
func (UnimplementedControllerServer) CreateVolumeGroup ¶
func (UnimplementedControllerServer) CreateVolumeGroup(context.Context, *CreateVolumeGroupRequest) (*CreateVolumeGroupResponse, error)
func (UnimplementedControllerServer) DeleteVolumeGroup ¶
func (UnimplementedControllerServer) DeleteVolumeGroup(context.Context, *DeleteVolumeGroupRequest) (*DeleteVolumeGroupResponse, error)
func (UnimplementedControllerServer) ListVolumeGroups ¶
func (UnimplementedControllerServer) ListVolumeGroups(context.Context, *ListVolumeGroupsRequest) (*ListVolumeGroupsResponse, error)
func (UnimplementedControllerServer) ModifyVolumeGroupMembership ¶
func (UnimplementedControllerServer) ModifyVolumeGroupMembership(context.Context, *ModifyVolumeGroupMembershipRequest) (*ModifyVolumeGroupMembershipResponse, error)
type UnsafeControllerServer ¶
type UnsafeControllerServer interface {
// contains filtered or unexported methods
}
UnsafeControllerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ControllerServer will result in compilation errors.
type VgTopology ¶
type VgTopology struct { Segments map[string]string `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
func (*VgTopology) Descriptor
deprecated
func (*VgTopology) Descriptor() ([]byte, []int)
Deprecated: Use VgTopology.ProtoReflect.Descriptor instead.
func (*VgTopology) GetSegments ¶
func (x *VgTopology) GetSegments() map[string]string
func (*VgTopology) ProtoMessage ¶
func (*VgTopology) ProtoMessage()
func (*VgTopology) ProtoReflect ¶
func (x *VgTopology) ProtoReflect() protoreflect.Message
func (*VgTopology) Reset ¶
func (x *VgTopology) Reset()
func (*VgTopology) String ¶
func (x *VgTopology) String() string
type VgVolume ¶
type VgVolume struct { // The capacity of the volume in bytes. This field is OPTIONAL. If not // set (value of 0), it indicates that the capacity of the volume is // unknown (e.g., NFS share). // The value of this field MUST NOT be negative. CapacityBytes int64 `protobuf:"varint,1,opt,name=capacity_bytes,json=capacityBytes,proto3" json:"capacity_bytes,omitempty"` // The identifier for this volume, generated by the plugin. // This field is REQUIRED. // This field MUST contain enough information to uniquely identify // this specific volume vs all other volumes supported by this plugin. // This field SHALL be used by the CO in subsequent calls to refer to // this volume. // The SP is NOT responsible for global uniqueness of volume_id across // multiple SPs. VolumeId string `protobuf:"bytes,2,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` // Opaque static properties of the volume. SP MAY use this field to // ensure subsequent volume validation and publishing calls have // contextual information. // The contents of this field SHALL be opaque to a CO. // The contents of this field SHALL NOT be mutable. // The contents of this field SHALL be safe for the CO to cache. // The contents of this field SHOULD NOT contain sensitive // information. // The contents of this field SHOULD NOT be used for uniquely // identifying a volume. The `volume_id` alone SHOULD be sufficient to // identify the volume. // A volume uniquely identified by `volume_id` SHALL always report the // same volume_context. // This field is OPTIONAL and when present MUST be passed to volume // validation and publishing calls. VolumeContext map[string]string `` /* 188-byte string literal not displayed */ // If specified, indicates that the volume is not empty and is // pre-populated with data from the specified source. // This field is OPTIONAL. ContentSource *VgVolumeContentSource `protobuf:"bytes,4,opt,name=content_source,json=contentSource,proto3" json:"content_source,omitempty"` // Specifies where (regions, zones, racks, etc.) the provisioned // volume is accessible from. // A plugin that returns this field MUST also set the // VOLUME_ACCESSIBILITY_CONSTRAINTS plugin capability. // An SP MAY specify multiple topologies to indicate the volume is // accessible from multiple locations. // COs MAY use this information along with the topology information // returned by NodeGetInfo to ensure that a given volume is accessible // from a given node when scheduling workloads. // This field is OPTIONAL. If it is not specified, the CO MAY assume // the volume is equally accessible from all nodes in the cluster and // MAY schedule workloads referencing the volume on any available // node. // // Example 1: // accessible_topology = {"region": "R1", "zone": "Z2"} // Indicates a volume accessible only from the "region" "R1" and the // "zone" "Z2". // // Example 2: // accessible_topology = // {"region": "R1", "zone": "Z2"}, // {"region": "R1", "zone": "Z3"} // Indicates a volume accessible from both "zone" "Z2" and "zone" "Z3" // in the "region" "R1". AccessibleTopology []*VgTopology `protobuf:"bytes,5,rep,name=accessible_topology,json=accessibleTopology,proto3" json:"accessible_topology,omitempty"` // contains filtered or unexported fields }
Information about a specific volume.
func (*VgVolume) Descriptor
deprecated
func (*VgVolume) GetAccessibleTopology ¶
func (x *VgVolume) GetAccessibleTopology() []*VgTopology
func (*VgVolume) GetCapacityBytes ¶
func (*VgVolume) GetContentSource ¶
func (x *VgVolume) GetContentSource() *VgVolumeContentSource
func (*VgVolume) GetVolumeContext ¶
func (*VgVolume) GetVolumeId ¶
func (*VgVolume) ProtoMessage ¶
func (*VgVolume) ProtoMessage()
func (*VgVolume) ProtoReflect ¶
func (x *VgVolume) ProtoReflect() protoreflect.Message
type VgVolumeContentSource ¶
type VgVolumeContentSource struct { // Types that are assignable to Type: // *VgVolumeContentSource_Snapshot // *VgVolumeContentSource_Volume Type isVgVolumeContentSource_Type `protobuf_oneof:"type"` // contains filtered or unexported fields }
func (*VgVolumeContentSource) Descriptor
deprecated
func (*VgVolumeContentSource) Descriptor() ([]byte, []int)
Deprecated: Use VgVolumeContentSource.ProtoReflect.Descriptor instead.
func (*VgVolumeContentSource) GetSnapshot ¶
func (x *VgVolumeContentSource) GetSnapshot() *VgVolumeContentSource_SnapshotSource
func (*VgVolumeContentSource) GetType ¶
func (m *VgVolumeContentSource) GetType() isVgVolumeContentSource_Type
func (*VgVolumeContentSource) GetVolume ¶
func (x *VgVolumeContentSource) GetVolume() *VgVolumeContentSource_VolumeSource
func (*VgVolumeContentSource) ProtoMessage ¶
func (*VgVolumeContentSource) ProtoMessage()
func (*VgVolumeContentSource) ProtoReflect ¶
func (x *VgVolumeContentSource) ProtoReflect() protoreflect.Message
func (*VgVolumeContentSource) Reset ¶
func (x *VgVolumeContentSource) Reset()
func (*VgVolumeContentSource) String ¶
func (x *VgVolumeContentSource) String() string
type VgVolumeContentSource_Snapshot ¶
type VgVolumeContentSource_Snapshot struct {
Snapshot *VgVolumeContentSource_SnapshotSource `protobuf:"bytes,1,opt,name=snapshot,proto3,oneof"`
}
type VgVolumeContentSource_SnapshotSource ¶
type VgVolumeContentSource_SnapshotSource struct { // Contains identity information for the existing source snapshot. // This field is REQUIRED. Plugin is REQUIRED to support creating // volume from snapshot if it supports the capability // CREATE_DELETE_SNAPSHOT. SnapshotId string `protobuf:"bytes,1,opt,name=snapshot_id,json=snapshotId,proto3" json:"snapshot_id,omitempty"` // contains filtered or unexported fields }
func (*VgVolumeContentSource_SnapshotSource) Descriptor
deprecated
func (*VgVolumeContentSource_SnapshotSource) Descriptor() ([]byte, []int)
Deprecated: Use VgVolumeContentSource_SnapshotSource.ProtoReflect.Descriptor instead.
func (*VgVolumeContentSource_SnapshotSource) GetSnapshotId ¶
func (x *VgVolumeContentSource_SnapshotSource) GetSnapshotId() string
func (*VgVolumeContentSource_SnapshotSource) ProtoMessage ¶
func (*VgVolumeContentSource_SnapshotSource) ProtoMessage()
func (*VgVolumeContentSource_SnapshotSource) ProtoReflect ¶
func (x *VgVolumeContentSource_SnapshotSource) ProtoReflect() protoreflect.Message
func (*VgVolumeContentSource_SnapshotSource) Reset ¶
func (x *VgVolumeContentSource_SnapshotSource) Reset()
func (*VgVolumeContentSource_SnapshotSource) String ¶
func (x *VgVolumeContentSource_SnapshotSource) String() string
type VgVolumeContentSource_Volume ¶
type VgVolumeContentSource_Volume struct {
Volume *VgVolumeContentSource_VolumeSource `protobuf:"bytes,2,opt,name=volume,proto3,oneof"`
}
type VgVolumeContentSource_VolumeSource ¶
type VgVolumeContentSource_VolumeSource struct { // Contains identity information for the existing source volume. // This field is REQUIRED. Plugins reporting CLONE_VOLUME // capability MUST support creating a volume from another volume. VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` // contains filtered or unexported fields }
func (*VgVolumeContentSource_VolumeSource) Descriptor
deprecated
func (*VgVolumeContentSource_VolumeSource) Descriptor() ([]byte, []int)
Deprecated: Use VgVolumeContentSource_VolumeSource.ProtoReflect.Descriptor instead.
func (*VgVolumeContentSource_VolumeSource) GetVolumeId ¶
func (x *VgVolumeContentSource_VolumeSource) GetVolumeId() string
func (*VgVolumeContentSource_VolumeSource) ProtoMessage ¶
func (*VgVolumeContentSource_VolumeSource) ProtoMessage()
func (*VgVolumeContentSource_VolumeSource) ProtoReflect ¶
func (x *VgVolumeContentSource_VolumeSource) ProtoReflect() protoreflect.Message
func (*VgVolumeContentSource_VolumeSource) Reset ¶
func (x *VgVolumeContentSource_VolumeSource) Reset()
func (*VgVolumeContentSource_VolumeSource) String ¶
func (x *VgVolumeContentSource_VolumeSource) String() string
type VolumeGroup ¶
type VolumeGroup struct { // The identifier for this volume group, generated by the plugin. // This field is REQUIRED. VolumeGroupId string `protobuf:"bytes,1,opt,name=volume_group_id,json=volumeGroupId,proto3" json:"volume_group_id,omitempty"` // Opaque static properties of the volume group. // This field is OPTIONAL. VolumeGroupContext map[string]string `` /* 205-byte string literal not displayed */ // Underlying volumes in this group. The same definition in CSI // Volume. // This field is OPTIONAL. // To support the creation of an empty group, this list can be empty. // However, this field is not empty in the following cases: // - Response from ListVolumeGroups or ControllerGetVolumeGroup if the // VolumeGroup is not empty. // - Response from ModifyVolumeGroupMembership if the // VolumeGroup is not empty after modification. Volumes []*VgVolume `protobuf:"bytes,3,rep,name=volumes,proto3" json:"volumes,omitempty"` // contains filtered or unexported fields }
func (*VolumeGroup) Descriptor
deprecated
func (*VolumeGroup) Descriptor() ([]byte, []int)
Deprecated: Use VolumeGroup.ProtoReflect.Descriptor instead.
func (*VolumeGroup) GetVolumeGroupContext ¶
func (x *VolumeGroup) GetVolumeGroupContext() map[string]string
func (*VolumeGroup) GetVolumeGroupId ¶
func (x *VolumeGroup) GetVolumeGroupId() string
func (*VolumeGroup) GetVolumes ¶
func (x *VolumeGroup) GetVolumes() []*VgVolume
func (*VolumeGroup) ProtoMessage ¶
func (*VolumeGroup) ProtoMessage()
func (*VolumeGroup) ProtoReflect ¶
func (x *VolumeGroup) ProtoReflect() protoreflect.Message
func (*VolumeGroup) Reset ¶
func (x *VolumeGroup) Reset()
func (*VolumeGroup) String ¶
func (x *VolumeGroup) String() string