Documentation ¶
Index ¶
- func WithHTTPClient(cl *http.Client) func(c *Client) error
- func WithHost(host string) func(c *Client) error
- func WithTimeout(d time.Duration) func(c *Client) error
- type Client
- func (c *Client) Blockchain() (data blockchain.Block, err error)
- func (c *Client) Delete(b, k string) (err error)
- func (c *Client) DeleteBucket(b string) (err error)
- func (c *Client) Files() (data []types.File, err error)
- func (c *Client) GetBucket(b string) (resp map[string]blockchain.Data, err error)
- func (c *Client) GetBucketKey(b, k string) (resp blockchain.Data, err error)
- func (c *Client) GetBucketKeys(b string) (resp []string, err error)
- func (c *Client) GetBuckets() (resp []string, err error)
- func (c *Client) Ledger() (data map[string]map[string]blockchain.Data, err error)
- func (c *Client) Machines() (resp []types.Machine, err error)
- func (c *Client) Put(b, k string, v interface{}) (err error)
- func (c *Client) Services() (resp []types.Service, err error)
- func (c *Client) Summary() (data types.Summary, err error)
- func (c *Client) Users() (data []types.User, err error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Blockchain ¶
func (c *Client) Blockchain() (data blockchain.Block, err error)
func (*Client) DeleteBucket ¶
func (*Client) GetBucketKey ¶
func (c *Client) GetBucketKey(b, k string) (resp blockchain.Data, err error)
func (*Client) GetBuckets ¶
Click to show internal directories.
Click to hide internal directories.