client

package
v0.0.0-...-84b5366 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a TerraDB client.

func NewClient

func NewClient(url string) *Client

NewClient returns a new TerraDB client from its URL.

func (*Client) GetResource

func (c *Client) GetResource(state, module, name string) (st storage.Resource, err error)

GetResource returns a TerraDB resource from its state, module and name.

func (*Client) GetState

func (c *Client) GetState(name string, serial int) (st storage.State, err error)

GetState returns a TerraDB state from its name and serial. Use 0 as serial to return the latest version of the state.

func (*Client) ListStateSerials

func (c *Client) ListStateSerials(name string) (coll storage.StateCollection, err error)

ListStateSerials lists all state serials and last_modified times for a given name.

func (*Client) ListStates

func (c *Client) ListStates() (states storage.StateCollection, err error)

ListStates lists all state names in TerraDB.

Jump to

Keyboard shortcuts

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