Fixing storage interface functions
Signed-off-by: Ethan Wellenreiter <ewellenreiter@gmail.com>
This commit is contained in:
parent
9e580c50cc
commit
6bc2b58cdb
@ -58,18 +58,18 @@ type Storage struct {
|
||||
Images interface {
|
||||
GetByID(context.Context, int64) (*Image, error)
|
||||
Create(context.Context, *Image) error
|
||||
Delete(context.Context, int64) (*Image, error)
|
||||
ConfirmImage(context.Context, int64) error // may need to change this. Consider finishing https://www.youtube.com/watch?v=pmEmQcd9_KA
|
||||
Delete(context.Context, int64) error
|
||||
ActivateImage(context.Context, int64) error // may need to change this. Consider finishing https://www.youtube.com/watch?v=pmEmQcd9_KA
|
||||
|
||||
// Can have it so that the client get's a presigned url
|
||||
// For creation, do a delayed check in 10 minutes to clean up the image from AWS or check
|
||||
}
|
||||
Groups interface {
|
||||
GetByID(context.Context, int64)
|
||||
GetUserGroups(context.Context, int64)
|
||||
GetUsersInGroup(context.Context, int64)
|
||||
Create(context.Context, *Group)
|
||||
Delete(context.Context, int64)
|
||||
GetByID(context.Context, int64) (*Group, error)
|
||||
GetUserGroups(context.Context, int64) ([]*Group, error)
|
||||
GetUsersInGroup(context.Context, int64) ([]*User, error)
|
||||
Create(context.Context, *Group) error
|
||||
Delete(context.Context, int64) error
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user