Documentation
¶
Index ¶
- func Hash(s string) string
- func ShardT(input string, template string, values ...any) string
- type Interceptor
- type LinoS3
- type LinoS3Bucket
- func (s *LinoS3Bucket) Object(key string) *LinoS3Object
- func (s *LinoS3Bucket) Piece(key string, start int64, end int64) *LinoS3Piece
- func (s *LinoS3Bucket) PieceByKey(pieceKey string) (*LinoS3Piece, error)
- func (s *LinoS3Bucket) SubPath(path string) *LinoS3Path
- func (s *LinoS3Bucket) UseInterceptors(interceptors ...*Interceptor) *LinoS3Bucket
- type LinoS3Object
- func (s *LinoS3Object) Delete() (*s3.DeleteObjectOutput, error)
- func (s *LinoS3Object) Get() (*s3.GetObjectOutput, error)
- func (s *LinoS3Object) HasInterceptors() bool
- func (s *LinoS3Object) Head() (*s3.HeadObjectOutput, error)
- func (s *LinoS3Object) Key() string
- func (s *LinoS3Object) Piece(start int64, end int64) *LinoS3Piece
- func (s *LinoS3Object) PresignGet(optFns ...func(*s3.PresignOptions)) (*v4.PresignedHTTPRequest, error)
- func (s *LinoS3Object) PresignPut(input s3.PutObjectInput, optFns ...func(*s3.PresignOptions)) (*v4.PresignedHTTPRequest, error)
- func (s *LinoS3Object) Put(input s3.PutObjectInput) (*s3.PutObjectOutput, error)
- func (s *LinoS3Object) ReadBuffer() ([]byte, error)
- func (s *LinoS3Object) ReadCBOR(v interface{}) error
- func (s *LinoS3Object) ReadCSV(v interface{}) error
- func (s *LinoS3Object) ReadJSON(v interface{}) error
- func (s *LinoS3Object) ReadString() (string, error)
- func (s *LinoS3Object) ReadTo(writer io.WriteCloser) error
- func (s *LinoS3Object) Upload(input s3.PutObjectInput) (*manager.UploadOutput, error)
- func (s *LinoS3Object) UseInterceptors(interceptors ...*Interceptor) *LinoS3Object
- func (s *LinoS3Object) WriteBuffer(data []byte, contentType ...string) error
- func (s *LinoS3Object) WriteCBOR(v interface{}) error
- func (s *LinoS3Object) WriteCSV(v interface{}) error
- func (s *LinoS3Object) WriteFrom(reader io.ReadCloser, contentType ...string) error
- func (s *LinoS3Object) WriteJSON(v interface{}) error
- func (s *LinoS3Object) WriteString(_string string, contentType ...string) error
- type LinoS3Path
- type LinoS3Piece
- func (s *LinoS3Piece) Get() (*s3.GetObjectOutput, error)
- func (s *LinoS3Piece) Key() string
- func (s *LinoS3Piece) ReadBuffer() ([]byte, error)
- func (s *LinoS3Piece) ReadCBOR(v interface{}) error
- func (s *LinoS3Piece) ReadJSON(v interface{}) error
- func (s *LinoS3Piece) ReadString() (string, error)
- func (s *LinoS3Piece) ReadTo(writer io.WriteCloser) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Interceptor ¶
type Interceptor struct {
PreHead transformer[*s3.HeadObjectInput]
PostHead transformer[*s3.HeadObjectOutput]
PreGet transformer[*s3.GetObjectInput]
PostGet transformer[*s3.GetObjectOutput]
PrePut transformer[*s3.PutObjectInput]
PostPut transformer[*s3.PutObjectOutput]
PreDelete transformer[*s3.DeleteObjectInput]
PostDelete transformer[*s3.DeleteObjectOutput]
PreUpload transformer[*s3.PutObjectInput]
PostUpload transformer[*manager.UploadOutput]
}
type LinoS3 ¶
type LinoS3 struct {
// contains filtered or unexported fields
}
func (*LinoS3) Bucket ¶
func (s *LinoS3) Bucket(bucketname string) *LinoS3Bucket
func (*LinoS3) UseInterceptors ¶
func (s *LinoS3) UseInterceptors(interceptors ...*Interceptor) *LinoS3
func (*LinoS3) UsePresignClient ¶ added in v0.0.9
func (s *LinoS3) UsePresignClient(presignClient *s3.PresignClient) *LinoS3
type LinoS3Bucket ¶
type LinoS3Bucket struct {
// contains filtered or unexported fields
}
func LoadS3Bucket ¶ added in v0.0.4
func LoadS3Bucket(dsn string) (*LinoS3Bucket, error)
func MustLoadS3Bucket ¶ added in v0.0.4
func MustLoadS3Bucket(dsn string, logger ...utils.Logger) *LinoS3Bucket
func (*LinoS3Bucket) Object ¶
func (s *LinoS3Bucket) Object(key string) *LinoS3Object
func (*LinoS3Bucket) Piece ¶ added in v0.0.2
func (s *LinoS3Bucket) Piece(key string, start int64, end int64) *LinoS3Piece
func (*LinoS3Bucket) PieceByKey ¶ added in v0.0.2
func (s *LinoS3Bucket) PieceByKey(pieceKey string) (*LinoS3Piece, error)
func (*LinoS3Bucket) SubPath ¶
func (s *LinoS3Bucket) SubPath(path string) *LinoS3Path
func (*LinoS3Bucket) UseInterceptors ¶
func (s *LinoS3Bucket) UseInterceptors(interceptors ...*Interceptor) *LinoS3Bucket
type LinoS3Object ¶
type LinoS3Object struct {
// contains filtered or unexported fields
}
func LoadS3Object ¶ added in v0.0.4
func LoadS3Object(dsn string) (*LinoS3Object, error)
func MustLoadS3Object ¶ added in v0.0.4
func MustLoadS3Object(dsn string, logger ...utils.Logger) *LinoS3Object
func (*LinoS3Object) Delete ¶
func (s *LinoS3Object) Delete() (*s3.DeleteObjectOutput, error)
func (*LinoS3Object) Get ¶
func (s *LinoS3Object) Get() (*s3.GetObjectOutput, error)
func (*LinoS3Object) HasInterceptors ¶ added in v0.0.2
func (s *LinoS3Object) HasInterceptors() bool
func (*LinoS3Object) Head ¶
func (s *LinoS3Object) Head() (*s3.HeadObjectOutput, error)
func (*LinoS3Object) Key ¶ added in v0.0.2
func (s *LinoS3Object) Key() string
func (*LinoS3Object) Piece ¶ added in v0.0.2
func (s *LinoS3Object) Piece(start int64, end int64) *LinoS3Piece
func (*LinoS3Object) PresignGet ¶ added in v0.0.5
func (s *LinoS3Object) PresignGet(optFns ...func(*s3.PresignOptions)) (*v4.PresignedHTTPRequest, error)
func (*LinoS3Object) PresignPut ¶ added in v0.0.5
func (s *LinoS3Object) PresignPut(input s3.PutObjectInput, optFns ...func(*s3.PresignOptions)) (*v4.PresignedHTTPRequest, error)
func (*LinoS3Object) Put ¶
func (s *LinoS3Object) Put(input s3.PutObjectInput) (*s3.PutObjectOutput, error)
func (*LinoS3Object) ReadBuffer ¶
func (s *LinoS3Object) ReadBuffer() ([]byte, error)
func (*LinoS3Object) ReadCBOR ¶
func (s *LinoS3Object) ReadCBOR(v interface{}) error
func (*LinoS3Object) ReadCSV ¶
func (s *LinoS3Object) ReadCSV(v interface{}) error
func (*LinoS3Object) ReadJSON ¶
func (s *LinoS3Object) ReadJSON(v interface{}) error
func (*LinoS3Object) ReadString ¶
func (s *LinoS3Object) ReadString() (string, error)
func (*LinoS3Object) ReadTo ¶
func (s *LinoS3Object) ReadTo(writer io.WriteCloser) error
func (*LinoS3Object) Upload ¶
func (s *LinoS3Object) Upload(input s3.PutObjectInput) (*manager.UploadOutput, error)
func (*LinoS3Object) UseInterceptors ¶
func (s *LinoS3Object) UseInterceptors(interceptors ...*Interceptor) *LinoS3Object
func (*LinoS3Object) WriteBuffer ¶
func (s *LinoS3Object) WriteBuffer(data []byte, contentType ...string) error
func (*LinoS3Object) WriteCBOR ¶
func (s *LinoS3Object) WriteCBOR(v interface{}) error
func (*LinoS3Object) WriteCSV ¶
func (s *LinoS3Object) WriteCSV(v interface{}) error
func (*LinoS3Object) WriteFrom ¶
func (s *LinoS3Object) WriteFrom(reader io.ReadCloser, contentType ...string) error
func (*LinoS3Object) WriteJSON ¶
func (s *LinoS3Object) WriteJSON(v interface{}) error
func (*LinoS3Object) WriteString ¶
func (s *LinoS3Object) WriteString(_string string, contentType ...string) error
type LinoS3Path ¶
type LinoS3Path struct {
// contains filtered or unexported fields
}
func LoadS3Path ¶ added in v0.0.4
func LoadS3Path(dsn string) (*LinoS3Path, error)
func MustLoadS3Path ¶ added in v0.0.4
func MustLoadS3Path(dsn string, logger ...utils.Logger) *LinoS3Path
func (*LinoS3Path) Object ¶
func (s *LinoS3Path) Object(key string) *LinoS3Object
func (*LinoS3Path) SubPath ¶
func (s *LinoS3Path) SubPath(path string) *LinoS3Path
func (*LinoS3Path) UseInterceptors ¶
func (s *LinoS3Path) UseInterceptors(interceptors ...*Interceptor) *LinoS3Path
type LinoS3Piece ¶ added in v0.0.2
type LinoS3Piece struct {
// contains filtered or unexported fields
}
func (*LinoS3Piece) Get ¶ added in v0.0.2
func (s *LinoS3Piece) Get() (*s3.GetObjectOutput, error)
func (*LinoS3Piece) Key ¶ added in v0.0.2
func (s *LinoS3Piece) Key() string
func (*LinoS3Piece) ReadBuffer ¶ added in v0.0.2
func (s *LinoS3Piece) ReadBuffer() ([]byte, error)
func (*LinoS3Piece) ReadCBOR ¶ added in v0.0.2
func (s *LinoS3Piece) ReadCBOR(v interface{}) error
func (*LinoS3Piece) ReadJSON ¶ added in v0.0.2
func (s *LinoS3Piece) ReadJSON(v interface{}) error
func (*LinoS3Piece) ReadString ¶ added in v0.0.2
func (s *LinoS3Piece) ReadString() (string, error)
func (*LinoS3Piece) ReadTo ¶ added in v0.0.2
func (s *LinoS3Piece) ReadTo(writer io.WriteCloser) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.