Documentation
¶
Overview ¶
Package registry provides metadata type registry information without circular dependencies
Index ¶
- func GetCanonicalDirectoryName(metadataType string) string
- func GetMetadataDirectory(metadataType string) string
- func GetMetadataSuffix(metadataType string) string
- func GetParentType(childType string) string
- func IsChildType(metadataType string) bool
- type FilesHelper
- type MetadataRegistry
- type MetadataTypeInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCanonicalDirectoryName ¶
GetCanonicalDirectoryName returns the proper directory name for a metadata type considering both the type itself and any parent-child relationships
func GetMetadataDirectory ¶
GetMetadataDirectory returns the canonical directory name for a given metadata type.
func GetMetadataSuffix ¶
GetMetadataSuffix returns the file suffix for a given metadata type
func GetParentType ¶
GetParentType returns the parent metadata type for child types like CustomField
func IsChildType ¶
IsChildType returns true if the metadata type is a child of another type
Types ¶
type FilesHelper ¶
type FilesHelper struct {
MetadataType string
Name string
Content interface{} // The metadata struct to marshal
}
FilesHelper provides a helper for implementing the Files() method for metadata types that consist of a single XML file without associated code files
func (*FilesHelper) GenerateFiles ¶
func (h *FilesHelper) GenerateFiles(format string) (map[string][]byte, error)
GenerateFiles generates the files map for a metadata component