Object Container
S3 Object Container
Represents a segment of an S3 store that may contain objects. This could either be a bucket or a 'directory'.
All paths for all methods defined in this type are treated as relative to the root of the container. In the case of a bucket, all paths are absolute paths to the bucket root. In the case of a 'directory', all paths are relative to the directory prefix. The exception to this is paths starting with a leading '/' character which will be treated as absolute paths in all cases.
Managing Object Tags
This interface does not define any methods for managing object tags. To work with object tags use one of the object access methods contained in this type, such as withObject or get which will give access to an S3Object instance without opening a stream over that object's contents.
Example:
container.withObject("my/object") {
tags.put("something", "something else")
}
container["my/object"].tags.put("something", "something else")TODO: Handle delete markers TODO: Version IDs TODO: Governance Mode
Author
Elizabeth Paige Harper https://github.com/Foxcapades
Since
v0.3.0
Functions
Tests whether this object container contains an object at the given path.
Tests whether this object container contains an object at the configured target path.
Returns a count of all the objects in this object container, filtered by the given predicate function.
Returns a count of all the objects in this object container, optionally filtered by a given path prefix.
Returns a count of first level subdirectories directly under the given parent directory name.
Deletes the object at the target path from this container.
Deletes all the given target objects from this container.
Fetches the object at the target path and downloads it into the specified local file.
Fetches the object at the configured path and downloads it into the target local file.
Fetches a list of all the objects in this container.
Fetches the object at the target path and returns a handle on it which can be used to stream out the target object's contents.
Fetches the configured target object and returns a handle on it which can be used to stream out the target object's contents.
Creates or overwrites an object at the specified path with its contents uploaded from the given stream.
Creates or overwrites an object at the configured path with its contents uploaded from the configured stream.
Recursively removes all contents in the target directory.
Uploads the specified file to this container at the given path, overwriting any object presently at that path.
Creates or overwrites an object at the specified path with its contents uploaded from the given stream.
Fetches metadata for the object at the target path.
Uploads the specified file to this container at the given path, overwriting any object presently at that path.
Uploads the configured file to this container at the configured path, overwriting any object presently at that path.