Documentation ¶
Overview ¶
Package storage manages storage of network artifacts
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalStoreClient ¶ added in v1.1.6
type LocalStoreClient struct{}
LocalStoreClient stores file on the local filesystem
func (*LocalStoreClient) WriteToBinFile ¶ added in v1.1.6
func (client *LocalStoreClient) WriteToBinFile(path, objectName string, object []byte) error
WriteToBinFile writes to binary file in given path
type Manager ¶ added in v1.1.6
type Manager struct { StorageConfig *config.StorageConfig LocalStore *LocalStoreClient IpfsStore *ipfsStore // contains filtered or unexported fields }
Manager composes of all the different storage types supported by the agent
func NewStorageManager ¶ added in v1.1.6
func NewStorageManager(conf *config.StorageConfig) (*Manager, error)
NewStorageManager creates and sets up a new storage manager with given config
func (*Manager) Close ¶ added in v1.1.6
func (manager *Manager) Close()
Close the stores which compose the manager
Click to show internal directories.
Click to hide internal directories.