contentasset

package
v0.35.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const NAME = "ContentAsset"

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentAsset

type ContentAsset struct {
	metadata.MetadataInfo
	XMLName                  xml.Name `xml:"ContentAsset"`
	Xmlns                    string   `xml:"xmlns,attr"`
	IsVisibleByExternalUsers struct {
		Text string `xml:",chardata"`
	} `xml:"isVisibleByExternalUsers"`
	Language struct {
		Text string `xml:",chardata"`
	} `xml:"language"`
	MasterLabel struct {
		Text string `xml:",chardata"`
	} `xml:"masterLabel"`
	Relationships struct {
		Organization struct {
			Access struct {
				Text string `xml:",chardata"`
			} `xml:"access"`
		} `xml:"organization"`
	} `xml:"relationships"`
	Versions struct {
		Version struct {
			Number struct {
				Text string `xml:",chardata"`
			} `xml:"number"`
			PathOnClient struct {
				Text string `xml:",chardata"`
			} `xml:"pathOnClient"`
		} `xml:"version"`
	} `xml:"versions"`
}

func Open

func Open(path string) (*ContentAsset, error)

func (*ContentAsset) Files

func (c *ContentAsset) Files(format metadata.Format) (map[string][]byte, error)

func (*ContentAsset) SetMetadata

func (c *ContentAsset) SetMetadata(m metadata.MetadataInfo)

func (*ContentAsset) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL