Documentation
¶
Index ¶
- Constants
- func DisplayReference(value string) string
- type Asset
- type Cache
- type CapturedAsset
- type CapturedEntry
- type CapturedSet
- type Catalog
- type Collection
- type ContentRef
- type Entry
- type EntryKind
- type Manifest
- type ManifestAsset
- type ManifestAssetSet
- type ManifestEntry
- type PathRef
- type Reference
- type ReferenceKind
- type Set
- type Value
Constants ¶
View Source
const FormatVersion = 1
Variables ¶
This section is empty.
Functions ¶
func DisplayReference ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) HideRootInErrors ¶
func (c *Cache) HideRootInErrors()
type CapturedAsset ¶
type CapturedAsset struct {
Name string
Entries []CapturedEntry
}
type CapturedEntry ¶
type CapturedSet ¶
type CapturedSet struct {
ID string
Assets []CapturedAsset
}
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
func (*Collection) Add ¶
func (c *Collection) Add(set *CapturedSet) error
func (*Collection) Catalog ¶
func (c *Collection) Catalog() *Catalog
func (*Collection) Encode ¶
func (c *Collection) Encode() ([]byte, error)
type ContentRef ¶
type ContentRef string
type Entry ¶
type Entry struct {
ManifestEntry
}
type Manifest ¶
type Manifest struct {
FormatVersion int `json:"format-version"`
AssetSets []ManifestAssetSet `json:"asset-sets"`
}
type ManifestAsset ¶
type ManifestAsset struct {
Name string `json:"name"`
Entries []ManifestEntry `json:"entries"`
}
type ManifestAssetSet ¶
type ManifestAssetSet struct {
ID string `json:"id"`
Assets []ManifestAsset `json:"assets"`
}
type ManifestEntry ¶
type Reference ¶
type Reference struct {
Token string
Kind ReferenceKind
EntryIdentity string
AssetName string
InternalPath string
Asset *Asset
Entry *Entry
}
func ParseReference ¶
type ReferenceKind ¶
type ReferenceKind string
const ( ReferenceKindPath ReferenceKind = "path" ReferenceKindContent ReferenceKind = "content" )
Click to show internal directories.
Click to hide internal directories.