forked from Ivasoft/objectivefs-docker-volume
Implicit filesystem name from volume name. OBJECTSTORE env var.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -37,6 +37,13 @@
|
||||
"value"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OBJECTSTORE",
|
||||
"value": "",
|
||||
"settable": [
|
||||
"value"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ENDPOINT",
|
||||
"value": "",
|
||||
|
||||
1
main.go
1
main.go
@@ -57,6 +57,7 @@ func (d ofsDriver) Create(r *volume.CreateRequest) error {
|
||||
v.volume = &volume.Volume{Name: r.Name, Mountpoint: filepath.Join(volume.DefaultDockerRootDirectory, "objectivefs", r.Name), CreatedAt: time.Now().Format(time.RFC3339Nano)}
|
||||
v.use = make(map[string]bool)
|
||||
v.opts = "auto"
|
||||
v.fs = r.Name
|
||||
for key, val := range r.Options {
|
||||
switch key {
|
||||
case "fs":
|
||||
|
||||
Reference in New Issue
Block a user