Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct { InstanceID string ResourceOwner string Name string Hash string Size int64 LastModified time.Time Location string ContentType string }
func (*Asset) VersionedName ¶
type CreateStorage ¶
type ObjectType ¶
type ObjectType int32
const ( ObjectTypeUserAvatar ObjectType = iota ObjectTypeStyling )
func (ObjectType) String ¶
func (o ObjectType) String() string
type Storage ¶
type Storage interface { PutObject(ctx context.Context, instanceID, location, resourceOwner, name, contentType string, objectType ObjectType, object io.Reader, objectSize int64) (*Asset, error) GetObject(ctx context.Context, instanceID, resourceOwner, name string) ([]byte, func() (*Asset, error), error) GetObjectInfo(ctx context.Context, instanceID, resourceOwner, name string) (*Asset, error) RemoveObject(ctx context.Context, instanceID, resourceOwner, name string) error RemoveObjects(ctx context.Context, instanceID, resourceOwner string, objectType ObjectType) error }
Click to show internal directories.
Click to hide internal directories.