Skip to content

Commit

Permalink
fix: Fixed a description error in CreateLink (#698)
Browse files Browse the repository at this point in the history
  • Loading branch information
abyss-w authored Jul 30, 2021
1 parent 5ed344b commit 6e541b8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
6 changes: 3 additions & 3 deletions cmd/definitions/bindata/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions definitions/operations.toml
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,10 @@ Will create a link object.
# Behavior
- `path` and `target` COULD be relative or absolute path.
- If `target` exists, CreateLink will create a link object on the target.
- If `path` does not exist, the CreateLink will fail, and no link object will be created anywhere.
- If `target` not exists, CreateLink will still create a link object to path.
- If `path` exists:
- If `path` is a symlink object, CreateLink will remove the symlink object and create a new link object to path.
- If `path` is not a symlink object, CreateLink will return an ErrObjectModeInvalid error when the service does not support overwrite.
- A link object COULD be returned in `Stat` or `List`.
- CreateLink COULD implement virtual_link feature when service without native support.
- Users SHOULD enable this feature by themselves.
Expand Down
12 changes: 8 additions & 4 deletions types/operation.generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,10 @@ type Linker interface {
// # Behavior
//
// - `path` and `target` COULD be relative or absolute path.
// - If `target` exists, CreateLink will create a link object on the target.
// - If `path` does not exist, the CreateLink will fail, and no link object will be created anywhere.
// - If `target` not exists, CreateLink will still create a link object to path.
// - If `path` exists:
// - If `path` is a symlink object, CreateLink will remove the symlink object and create a new link object to path.
// - If `path` is not a symlink object, CreateLink will return an ErrObjectModeInvalid error when the service does not support overwrite.
// - A link object COULD be returned in `Stat` or `List`.
// - CreateLink COULD implement virtual_link feature when service without native support.
// - Users SHOULD enable this feature by themselves.
Expand All @@ -293,8 +295,10 @@ type Linker interface {
// # Behavior
//
// - `path` and `target` COULD be relative or absolute path.
// - If `target` exists, CreateLink will create a link object on the target.
// - If `path` does not exist, the CreateLink will fail, and no link object will be created anywhere.
// - If `target` not exists, CreateLink will still create a link object to path.
// - If `path` exists:
// - If `path` is a symlink object, CreateLink will remove the symlink object and create a new link object to path.
// - If `path` is not a symlink object, CreateLink will return an ErrObjectModeInvalid error when the service does not support overwrite.
// - A link object COULD be returned in `Stat` or `List`.
// - CreateLink COULD implement virtual_link feature when service without native support.
// - Users SHOULD enable this feature by themselves.
Expand Down

0 comments on commit 6e541b8

Please sign in to comment.