Documentation ¶
Overview ¶
Package used for GO-KMS-CLI
Current version: experimental
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHmac256 ¶
GetHmac256 will generate a HMAC hash encoded to base64
func OutputMetadata ¶
func OutputMetadata(metadata []kms.KeyMetadata)
OutputMetadata prints a table of metadata to the console
Types ¶
type APIError ¶
type APIError struct { StatusCode int // HTTP status code e.g. 200 Type string Code string Message string RequestID string HostID string Specifics map[string]string }
An APIError is an error returned by an AWS API.
type JSONClient ¶
type JSONClient struct { Client *http.Client Endpoint string // authKey is the key used for authentication AuthKey string }
JSONClient is the underlying client for JSON APIs.
var Client JSONClient
func (*JSONClient) Do ¶
func (c *JSONClient) Do(method, uri string, req, resp interface{}) error
Do sends an HTTP request and returns an HTTP response, following policy (e.g. redirects, cookies, auth) as configured on the client.
Click to show internal directories.
Click to hide internal directories.