Documentation
¶
Index ¶
- func FromModel(obj *models.Object) io.Object
- func ToModel(inObj io.Object) (*models.Object, error)
- type Object
- func (f *Object) Bucket() string
- func (f *Object) CreatedAt() time.Time
- func (f *Object) ID() io.ObjectIDType
- func (f *Object) IsOriginal(name string) bool
- func (f *Object) Manifest() *models.Manifest
- func (f *Object) MarshalJSON() ([]byte, error)
- func (f *Object) Meta() *models.Meta
- func (f *Object) MustManifest() *models.Manifest
- func (f *Object) MustMeta() *models.Meta
- func (f *Object) Path() string
- func (f *Object) PrepareName(name string) string
- func (f *Object) Revision() int64
- func (f *Object) Status() io.Status
- func (f *Object) StatusMessage() string
- func (f *Object) StatusUpdate(status io.Status)
- func (f *Object) String() string
- func (f *Object) ToModel() (*models.Object, error)
- func (f *Object) UnmarshalJSON(data []byte) error
- func (f *Object) UpdatedAt() time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
Object is the main item for storing the file sets in the collection.
Object can be represented like a container where stored some subfile objects Object also contain some additional information in `meta` and `manifest` sections. Meta contains information about all related to the object subfiles like thumbs or postprocessed files
func NewObject ¶
func NewObject(id io.ObjectIDType, bucket, filepath string) *Object
NewObject liked to bucket and object codename
func (*Object) MarshalJSON ¶
MarshalJSON implements method of json.Marshaler
func (*Object) MustManifest ¶
MustManifest information returns from the object or creates new if not exists
func (*Object) PrepareName ¶
PrepareName of the subfile
func (*Object) StatusMessage ¶
StatusMessage returns common message of all items
func (*Object) UnmarshalJSON ¶
UnmarshalJSON implements method of json.Unmarshaler
Click to show internal directories.
Click to hide internal directories.