Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type VoucherClient ¶
VoucherClient is a client for the Voucher API.
func NewClient ¶
func NewClient(hostname string, timeout time.Duration) (*VoucherClient, error)
NewClient creates a new VoucherClient set to connect to the passed hostname, and with the passed timeout.
func (*VoucherClient) Check ¶
Check executes a request to a Voucher server, to the appropriate check URI, and with the passed reference.Canonical. Returns a voucher.Response and an error.
func (*VoucherClient) SetBasicAuth ¶
func (c *VoucherClient) SetBasicAuth(username, password string)
SetBasicAuth adds the username and password to the VoucherClient struct
Click to show internal directories.
Click to hide internal directories.