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.
50 lines
1.1 KiB
50 lines
1.1 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
|
|
||
|
import (
|
||
|
"os"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
9 years ago
|
// VolInfo - represents volume stat information.
|
||
9 years ago
|
type VolInfo struct {
|
||
9 years ago
|
// Name of the volume.
|
||
|
Name string
|
||
|
|
||
|
// Date and time when the volume was created.
|
||
9 years ago
|
Created time.Time
|
||
|
}
|
||
|
|
||
9 years ago
|
// FileInfo - represents file stat information.
|
||
9 years ago
|
type FileInfo struct {
|
||
9 years ago
|
// Name of the volume.
|
||
|
Volume string
|
||
|
|
||
|
// Name of the file.
|
||
|
Name string
|
||
|
|
||
|
// Date and time when the file was last modified.
|
||
9 years ago
|
ModTime time.Time
|
||
9 years ago
|
|
||
|
// Total file size.
|
||
|
Size int64
|
||
|
|
||
|
// File mode bits.
|
||
|
Mode os.FileMode
|
||
9 years ago
|
}
|