Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

how query volume through metadata #634

@simpleshuai

Description

@simpleshuai

code:

	vmeta := map[string]string{ <br>
		"pod_id": "68d32002-8d53-11e7-8780-48df370580b8",
	}
	listOpts := volumes.ListOpts{AllTenants: true, Metadata: vmeta}
	query, err := listOpts.ToVolumeListQuery()
	if err != nil {
		panic(err)
	}
	fmt.Println(query)

go run got:

?all_tenants=true

why missing metadata? how to query volume with metadata

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions