You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
108 lines
2.3 KiB
108 lines
2.3 KiB
9 years ago
|
/*
|
||
|
* Minio Cloud Storage, (C) 2016 Minio, Inc.
|
||
|
*
|
||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
* you may not use this file except in compliance with the License.
|
||
|
* You may obtain a copy of the License at
|
||
|
*
|
||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||
|
*
|
||
|
* Unless required by applicable law or agreed to in writing, software
|
||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
* See the License for the specific language governing permissions and
|
||
|
* limitations under the License.
|
||
|
*/
|
||
|
|
||
8 years ago
|
package cmd
|
||
9 years ago
|
|
||
9 years ago
|
// GenericReply represents any generic RPC reply.
|
||
9 years ago
|
type GenericReply struct{}
|
||
|
|
||
9 years ago
|
// GenericArgs represents any generic RPC arguments.
|
||
9 years ago
|
type GenericArgs struct{}
|
||
|
|
||
9 years ago
|
// ListVolsReply represents list of vols RPC reply.
|
||
9 years ago
|
type ListVolsReply struct {
|
||
9 years ago
|
// List of volumes stat information.
|
||
9 years ago
|
Vols []VolInfo
|
||
|
}
|
||
|
|
||
9 years ago
|
// ReadAllArgs represents read all RPC arguments.
|
||
|
type ReadAllArgs struct {
|
||
|
// Name of the volume.
|
||
|
Vol string
|
||
|
|
||
|
// Name of the path.
|
||
|
Path string
|
||
|
}
|
||
|
|
||
9 years ago
|
// ReadFileArgs represents read file RPC arguments.
|
||
9 years ago
|
type ReadFileArgs struct {
|
||
9 years ago
|
// Name of the volume.
|
||
|
Vol string
|
||
|
|
||
|
// Name of the path.
|
||
|
Path string
|
||
|
|
||
|
// Starting offset to start reading into Buffer.
|
||
9 years ago
|
Offset int64
|
||
9 years ago
|
|
||
|
// Data buffer read from the path at offset.
|
||
9 years ago
|
Buffer []byte
|
||
|
}
|
||
|
|
||
9 years ago
|
// AppendFileArgs represents append file RPC arguments.
|
||
9 years ago
|
type AppendFileArgs struct {
|
||
9 years ago
|
// Name of the volume.
|
||
|
Vol string
|
||
|
|
||
|
// Name of the path.
|
||
|
Path string
|
||
|
|
||
|
// Data buffer to be saved at path.
|
||
9 years ago
|
Buffer []byte
|
||
|
}
|
||
|
|
||
9 years ago
|
// StatFileArgs represents stat file RPC arguments.
|
||
9 years ago
|
type StatFileArgs struct {
|
||
9 years ago
|
// Name of the volume.
|
||
|
Vol string
|
||
|
|
||
|
// Name of the path.
|
||
9 years ago
|
Path string
|
||
|
}
|
||
|
|
||
9 years ago
|
// DeleteFileArgs represents delete file RPC arguments.
|
||
9 years ago
|
type DeleteFileArgs struct {
|
||
9 years ago
|
// Name of the volume.
|
||
|
Vol string
|
||
|
|
||
|
// Name of the path.
|
||
9 years ago
|
Path string
|
||
|
}
|
||
9 years ago
|
|
||
9 years ago
|
// ListDirArgs represents list contents RPC arguments.
|
||
9 years ago
|
type ListDirArgs struct {
|
||
9 years ago
|
// Name of the volume.
|
||
|
Vol string
|
||
|
|
||
|
// Name of the path.
|
||
9 years ago
|
Path string
|
||
|
}
|
||
|
|
||
9 years ago
|
// RenameFileArgs represents rename file RPC arguments.
|
||
9 years ago
|
type RenameFileArgs struct {
|
||
9 years ago
|
// Name of source volume.
|
||
|
SrcVol string
|
||
|
|
||
|
// Source path to be renamed.
|
||
9 years ago
|
SrcPath string
|
||
9 years ago
|
|
||
|
// Name of destination volume.
|
||
|
DstVol string
|
||
|
|
||
|
// Destination path of renamed file.
|
||
9 years ago
|
DstPath string
|
||
|
}
|