-
Notifications
You must be signed in to change notification settings - Fork 789
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: test file system (#2119) Signed-off-by: 张启航 <[email protected]> * fix: test Signed-off-by: 张启航 <[email protected]> --------- Signed-off-by: 张启航 <[email protected]>
- Loading branch information
1 parent
96a2970
commit 039d625
Showing
16 changed files
with
721 additions
and
35 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package configs | ||
|
||
import "github.com/spf13/pflag" | ||
|
||
type FilePersistenceConfig struct { | ||
FilePersistenceType string `json:"file_persistence_type"` | ||
FilePersistenceAccessKeyID string `json:"file_persistence_access_key_id"` | ||
FilePersistenceSecretAccessKey string `json:"file_persistence_secret_access_key"` | ||
FilePersistenceRegion string `json:"file_persistence_region"` | ||
FilePersistenceZoneID string `json:"file_persistence_zone_id"` | ||
FilePersistenceVpcID string `json:"file_persistence_vpc_id"` | ||
FilePersistenceSubnetID string `json:"file_persistence_subnet_id"` | ||
FilePersistencePermissionGroupID string `json:"file_persistence_permission_group_id"` | ||
FilePersistenceEnable string `json:"file_persistence_enable"` | ||
} | ||
|
||
func AddFilePersistenceFlags(fs *pflag.FlagSet, fpc *FilePersistenceConfig) { | ||
fs.StringVar(&fpc.FilePersistenceType, "file-persistence-type", "volcengine", "volcengine、aliyun or tencentcloud") | ||
fs.StringVar(&fpc.FilePersistenceAccessKeyID, "file-persistence-access-key-id", "", "access key id") | ||
fs.StringVar(&fpc.FilePersistenceSecretAccessKey, "file-persistence-secret-access-key", "", "secret access key") | ||
fs.StringVar(&fpc.FilePersistenceRegion, "file-persistence-region", "cn-shanghai", "region") | ||
fs.StringVar(&fpc.FilePersistenceZoneID, "file-persistence-zone-id", "cn-shanghai-b", "zone id") | ||
fs.StringVar(&fpc.FilePersistenceVpcID, "file-persistence-vpc-id", "", "file persistence vpc id") | ||
fs.StringVar(&fpc.FilePersistenceSubnetID, "file-persistence-subnet-id", "", "file persistence subnet id") | ||
fs.StringVar(&fpc.FilePersistencePermissionGroupID, "file-persistence-permission-group-id", "", "file persistence permission group id") | ||
fs.StringVar(&fpc.FilePersistenceEnable, "file-persistence-enable", "open", "open or close") | ||
} |
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
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
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
Oops, something went wrong.