Documentation ¶
Index ¶
- Constants
- Variables
- func Count(ctx context.Context, client *ent.Client, u *ent.User, q QueryParams) (count int, err error)
- func CreateQuery(ctx context.Context, client *ent.Client, u *ent.User, q QueryParams) (query *ent.MetaQuery, err error)
- func GenerateImageIndices(m *ent.Meta) error
- func GenerateThumbnail(m *ent.Meta, fileIndex int, details CropDetails) error
- func IsItemExist(ctx context.Context, client *ent.Client, name string) bool
- func NewItem(ctx context.Context, client *ent.Client, name string, ct meta.ContainerType) (i *ent.Meta, err error)
- func Open(m *ent.Meta) (reader io.ReadCloser, err error)
- func PopulateTags(ctx context.Context, client *ent.Client, m *ent.Meta) (out *ent.Meta, err error)
- func Read(ctx context.Context, client *ent.Client, name string) (m *ent.Meta, err error)
- func ReadAll(ctx context.Context, client *ent.Client) (items []*ent.Meta, err error)
- func ReadPage(ctx context.Context, client *ent.Client, u *ent.User, q QueryParams) (items []*ent.Meta, err error)
- func Write(ctx context.Context, client *ent.Client, m *ent.Meta) error
- type Container
- type CropDetails
- type QueryParams
- type SortField
- type SortOrder
Constants ¶
Variables ¶
View Source
var ErrMetaDataNotFound = errors.New(2_000_000, "metadata for '%s' not found.")
Functions ¶
func CreateQuery ¶
func GenerateImageIndices ¶
func GenerateThumbnail ¶
func GenerateThumbnail(m *ent.Meta, fileIndex int, details CropDetails) error
func PopulateTags ¶
Types ¶
type Container ¶
type Container struct { Name string Type meta.ContainerType }
type CropDetails ¶
type QueryParams ¶
Click to show internal directories.
Click to hide internal directories.