Documentation ¶
Index ¶
Constants ¶
View Source
const ( ContentTypeFile ContentType = "file" ContentTypeDir = "dir" ContentTypeRoot = "root" ContentTypeCommit = "commit" )
View Source
const ( AttributeChangeTypeSet AttributeChangeType = "set" AttributeChangeTypeAdd = "add" AttributeChangeTypeDelete = "del" )
View Source
const MaxFilePartSize = 1024 * 1024 * 16
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttributeChange ¶
type AttributeChange struct { AttributeName string `json:"attributeName,omitempty"` ChangeType AttributeChangeType `json:"type,omitempty"` Values []string `json:"values,omitempty"` }
type AttributeChangeType ¶
type AttributeChangeType string
type ContentType ¶
type ContentType string
type Schema ¶
type Schema struct { Version int `json:"asamVersion"` Type ContentType `json:"contentType"` // for a root RootName string `json:"rootName,omitempty"` // for a commit CommitTime string `json:"commitTime,omitempty"` RootRef BlobRef `json:"root,omitempty"` ContentRef BlobRef `json:"contentRef,omitempty"` ContentAttributeChanges []*AttributeChange `json:"attributeChanges,omitempty"` FileName string `json:"fileName,omitempty"` UnixPermission string `json:"unixPermission,omitempty"` UnixMtime string `json:"unixMtime,omitempty"` FileParts []*BytesPart `json:"fileParts,omitempty"` DirEntries []BlobRef `json:"dirEntries,omitempty"` }
func NewSchema ¶
func NewSchema(contentType ContentType) *Schema
Click to show internal directories.
Click to hide internal directories.