Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
43b58b87
Commit
43b58b87
authored
May 02, 2017
by
Pengfei Ni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CRI: Add ImageFsInfo API
parent
2371a70b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
api.proto
pkg/kubelet/api/v1alpha1/runtime/api.proto
+41
-0
No files found.
pkg/kubelet/api/v1alpha1/runtime/api.proto
View file @
43b58b87
...
...
@@ -90,6 +90,8 @@ service ImageService {
// This call is idempotent, and must not return an error if the image has
// already been removed.
rpc
RemoveImage
(
RemoveImageRequest
)
returns
(
RemoveImageResponse
)
{}
// ImageFSInfo returns information of the filesystem that is used to store images.
rpc
ImageFsInfo
(
ImageFsInfoRequest
)
returns
(
ImageFsInfoResponse
)
{}
}
message
VersionRequest
{
...
...
@@ -964,3 +966,42 @@ message StatusResponse {
// Status of the Runtime.
RuntimeStatus
status
=
1
;
}
message
ImageFsInfoRequest
{}
// UInt64Value is the wrapper of uint64.
message
UInt64Value
{
// The value.
uint64
value
=
1
;
}
// FsInfo contains data about filesystem usage.
message
FsInfo
{
// The block device name associated with the filesystem.
string
device
=
1
;
// The root directory for the images.
string
path
=
2
;
// CapacityBytes represents the total capacity (bytes) of the filesystems
// underlying storage.
UInt64Value
capacity_bytes
=
3
;
// AvailableBytes represents the storage space available (bytes) for the
// filesystem.
UInt64Value
available_bytes
=
4
;
// UsedBytes represents the bytes used for images on the filesystem.
// This may differ from the total bytes used on the filesystem and may not
// equal CapacityBytes - AvailableBytes.
UInt64Value
used_bytes
=
5
;
// InodesCapacity represents the total inodes in the filesystem.
UInt64Value
inodes_capacity
=
6
;
// InodesAvailable represents the free inodes in the filesystem.
UInt64Value
inodes_available
=
7
;
// InodesUsed represents the inodes used by the images.
// This may not equal InodesCapacity - InodesAvailable because the underlying
// filesystem may also be used for purposes other than storing images.
UInt64Value
inodes_used
=
8
;
}
message
ImageFsInfoResponse
{
// filesystem information of images.
FsInfo
fs_info
=
1
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment