Documentation ¶
Overview ¶
Package conn holds the connection to the Keyvault server and provides a single RPC call type.
Index ¶
Constants ¶
View Source
const Version = "0.0.1"
Version is the current version of the SDK.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn provides connectivity to a Keyvault instance.
func New ¶
func New(endpoint string, auth autorest.Authorizer) (*Conn, error)
New returns a new conn object.
func (*Conn) Call ¶
func (c *Conn) Call(ctx context.Context, ct CallType, path string, queryValues url.Values, body interface{}, resp interface{}) error
Call connects to the REST endpoint at path (the REST RPC path) passing the HTTP query values and JSON conversion of body in the HTTP body. It automatically handles compression and decompression with gzip. The response is JSON unmarshalled into resp. resp must be a pointer to a struct.
Click to show internal directories.
Click to hide internal directories.