Documentation ¶
Index ¶
- func FilterByGlob(pattern string) ([]string, error)
- func FilterByModule(dir, moduleFilter string) ([]string, error)
- func FormatXml(toFormat string) (string, error)
- func GetFieldNameForDirName(dirName string) string
- func GetMetadataTypeDirNames() []string
- func StringSliceContainsKey(strings []string, key string) bool
- type MasterPage
- type Metadata
- type Page
- type PagePackResponse
- type PagePost
- type PagePostResult
- type Plan
- type PullResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterByGlob ¶
func FilterByModule ¶
func GetFieldNameForDirName ¶
GetFieldNameForDirName returns the metadata field name for a given directory name
func GetMetadataTypeDirNames ¶
func GetMetadataTypeDirNames() []string
GetMetadataTypeDirNames returns the directory names for a type
func StringSliceContainsKey ¶
StringSliceContainsKey returns true if a string is contained in a slice
Types ¶
type MasterPage ¶
type Metadata ¶
type Metadata struct { Apps []string `json:"apps"` AuthProviders []string `json:"authproviders"` ComponentPacks []string `json:"componentpacks"` DataServices []string `json:"dataservices"` DataSources []string `json:"datasources"` DesignSystems []string `json:"designsystems"` Files []string `json:"files"` Pages []string `json:"pages"` Profiles []string `json:"profiles"` Site []string `json:"site"` Themes []string `json:"themes"` }
func (Metadata) FilterMetadataItem ¶
FilterMetadataItem returns true if the path meets the filter criteria, otherwise it returns false
func (Metadata) GetNamesForType ¶
GetNamesForType returns the item names provided in the metadata for a particular type
type Page ¶
type Page struct { ID string `json:"Id"` Attributes map[string]string `json:"attributes"` Name string `json:"Name"` Type string `json:"skuid__Type__c"` UniqueID string `json:"skuid__UniqueId__c"` Module string `json:"skuid__Module__c"` ComposerSettings *string `json:"skuid__Composer_Settings__c"` MasterPageID *string `json:"skuid__MasterPage__c"` MasterPageRelation *MasterPage `json:"skuid__MasterPage__r"` IsMaster bool `json:"skuid__IsMaster__c"` Layout *string `json:"skuid__Layout__c"` Layout2 *string `json:"skuid__Layout2__c"` Layout3 *string `json:"skuid__Layout3__c"` Layout4 *string `json:"skuid__Layout4__c"` Layout5 *string `json:"skuid__Layout5__c"` }
type PagePackResponse ¶
func (PagePackResponse) WritePagePack ¶
func (pack PagePackResponse) WritePagePack(filename, module string) error
type PagePost ¶
type PagePost struct { Changes []PullResponse `json:"changes"` Deletions []PullResponse `json:"deletions"` }
type PagePostResult ¶
type PullResponse ¶
type PullResponse struct { APIVersion string `json:"apiVersion"` Name string `json:"name"` UniqueID string `json:"uniqueId"` Type string `json:"type"` Module string `json:"module"` MaxAutoSaves int `json:"maxAutoSaves"` MasterPageUniqueID string `json:"masterPageUniqueId,omitempty"` IsMasterPage bool `json:"isMasterPage"` ComposerSettings *string `json:"composerSettings"` Body string `json:"body,omitempty"` }
func ReadFiles ¶
func ReadFiles(dir, moduleFilter, file string) ([]PullResponse, error)
func (*PullResponse) FileBasename ¶
func (page *PullResponse) FileBasename() string
func (*PullResponse) WriteAtRest ¶
func (page *PullResponse) WriteAtRest(path string) (err error)
Click to show internal directories.
Click to hide internal directories.