Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DocStoreFactory ¶
func DocStoreFactory(collectionURL string) (*docstore.Collection, error)
Types ¶
type Asset ¶
type Asset struct { // The unique id of the asset AssetID string `json:"asset_id"` // The kind of media Kind string `json:"kind"` Version Version `json:"version"` File *File `json:"file,omitempty"` // additional assets/files associated with the asset Formats []Asset `json:"formats,omitempty"` // A list of metadata tags associated with the asset Tags []string `json:"tags,omitempty"` // Any user supplied metadata for the asset Metadata map[string]interface{} `json:"metadata,omitempty"` }
Asset - An asset is a single managed digital asset
type Config ¶
type Config struct { Machinery *config.Config WorkingDir string `envconfig:"WORKING_DIR" default:"/dir"` OpenDAMHost string `envconfig:"OPENDAM_HOST"` BlobConnection string `envconfig:"BLOB_CONNECTION"` }
func LoadConfig ¶
type File ¶
type File struct { // the name of the file Name string `json:"name"` // A URL address to the file content Source string `json:"source"` // the http Content-Type used with the file ContentType string `json:"content_type"` // The size of the file in bytes Size float32 `json:"size"` // The width of the file Width float32 `json:"width,omitempty"` // The height of the file Height float32 `json:"height,omitempty"` // The duration of the file in seconds Duration float32 `json:"duration,omitempty"` }
File - The file associated with an asset or format
Click to show internal directories.
Click to hide internal directories.