Documentation ¶
Index ¶
- func New() backend.Backend
- type Backend
- type Config
- type RemoteClient
- func (c *RemoteClient) Delete() error
- func (c *RemoteClient) Get() (*remote.Payload, error)
- func (c *RemoteClient) ListObjectsNames(prefix string, delim string) ([]string, error)
- func (c *RemoteClient) Lock(info *statemgr.LockInfo) (string, error)
- func (c *RemoteClient) Put(data []byte) error
- func (c *RemoteClient) Unlock(id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RemoteClient ¶
type RemoteClient struct {
// contains filtered or unexported fields
}
RemoteClient implements the Client interface for an Openstack Swift server. Implements "state/remote".ClientLocker
func (*RemoteClient) Delete ¶
func (c *RemoteClient) Delete() error
func (*RemoteClient) ListObjectsNames ¶
func (c *RemoteClient) ListObjectsNames(prefix string, delim string) ([]string, error)
func (*RemoteClient) Put ¶
func (c *RemoteClient) Put(data []byte) error
swift is eventually constistent. Consistency is ensured by the Get func which will always try to retrieve the most recent object
func (*RemoteClient) Unlock ¶
func (c *RemoteClient) Unlock(id string) error
Click to show internal directories.
Click to hide internal directories.