Versions in this module Expand all Collapse all v0 v0.16.3 Nov 6, 2018 Changes in this version type URN + func DefaultRootStackURN(stack tokens.QName, proj tokens.PackageName) URN v0.16.3-rc2 Nov 6, 2018 v0.15.3-dev Sep 12, 2018 v0.15.1-rc1 Sep 6, 2018 v0.15.0 Aug 14, 2018 Changes in this version type Goal + InitErrors []string + Provider string + type Operation struct + Resource *State + Type OperationType + func NewOperation(state *State, op OperationType) Operation + type OperationType string + const OperationTypeCreating + const OperationTypeDeleting + const OperationTypeReading + const OperationTypeUpdating type State + External bool + InitErrors []string + Provider string type Status + const StatusPartialFailure v0.12.3 Jun 5, 2018 Changes in this version + const ArchiveAssetsProperty + const ArchiveHashProperty + const ArchivePathProperty + const ArchiveSig + const ArchiveURIProperty + const AssetHashProperty + const AssetPathProperty + const AssetSig + const AssetTextProperty + const AssetURIProperty + const NotArchive + const RootStackType + const SigKey + const TarArchive + const TarGZIPArchive + const URNNameDelimiter + const URNNamespaceID + const URNPrefix + const URNTypeDelimiter + const ZIPArchive + var ArchiveExts = map[string]ArchiveFormat + func HasSig(obj PropertyMap, match string) bool + func IDStrings(ids []ID) []string + func IsReqError(err error) bool + func NewErrors(errs []error) error + func NewPropertyError(typ string, property string, err error) error + func NewUniqueHex(prefix string, randlen, maxlen int) (string, error) + type Archive struct + Assets map[string]interface{} + Hash string + Path string + Sig string + URI string + func DeserializeArchive(obj map[string]interface{}) (*Archive, bool, error) + func NewAssetArchive(assets map[string]interface{}) (*Archive, error) + func NewPathArchive(path string) (*Archive, error) + func NewURIArchive(uri string) (*Archive, error) + func (a *Archive) Archive(format ArchiveFormat, w io.Writer) error + func (a *Archive) Bytes(format ArchiveFormat) ([]byte, error) + func (a *Archive) EnsureHash() error + func (a *Archive) Equals(other *Archive) bool + func (a *Archive) GetAssets() (map[string]interface{}, bool) + func (a *Archive) GetPath() (string, bool) + func (a *Archive) GetURI() (string, bool) + func (a *Archive) GetURIURL() (*url.URL, bool, error) + func (a *Archive) HasContents() bool + func (a *Archive) IsAssets() bool + func (a *Archive) IsPath() bool + func (a *Archive) IsURI() bool + func (a *Archive) Open() (ArchiveReader, error) + func (a *Archive) ReadSourceArchive() (ArchiveFormat, io.ReadCloser, error) + func (a *Archive) Serialize() map[string]interface{} + type ArchiveFormat int + type ArchiveReader interface + Close func() error + Next func() (string, *Blob, error) + type ArrayDiff struct + Adds map[int]PropertyValue + Deletes map[int]PropertyValue + Sames map[int]PropertyValue + Updates map[int]ValueDiff + func (diff *ArrayDiff) Len() int + type Asset struct + Hash string + Path string + Sig string + Text string + URI string + func DeserializeAsset(obj map[string]interface{}) (*Asset, bool, error) + func MassageIfUserProgramCodeAsset(asset *Asset, debug bool) *Asset + func NewPathAsset(path string) (*Asset, error) + func NewTextAsset(text string) (*Asset, error) + func NewURIAsset(uri string) (*Asset, error) + func (a *Asset) Bytes() ([]byte, error) + func (a *Asset) EnsureHash() error + func (a *Asset) Equals(other *Asset) bool + func (a *Asset) GetPath() (string, bool) + func (a *Asset) GetText() (string, bool) + func (a *Asset) GetURI() (string, bool) + func (a *Asset) GetURIURL() (*url.URL, bool, error) + func (a *Asset) HasContents() bool + func (a *Asset) IsPath() bool + func (a *Asset) IsText() bool + func (a *Asset) IsURI() bool + func (a *Asset) IsUserProgramCode() bool + func (a *Asset) Read() (*Blob, error) + func (a *Asset) Serialize() map[string]interface{} + type Blob struct + func NewByteBlob(data []byte) *Blob + func NewFileBlob(f *os.File) (*Blob, error) + func NewReadCloserBlob(r io.ReadCloser) (*Blob, error) + func (blob *Blob) Close() error + func (blob *Blob) Read(p []byte) (int, error) + func (blob *Blob) Size() int64 + type Computed struct + Element PropertyValue + type Goal struct + Custom bool + Dependencies []URN + Name tokens.QName + Parent URN + Properties PropertyMap + Protect bool + Type tokens.Type + func NewGoal(t tokens.Type, name tokens.QName, custom bool, props PropertyMap, parent URN, ...) *Goal + type ID string + func MaybeID(s *string) *ID + func NewUniqueHexID(prefix string, randlen, maxlen int) (ID, error) + func (id *ID) StringPtr() *string + func (id ID) String() string + type ObjectDiff struct + Adds PropertyMap + Deletes PropertyMap + Sames PropertyMap + Updates map[PropertyKey]ValueDiff + func (diff *ObjectDiff) Added(k PropertyKey) bool + func (diff *ObjectDiff) Changed(k PropertyKey) bool + func (diff *ObjectDiff) Deleted(k PropertyKey) bool + func (diff *ObjectDiff) Keys() []PropertyKey + func (diff *ObjectDiff) Same(k PropertyKey) bool + func (diff *ObjectDiff) Updated(k PropertyKey) bool + type Output struct + Element PropertyValue + type Property struct + Key PropertyKey + Value PropertyValue + type PropertyKey tokens.Name + type PropertyMap map[PropertyKey]PropertyValue + func NewPropertyMap(s interface{}) PropertyMap + func NewPropertyMapFromMap(m map[string]interface{}) PropertyMap + func NewPropertyMapFromMapRepl(m map[string]interface{}, replk func(string) (PropertyKey, bool), ...) PropertyMap + func NewPropertyMapRepl(s interface{}, replk func(string) (PropertyKey, bool), ...) PropertyMap + func (m PropertyMap) ContainsUnknowns() bool + func (m PropertyMap) Copy() PropertyMap + func (m PropertyMap) HasValue(k PropertyKey) bool + func (m PropertyMap) MapRepl(replk func(string) (string, bool), ...) map[string]interface{} + func (m PropertyMap) Mappable() map[string]interface{} + func (m PropertyMap) Merge(other PropertyMap) PropertyMap + func (m PropertyMap) StableKeys() []PropertyKey + func (props PropertyMap) DeepEquals(other PropertyMap) bool + func (props PropertyMap) Diff(other PropertyMap) *ObjectDiff + type PropertySet map[PropertyKey]bool + type PropertyValue struct + V interface{} + func MakeComputed(v PropertyValue) PropertyValue + func MakeOutput(v PropertyValue) PropertyValue + func NewArchiveProperty(v *Archive) PropertyValue + func NewArrayProperty(v []PropertyValue) PropertyValue + func NewAssetProperty(v *Asset) PropertyValue + func NewBoolProperty(v bool) PropertyValue + func NewComputedProperty(v Computed) PropertyValue + func NewNullProperty() PropertyValue + func NewNumberProperty(v float64) PropertyValue + func NewObjectProperty(v PropertyMap) PropertyValue + func NewOutputProperty(v Output) PropertyValue + func NewPropertyValue(v interface{}) PropertyValue + func NewPropertyValueRepl(v interface{}, replk func(string) (PropertyKey, bool), ...) PropertyValue + func NewStringProperty(v string) PropertyValue + func (v PropertyValue) ArchiveValue() *Archive + func (v PropertyValue) ArrayValue() []PropertyValue + func (v PropertyValue) AssetValue() *Asset + func (v PropertyValue) BoolValue() bool + func (v PropertyValue) ContainsUnknowns() bool + func (v PropertyValue) DeepEquals(other PropertyValue) bool + func (v PropertyValue) Diff(other PropertyValue) *ValueDiff + func (v PropertyValue) HasValue() bool + func (v PropertyValue) Input() Computed + func (v PropertyValue) IsArchive() bool + func (v PropertyValue) IsArray() bool + func (v PropertyValue) IsAsset() bool + func (v PropertyValue) IsBool() bool + func (v PropertyValue) IsComputed() bool + func (v PropertyValue) IsNull() bool + func (v PropertyValue) IsNumber() bool + func (v PropertyValue) IsObject() bool + func (v PropertyValue) IsOutput() bool + func (v PropertyValue) IsString() bool + func (v PropertyValue) MapRepl(replk func(string) (string, bool), ...) interface{} + func (v PropertyValue) Mappable() interface{} + func (v PropertyValue) NumberValue() float64 + func (v PropertyValue) ObjectValue() PropertyMap + func (v PropertyValue) OutputValue() Output + func (v PropertyValue) String() string + func (v PropertyValue) StringValue() string + func (v PropertyValue) TypeString() string + type ReqError struct + K PropertyKey + func (err *ReqError) Error() string + type State struct + Custom bool + Delete bool + Dependencies []URN + ID ID + Inputs PropertyMap + Outputs PropertyMap + Parent URN + Protect bool + Type tokens.Type + URN URN + func NewState(t tokens.Type, urn URN, custom bool, del bool, id ID, inputs PropertyMap, ...) *State + func (s *State) All() PropertyMap + type Status int + const StatusOK + const StatusUnknown + type URN string + func NewURN(stack tokens.QName, proj tokens.PackageName, parentType, baseType tokens.Type, ...) URN + func (urn URN) Name() tokens.QName + func (urn URN) Project() tokens.PackageName + func (urn URN) QualifiedType() tokens.Type + func (urn URN) Stack() tokens.QName + func (urn URN) Type() tokens.Type + func (urn URN) URNName() string + type ValueDiff struct + Array *ArrayDiff + New PropertyValue + Object *ObjectDiff + Old PropertyValue v0.12.1-rc2 May 8, 2018 v0.11.2-rc2 Apr 5, 2018 v0.10.0-rc2 Feb 9, 2018 v0.9.12 Feb 3, 2018