func (c *Client) AddSecret(variableID string, secretValue string) error {
	req, err := c.router.AddSecretRequest(variableID, secretValue)
	if err != nil {
		return err
	}
	resp, err := c.SubmitRequest(req)
	if err != nil {
		return err
	}
	return response.EmptyResponse(resp)
}
AddSecret adds a secret value to a variable.

The authenticated user must have update privilege on the variable.
package conjurapi
import (
	"io"
	"net/http"
	"errors"
	"encoding/json"
	"encoding/base64"
	"github.com/cyberark/conjur-api-go/conjurapi/response"
)
func (c *Client) RetrieveBatchSecrets(variableIDs []string) (map[string][]byte, error) {
	jsonResponse, err := c.retrieveBatchSecrets(variableIDs, false)
	if err != nil {
		return nil, err
	}
	resolvedVariables := map[string][]byte{}
	for id, value := range jsonResponse {
		resolvedVariables[id] = []byte(value)
	}
	return resolvedVariables, nil
}
func (c *Client) RetrieveBatchSecretsSafe(variableIDs []string) (map[string][]byte, error) {
	jsonResponse, err := c.retrieveBatchSecrets(variableIDs, true)
	if err != nil {
		return nil, err
	}
	resolvedVariables := map[string][]byte{}
	var decodedValue []byte
	for id, value := range jsonResponse {
		decodedValue, err = base64.StdEncoding.DecodeString(value)
		if err != nil {
			return nil, err
		}
		resolvedVariables[id] = decodedValue
	}
	return resolvedVariables, nil
}
func (c *Client) RetrieveSecret(variableID string) ([]byte, error) {
	resp, err := c.retrieveSecret(variableID)
	if err != nil {
		return nil, err
	}
	return response.DataResponse(resp)
}
func (c *Client) RetrieveSecretReader(variableID string) (io.ReadCloser, error) {
	resp, err := c.retrieveSecret(variableID)
	if err != nil {
		return nil, err
	}
	return response.SecretDataResponse(resp)
}
func (c *Client) retrieveBatchSecrets(variableIDs []string, base64Flag bool) (map[string]string, error) {
	req, err := c.router.RetrieveBatchSecretsRequest(variableIDs, base64Flag)
	if err != nil {
		return nil, err
	}
	resp, err := c.SubmitRequest(req)
	if err != nil {
		return nil, err
	}
	data, err := response.DataResponse(resp)
	if err != nil {
		return nil, err
	}
	if base64Flag && resp.Header.Get("Content-Encoding") != "base64" {
		return nil, errors.New(
			"Conjur response is not Base64-encoded. " +
			"The Conjur version may not be compatible with this function - " +
			"try using RetrieveBatchSecrets instead." )
	}
	jsonResponse := map[string]string{}
	err = json.Unmarshal(data, &jsonResponse)
	if err != nil {
		return nil, err
	}
	return jsonResponse, nil
}
func (c *Client) retrieveSecret(variableID string) (*http.Response, error) {
	req, err := c.router.RetrieveSecretRequest(variableID)
	if err != nil {
		return nil, err
	}
	return c.SubmitRequest(req)
}