Documentation ¶
Index ¶
- func AliasNameIsValid(name string) error
- func CompareWithUUID(first, second interface{}) bool
- func CompareWithoutUUID(first, second interface{}) bool
- func DeepCopy(orig, dest interface{}) error
- func InjectUUID(m meta.Metadata) meta.Metadata
- func IsInnerScope(s1, s2 string) bool
- func IsValidScope(scope string) bool
- func JoinScopes(s1, s2 string) (string, error)
- func PrintAliasTree(al *meta.Alias, out io.Writer)
- func PrintAppTree(app *meta.App, out io.Writer)
- func PrintChannelTree(ch *meta.Channel, out io.Writer)
- func PrintTypeTree(t *meta.Type, out io.Writer)
- func RecursiveValidateUUIDS(name string, app *meta.App, t *testing.T)
- func RemoveAliasInScope(scope string) (string, string, error)
- func RemoveLastPartInScope(scope string) (string, string, error)
- func StructureNameIsValid(name string) error
- func ValidateUUID(uuid string) bool
- type MAliases
- type MApps
- type MChannels
- type MStr
- type MTypes
- type StrSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AliasNameIsValid ¶
AliasNameIsValid checks if the given name is valid for naming aliasses
func CompareWithUUID ¶
func CompareWithUUID(first, second interface{}) bool
CompareWithUUID compares two components with their UUIDs
func CompareWithoutUUID ¶
func CompareWithoutUUID(first, second interface{}) bool
CompareWithoutUUID compares two components without comparing their UUID.
func DeepCopy ¶
func DeepCopy(orig, dest interface{}) error
DeepCopy is a copy method for dapps tree structures
func InjectUUID ¶
InjectUUID injects a new UUID on a metadata
func IsInnerScope ¶
IsInnerScope checks if scope s2 is children or the same scope of s1
func IsValidScope ¶
IsValidScope checks if the given scope is of the type 'name1.name2.name3'
func JoinScopes ¶
JoinScopes join two scopes and return the new scope
func PrintAliasTree ¶
PrintAliasTree prints the alias structure
func PrintAppTree ¶
PrintAppTree prints the app tree
func PrintChannelTree ¶
PrintChannelTree prints the channel structure
func PrintTypeTree ¶
PrintTypeTree prints the channel structure
func RecursiveValidateUUIDS ¶
RecursiveValidateUUIDS validates UUIDs on a structure recursively
func RemoveAliasInScope ¶
RemoveAliasInScope removes the two last names defined in the scope and returns the new scope and the alias that was removed
func RemoveLastPartInScope ¶
RemoveLastPartInScope removes the last name defined in the scope and returns the new scope and the element that was removed
func StructureNameIsValid ¶
StructureNameIsValid checks if the given name is valid for naming Channels, types and dApps
func ValidateUUID ¶
ValidateUUID validates the formatting of a string to check whether the string contains a proper UUID
Types ¶
type StrSet ¶
StrSet implements a set of strings.
func DisjunctSet ¶
DisjunctSet returns the disjunction set between two StrSet.
func IntersectSet ¶
IntersectSet returns the intersection set between two StrSet.
func MakeStrSet ¶
MakeStrSet creates a StrSet from a supported type.
func (*StrSet) ToArray ¶
func (set *StrSet) ToArray() utils.StringArray
ToArray returns an array of all items in the set.