aerospike

package
v4.0.0-rc1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigStorage

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

func (*ConfigStorage) DeleteRemote

func (s *ConfigStorage) DeleteRemote(name string) error

func (*ConfigStorage) Remote

func (s *ConfigStorage) Remote(name string) (*config.RemoteConfig, error)

func (*ConfigStorage) Remotes

func (s *ConfigStorage) Remotes() ([]*config.RemoteConfig, error)

func (*ConfigStorage) SetRemote

func (s *ConfigStorage) SetRemote(r *config.RemoteConfig) error

type ObjectIter

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

func (*ObjectIter) Close

func (i *ObjectIter) Close()

func (*ObjectIter) ForEach

func (i *ObjectIter) ForEach(cb func(obj core.Object) error) error

func (*ObjectIter) Next

func (i *ObjectIter) Next() (core.Object, error)

type ObjectStorage

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

func (*ObjectStorage) Begin

func (s *ObjectStorage) Begin() core.TxObjectStorage

func (*ObjectStorage) Get

func (*ObjectStorage) Iter

func (*ObjectStorage) NewObject

func (s *ObjectStorage) NewObject() core.Object

func (*ObjectStorage) Set

func (s *ObjectStorage) Set(obj core.Object) (core.Hash, error)

func (*ObjectStorage) Writer

func (s *ObjectStorage) Writer() (io.WriteCloser, error)

Writer method not supported, this method is optional to implemented.

type ReferenceStorage

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

func (*ReferenceStorage) Get

Get returns a stored reference with the given name

func (*ReferenceStorage) Iter

Iter returns a core.ReferenceIter

func (*ReferenceStorage) Set

func (s *ReferenceStorage) Set(ref *core.Reference) error

Set stores a reference.

type Storage

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

func NewStorage

func NewStorage(client *driver.Client, ns, url string) (*Storage, error)

func (*Storage) ConfigStorage

func (s *Storage) ConfigStorage() config.ConfigStorage

func (*Storage) ObjectStorage

func (s *Storage) ObjectStorage() core.ObjectStorage

func (*Storage) ReferenceStorage

func (s *Storage) ReferenceStorage() core.ReferenceStorage

type TxObjectStorage

type TxObjectStorage struct {
	Storage *ObjectStorage
}

func (*TxObjectStorage) Commit

func (tx *TxObjectStorage) Commit() error

func (*TxObjectStorage) Get

func (*TxObjectStorage) Rollback

func (tx *TxObjectStorage) Rollback() error

func (*TxObjectStorage) Set

func (tx *TxObjectStorage) Set(obj core.Object) (core.Hash, error)

Jump to

Keyboard shortcuts

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