-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
63 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...ckend/generic/api-generic/src/main/kotlin/com/tencent/bkrepo/generic/pojo/NewBlockInfo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.tencent.bkrepo.generic.pojo | ||
|
||
import io.swagger.annotations.ApiModel | ||
import io.swagger.annotations.ApiModelProperty | ||
|
||
|
||
@ApiModel("新分块信息") | ||
data class NewBlockInfo( | ||
@ApiModelProperty("分块大小") | ||
val size: Long, | ||
@ApiModelProperty("分块sha256") | ||
val sha256: String, | ||
@ApiModelProperty("分块起始位置") | ||
val startPos: Long | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...end/generic/biz-generic/src/main/kotlin/com/tencent/bkrepo/generic/model/NodeAttribute.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.tencent.bkrepo.generic.model | ||
|
||
data class NodeAttribute( | ||
// 用户id | ||
val uid: String, | ||
// 组id | ||
val gid: String, | ||
// 文件权限,八进制 | ||
val mode: Int? = DEFAULT_MODE, | ||
// windows文件flag,十六进制 | ||
val flags: Int? = null, | ||
// 设备文件设备号 | ||
val rdev: Int? = null, | ||
// 文件类型 | ||
val type: Int? = null | ||
) { | ||
companion object { | ||
const val DEFAULT_MODE = 644 | ||
const val NOBODY = "nobody" | ||
} | ||
} | ||
|