Documentation
¶
Index ¶
Constants ¶
View Source
const ImageResultPerPage = 24
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExternalImageIdentifier ¶
type Image ¶
type Image struct {
Id string
CreatedById string
CreatedAt time.Time
Name string
Identifier string
RootId string
ParentId string
UploaderIP string
MIMEType string
NominalWidth int32
NominalHeight int32
NominalByteSize int32
}
func (*Image) GetURL ¶
func (i *Image) GetURL(imageDomain string, isSecure bool, storedImages []*ExternalImageIdentifier, format ImageURLFormat) string
type ImageOrderField ¶
type ImageOrderField struct {
pagination.BaseOrderField
}
func NewImageOrderField ¶
func NewImageOrderField(name string, asc bool) *ImageOrderField
func (*ImageOrderField) GetValue ¶
func (f *ImageOrderField) GetValue(object interface{}) string
func (*ImageOrderField) Reverse ¶
func (f *ImageOrderField) Reverse() pagination.OrderField
type ImageURLFormat ¶
type ImageURLFormat string
const ( ImageURLFormat_CANONICAL ImageURLFormat = "canonical" ImageURLFormat_DIRECT ImageURLFormat = "direct" ImageURLFormat_BACKEND_DIRECT ImageURLFormat = "backend_direct" )
func (ImageURLFormat) IsValid ¶
func (f ImageURLFormat) IsValid() bool
type ListImageResult ¶
type Organization ¶
type OrganizationUser ¶
type OrganizationUser struct {
Id string
Organization *Organization
User *User
Roles []*Role
}
func (*OrganizationUser) CanManage ¶
func (ou *OrganizationUser) CanManage(other *OrganizationUser) bool
func (*OrganizationUser) HasAdminAccess ¶
func (ou *OrganizationUser) HasAdminAccess() bool
func (*OrganizationUser) IsSiteOwner ¶
func (ou *OrganizationUser) IsSiteOwner() bool
type StorageDefinition ¶
type StorageTypeName ¶
type StorageTypeName string
const ( S3StorageType StorageTypeName = "s3" FSStorageType StorageTypeName = "fs" WebDavStorageType StorageTypeName = "webdav" )
func (StorageTypeName) IsValid ¶
func (s StorageTypeName) IsValid() bool
type StoredImage ¶
type UserWithOrganizationUsers ¶
type UserWithOrganizationUsers struct {
User *User
OrganizationUsers []*OrganizationUser
}
Click to show internal directories.
Click to hide internal directories.