Documentation ¶
Index ¶
Constants ¶
View Source
const (
PresignedURLExpiry = 24 * time.Hour
)
Variables ¶
This section is empty.
Functions ¶
func WithMetadata ¶
Types ¶
type MinioStorage ¶
type MinioStorage struct {
// contains filtered or unexported fields
}
func (*MinioStorage) CreateObject ¶
func (*MinioStorage) ListObjects ¶
type MockStorage ¶
MockStorage is an autogenerated mock type for the Storage type
func NewMockStorage ¶
func NewMockStorage(t interface { mock.TestingT Cleanup(func()) }) *MockStorage
NewMockStorage creates a new instance of MockStorage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockStorage) CreateObject ¶
func (_m *MockStorage) CreateObject(ctx context.Context, bucket Bucket, name string, opts ...func(*minio.PutObjectOptions) error) (*Object, error)
CreateObject provides a mock function with given fields: ctx, bucket, name, opts
func (*MockStorage) GetObject ¶
GetObject provides a mock function with given fields: ctx, bucket, name
func (*MockStorage) ListObjects ¶
ListObjects provides a mock function with given fields: ctx, bucket
type Object ¶
type Object struct { Bucket Bucket Name string Size int64 LastModified time.Time Metadata map[string]string // contains filtered or unexported fields }
func (*Object) PresignedGetURL ¶
func (*Object) PresignedPutURL ¶
type Storage ¶
Click to show internal directories.
Click to hide internal directories.