Documentation
¶
Overview ¶
Package sdk provides a Go SDK with which to interact with the Turnkey API service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPClient ¶
func NewHTTPClient(formats strfmt.Registry) *client.TurnkeyAPI
NewHTTPClient returns a new base HTTP API client. Most users will call New() instead.
Types ¶
type Authenticator ¶
type Authenticator struct { // Key optionally overrides the globally-parsed APIKeypair with a custom key. Key *apikey.Key }
Authenticator provides a runtime.ClientAuthInfoWriter for use with the swagger API client.
func (*Authenticator) AuthenticateRequest ¶
func (auth *Authenticator) AuthenticateRequest(req runtime.ClientRequest, reg strfmt.Registry) (err error)
AuthenticateRequest implements runtime.ClientAuthInfoWriter. It adds the X-Stamp header to the request based by generating the Stamp with the request body and API key.
type Client ¶
type Client struct { // Client is the base HTTP API Client. Client *client.TurnkeyAPI // Authenticator provides a client option authentication provider which should be attached to every API request as a clientOption. Authenticator *Authenticator // APIKey is the API key to be used for API request signing. APIKey *apikey.Key }
Client provides a handle by which to interact with the Turnkey API.
func (*Client) DefaultOrganization ¶
DefaultOrganization returns the first organization found in the APIKey's set of organizations.
func (*Client) V0 ¶
func (c *Client) V0() *client.TurnkeyAPI
V0 returns the raw initial Turnkey API client. WARNING: this is a temporary API which requires a bit more work to use than the one which will be eventually offered.
Directories
¶
Path | Synopsis |
---|---|
examples
|
|
signing/sign_raw_payload
Package main demonstrates an API client which signs a raw payload with a private key ID or wallet account.
|
Package main demonstrates an API client which signs a raw payload with a private key ID or wallet account. |
signing/sign_transaction
Package main demonstrates an API client which signs a transaction with a private key ID or wallet account.
|
Package main demonstrates an API client which signs a transaction with a private key ID or wallet account. |
wallets/create_wallet
Package main demonstrates an API client which creates a new wallet with a wallet account.
|
Package main demonstrates an API client which creates a new wallet with a wallet account. |
wallets/create_wallet_accounts
Package main demonstrates an API client which creates new wallet accounts.
|
Package main demonstrates an API client which creates new wallet accounts. |
whoami
Package main demonstrates an API client which returns the UserID of its API key.
|
Package main demonstrates an API client which returns the UserID of its API key. |
pkg
|
|
apikey
Package apikey manages Turnkey API keys for organizations
|
Package apikey manages Turnkey API keys for organizations |
common
Package common contains key and key metadata interfaces
|
Package common contains key and key metadata interfaces |
encryptionkey
Package encryptionkey manages encryption keys for users
|
Package encryptionkey manages encryption keys for users |
store
Package store defines a key storage interface.
|
Package store defines a key storage interface. |
store/local
Package local provides a keystore based on a local directory.
|
Package local provides a keystore based on a local directory. |
store/ram
Package ram defines a RAM-based apikey store.
|
Package ram defines a RAM-based apikey store. |
util
Package util provides convenience utilities for interacting with the API.
|
Package util provides convenience utilities for interacting with the API. |