Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EOFReader ¶
type EOFReader struct {
// contains filtered or unexported fields
}
EOFReader holds reader and status of EOF.
func NewEOFReader ¶
NewEOFReader keeps track of the state, has the internal reader reached EOF.
type Path ¶
type Path struct {
// contains filtered or unexported fields
}
Path is a representation of an object path within a bucket.
func (Path) UnencryptedPath ¶
func (p Path) UnencryptedPath() paths.Unencrypted
UnencryptedPath returns the unencrypted path part of the path.
type PeekThresholdReader ¶ added in v1.0.6
type PeekThresholdReader struct {
// contains filtered or unexported fields
}
PeekThresholdReader allows a check to see if the size of a given reader exceeds the maximum inline segment size or not.
func NewPeekThresholdReader ¶ added in v1.0.6
func NewPeekThresholdReader(r io.Reader) (pt *PeekThresholdReader)
NewPeekThresholdReader creates a new instance of PeekThresholdReader.
func (*PeekThresholdReader) IsLargerThan ¶ added in v1.0.6
func (pt *PeekThresholdReader) IsLargerThan(thresholdSize int) (bool, error)
IsLargerThan returns a bool to determine whether a reader's size is larger than the given threshold or not.
type SizedReader ¶ added in v1.2.0
type SizedReader struct {
// contains filtered or unexported fields
}
SizedReader allows to check the total number of bytes read so far.
func SizeReader ¶
func SizeReader(r io.Reader) *SizedReader
SizeReader create a new instance of SizedReader.
func (*SizedReader) Read ¶ added in v1.2.0
func (r *SizedReader) Read(p []byte) (n int, err error)
Read implements io.Reader.Read.
func (*SizedReader) Size ¶ added in v1.2.0
func (r *SizedReader) Size() int64
Size returns the total number of bytes read so far.