func Put(httpPort int, key, value string) error {
	client := retryablehttp.NewClient()
	client.Logger = nil
	url := makeMetadataPutEndpoint(httpPort, key)
	req, err := retryablehttp.NewRequest("PUT", url, strings.NewReader(value))
	if err != nil {
		return err
	}
	r, err := client.Do(req)
	if err != nil {
		return err
	}
	defer r.Body.Close()
	return nil
}
Put sets one metadata attribute on a given app's sidecar.
package metadata
import (
	"encoding/json"
	"fmt"
	"io/ioutil"
	"net/http"
	"strings"
	"github.com/dapr/cli/pkg/api"
	retryablehttp "github.com/hashicorp/go-retryablehttp"
)
func Get(httpPort int) (*api.Metadata, error) {
	url := makeMetadataGetEndpoint(httpPort)
	r, err := http.Get(url)
	if err != nil {
		return nil, err
	}
	defer r.Body.Close()
	return handleMetadataResponse(r)
}