Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type B2 ¶
type B2 struct{}
B2 implements MinIO Gateway
func (*B2) NewGatewayLayer ¶
func (g *B2) NewGatewayLayer(creds auth.Credentials) (minio.ObjectLayer, error)
NewGatewayLayer returns b2 gateway layer, implements ObjectLayer interface to talk to B2 remote backend.
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader - is a Reader wraps the hash.Reader which will emit out the sha1 hex digits at io.EOF. It also means that your overall content size is now original size + 40 bytes. Additionally this reader also verifies Hash encapsulated inside hash.Reader at io.EOF if the verification failed we return an error and do not send the content to server.
Click to show internal directories.
Click to hide internal directories.