Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docker] Create volume request #278

Open
Tracked by #271
joshuachp opened this issue Sep 29, 2023 · 0 comments · May be fixed by #297
Open
Tracked by #271

[Docker] Create volume request #278

joshuachp opened this issue Sep 29, 2023 · 0 comments · May be fixed by #297
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@joshuachp
Copy link
Collaborator

joshuachp commented Sep 29, 2023

Create the structure to receive the CreateVolumeRequest and publish the AvailableVolumes property.

Interfaces

Create Volume Request

{
  "interface_name": "io.edgehog.devicemanager.apps.CreateVolumeRequest",
  "version_major": 0,
  "version_minor": 1,
  "type": "datastream",
  "ownership": "server",
  "aggregation": "object",
  "mappings": [
    {
      "endpoint": "/volume/id",
      "type": "string"
    },
    {
      "endpoint": "/volume/driver",
      "type": "string"
    },
    {
      "endpoint": "/volume/options",
      "type": "stringarray",
      "doc": "An array of key=value options to set for the drive"
    }
  ]
}

Available Volumes

{
  "interface_name": "io.edgehog.devicemanager.apps.AvailableVolumes",
  "version_major": 0,
  "version_minor": 1,
  "type": "properties",
  "ownership": "device",
  "mappings": [
    {
      "allow_unset": true,
      "endpoint": "/%{volume_id}/created",
      "type": "boolean"
    },
    {
      "allow_unset": true,
      "endpoint": "/%{volume_id}/driver",
      "type": "string"
    },
    {
      "allow_unset": true,
      "endpoint": "/%{volume_id}/options",
      "type": "stringarray",
      "doc": "An array of key=value options to set for the drive"
    }
  ]
}

@joshuachp joshuachp self-assigned this Sep 29, 2023
@joshuachp joshuachp changed the title [Docker] Create volume request [Docker] Create volume request Sep 29, 2023
@joshuachp joshuachp changed the title [Docker] Create volume request [docker] Create volume request Sep 29, 2023
@joshuachp joshuachp changed the title [docker] Create volume request [Docker] Create volume request Sep 29, 2023
@joshuachp joshuachp added this to the v0.8 milestone Sep 29, 2023
@joshuachp joshuachp added the enhancement New feature or request label Sep 29, 2023
@joshuachp joshuachp linked a pull request Nov 2, 2023 that will close this issue
@harlem88 harlem88 modified the milestones: v0.8, v0.9 Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants