Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Archive ¶
type Archive interface { // Assets returns a map of named assets or archives, for collections. Assets() map[string]interface{} // Path returns the filesystem path, for file-based archives. Path() string // URI returns a URI, for remote network-based archives. URI() string }
Archive represents a collection of Assets.
func NewAssetArchive ¶
NewAssetArchive creates a new archive from an in-memory collection of named assets or other archives.
func NewFileArchive ¶
NewFileArchive creates an archive backed by a file and specified by that file's path.
func NewRemoteArchive ¶
NewRemoteArchive creates an archive backed by a remote file and specified by that file's URL.
type Asset ¶
type Asset interface { // Path returns the filesystem path, for file-based assets. Path() string // Text returns an in-memory blob of text, for string-based assets. Text() string // URI returns a URI, for remote network-based assets. URI() string }
Asset represents a file that is managed in conjunction with Pulumi resources. An Asset may be backed by a number of sources, including local filesystem paths, in-memory blobs of text, or remote files referenced by a URL.
func NewFileAsset ¶
NewFileAsset creates an asset backed by a file and specified by that file's path.
func NewRemoteAsset ¶
NewRemoteAsset creates an asset backed by a remote file and specified by that file's URL.
func NewStringAsset ¶
NewStringAsset creates an asset backed by a piece of in-memory text.