client

package
v0.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2022 License: GPL-3.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithHTTPClient

func WithHTTPClient(cl *http.Client) func(c *Client) error

func WithHost

func WithHost(host string) func(c *Client) error

func WithTimeout

func WithTimeout(d time.Duration) func(c *Client) error

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(o ...Option) *Client

func (*Client) Blockchain

func (c *Client) Blockchain() (data blockchain.Block, err error)

func (*Client) Delete

func (c *Client) Delete(b, k string) (err error)

func (*Client) DeleteBucket

func (c *Client) DeleteBucket(b string) (err error)

func (*Client) Files

func (c *Client) Files() (data []types.File, err error)

func (*Client) GetBucket

func (c *Client) GetBucket(b string) (resp map[string]blockchain.Data, err error)

func (*Client) GetBucketKey

func (c *Client) GetBucketKey(b, k string) (resp blockchain.Data, err error)

func (*Client) GetBucketKeys

func (c *Client) GetBucketKeys(b string) (resp []string, err error)

func (*Client) GetBuckets

func (c *Client) GetBuckets() (resp []string, err error)

func (*Client) Ledger

func (c *Client) Ledger() (data map[string]map[string]blockchain.Data, err error)

func (*Client) Machines

func (c *Client) Machines() (resp []types.Machine, err error)

func (*Client) Put

func (c *Client) Put(b, k string, v interface{}) (err error)

func (*Client) Services

func (c *Client) Services() (resp []types.Service, err error)

Get methods (Services, Users, Files, Ledger, Blockchain, Machines)

func (*Client) Summary added in v0.9.4

func (c *Client) Summary() (data types.Summary, err error)

func (*Client) Users

func (c *Client) Users() (data []types.User, err error)

type Option

type Option func(c *Client) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL