Issue 24: Added read-only mode (#27)
- Added settings to workspace, and added the read-only mode - Added the `-ro` field which will launch Dynamo-Browse in read-only mode - Added the `set ro` to enable read-only mode, and `set rw` to enable read-write mode
This commit is contained in:
parent
a1717572c5
commit
93ec519127
18 changed files with 623 additions and 315 deletions
|
|
@ -49,7 +49,7 @@ func main() {
|
|||
}
|
||||
|
||||
dynamoProvider := dynamo.NewProvider(dynamoClient)
|
||||
tableService := tables.NewService(dynamoProvider)
|
||||
tableService := tables.NewService(dynamoProvider, notROService{})
|
||||
|
||||
_, _ = tableService, tableInfo
|
||||
|
||||
|
|
@ -103,3 +103,9 @@ func createTable(ctx context.Context, dynamoClient *dynamodb.Client, tableName s
|
|||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type notROService struct{}
|
||||
|
||||
func (n notROService) IsReadOnly() (bool, error) {
|
||||
return false, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue