Documentation ¶
Index ¶
- 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 IsValidScope(scope string) bool
- func JoinScopes(s1, s2 string) (string, error)
- func PrintAppTree(app *meta.App, out io.Writer)
- func PrintChannelTree(ch *meta.Channel, out io.Writer)
- func PrintChannelTypeTree(ct *meta.ChannelType, out io.Writer)
- func RecursiveValidateUUIDS(name string, app *meta.App, t *testing.T)
- 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 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 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 PrintAppTree ¶
PrintAppTree prints the app tree
func PrintChannelTree ¶
PrintChannelTree prints the channel structure
func PrintChannelTypeTree ¶
func PrintChannelTypeTree(ct *meta.ChannelType, out io.Writer)
PrintChannelTypeTree prints the channel structure
func RecursiveValidateUUIDS ¶
RecursiveValidateUUIDS validates UUIDs on a structure recursively
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, CTypes 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.