Skip to content

Commit 8f44712

Browse files
committed
Generate code with protobuf and csi-proxy-api-gen for RmdirContents
1 parent e2ace04 commit 8f44712

File tree

8 files changed

+612
-154
lines changed

8 files changed

+612
-154
lines changed

client/api/filesystem/v2alpha1/api.pb.go

Lines changed: 263 additions & 77 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/api/filesystem/v2alpha1/api.proto

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ service Filesystem {
1515
// This may be used for unlinking a symlink created through CreateSymlink.
1616
rpc Rmdir(RmdirRequest) returns (RmdirResponse) {}
1717

18+
// RmdirContents removes the contents of a directory in the host filesystem.
19+
rpc RmdirContents(RmdirContentsRequest) returns (RmdirContentsResponse) {}
20+
1821
// CreateSymlink creates a symbolic link called target_path that points to source_path
1922
// in the host filesystem (target_path is the name of the symbolic link created,
2023
// source_path is the existing path).
@@ -86,6 +89,32 @@ message RmdirResponse {
8689
// Intentionally empty.
8790
}
8891

92+
message RmdirContentsRequest {
93+
// The path whose contentes willbe removed in the host's filesystem.
94+
// All special characters allowed by Windows in path names will be allowed
95+
// except for restrictions noted below. For details, please check:
96+
// https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file
97+
//
98+
// Restrictions:
99+
// Only absolute path (indicated by a drive letter prefix: e.g. "C:\") is accepted.
100+
// Depending on the context parameter of this function, the path prefix needs
101+
// to match the paths specified either as kubelet-csi-plugins-path
102+
// or as kubelet-pod-path parameters of csi-proxy.
103+
// UNC paths of the form "\\server\share\path\file" are not allowed.
104+
// All directory separators need to be backslash character: "\".
105+
// Characters: .. / : | ? * in the path are not allowed.
106+
// Path cannot be a file of type symlink.
107+
// Maximum path length will be capped to 260 characters.
108+
string path = 1;
109+
110+
// Force remove all contents under path (if any).
111+
bool force = 2;
112+
}
113+
114+
message RmdirContentsResponse {
115+
// Intentionally empty.
116+
}
117+
89118
message CreateSymlinkRequest {
90119
// The path of the existing directory to be linked.
91120
// All special characters allowed by Windows in path names will be allowed

client/groups/filesystem/v2alpha1/client_generated.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/server/filesystem/impl/types_generated.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/server/filesystem/impl/v2alpha1/server_generated.go

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/kubernetes-csi/csi-proxy/client/api/filesystem/v2alpha1/api.pb.go

Lines changed: 263 additions & 77 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/kubernetes-csi/csi-proxy/client/api/filesystem/v2alpha1/api.proto

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/kubernetes-csi/csi-proxy/client/groups/filesystem/v2alpha1/client_generated.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)