Documentation ¶
Index ¶
- type Environment
- func (e *Environment) Close()
- func (e *Environment) DeleteObject(server int, timestamp string, policy int) bool
- func (e *Environment) FileLocations(account, container, obj string, policy int) (paths []string)
- func (e *Environment) ObjExists(server int, timestamp string, policy int) bool
- func (e *Environment) PutObject(server int, timestamp string, data string, policy int) bool
- type TestReplicatorWebServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment struct {
// contains filtered or unexported fields
}
Environment encapsulates a temporary SAIO-style environment for the object server, replicator, and auditor and provides a few utility functions for manipulating it.
func NewEnvironment ¶
func NewEnvironment(settings ...string) *Environment
NewEnvironment creates a new environment. Arguments should be a series of key, value pairs that are added to the object server configuration file.
func (*Environment) Close ¶
func (e *Environment) Close()
Close frees any resources associated with the Environment.
func (*Environment) DeleteObject ¶
func (e *Environment) DeleteObject(server int, timestamp string, policy int) bool
DeleteObject deletes the object.
func (*Environment) FileLocations ¶
func (e *Environment) FileLocations(account, container, obj string, policy int) (paths []string)
FileLocations returns a list of file paths for the object's hash directory on all three underlying object servers.
type TestReplicatorWebServer ¶
func (*TestReplicatorWebServer) Close ¶
func (t *TestReplicatorWebServer) Close()
Click to show internal directories.
Click to hide internal directories.