Documentation ¶
Index ¶
- Constants
- type AemJar
- type CDN
- type Config
- type CrxResponse
- type Description
- type Filter
- type Instance
- func (i *Instance) GetPassword() (string, error)
- func (i *Instance) GetPasswordSimple() string
- func (i *Instance) GetVersion() string
- func (i *Instance) InstanceOf(types []string) bool
- func (i *Instance) SetPassword(p string) error
- func (i *Instance) URLIPString() string
- func (i *Instance) URLString() string
- type Package
- type PackageDependency
- type PackageFilter
- type PackageList
- type PackageRule
- type ProjectRegistered
- type Projects
- type Rules
- type SystemInformation
Constants ¶
const (
// SchemaVersion config schema version
SchemaVersion = "1"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AemJar ¶
type AemJar struct { Location string `toml:"location"` Version string `toml:"version"` Username string `toml:"username"` Password string `toml:"password"` }
AemJar Descriptive jar
type CDN ¶
type CDN struct { Name string `toml:"name"` Group string `toml:"group"` CdnType string `toml:"type"` ServiceID string `toml:"serviceID"` }
CDN struct
type Config ¶
type Config struct { Schema string `toml:"schema"` ProjectName string `toml:"project-name"` Verbose bool `toml:"verbose"` Version string `toml:"version"` VersionSuffix string `toml:"version-suffix"` Packages []string `toml:"commandPullContent"` PackagesExcluded []string `toml:"packageExclude"` Command string `toml:"command,omitempty"` CommandArgs []string `toml:"command,omitempty"` DefaultInstance string `toml:"defaultInstance"` DefaultVersion string `toml:"default-version"` CDNs []CDN `toml:"cdn"` Instances []Instance `toml:"instance"` JVMOptions []string `toml:"jvm-options"` JVMDebugOptions []string `toml:"jvm-debug-options"` AemJar []AemJar `toml:"aemJar"` LicenseCustomer string `toml:"licenseCustomer"` LicenseVersion string `toml:"licenseVersion"` LicenseDownloadID string `toml:"licenseDownloadID"` WatchPath []string `toml:"watchPath"` Port int `toml:"port"` Role string `toml:"role"` KeyRing bool `toml:"use-keyring"` JcrRoot string `toml:"jcrRoot"` JVMOpts []string `toml:"jvmOptions"` AdditionalPackages []string `toml:"additionalPackages"` ContentPackages []string `toml:"contentPackages"` OakOptions []string `toml:"oakOptions"` OakVersion string `toml:"oakDefaultVersion"` VltPaths []string `toml:"vltSyncPaths"` BuildCommands string `toml:"buildCommand"` ValidateSSL bool `toml:"ssl-validate"` InvalidatePaths []string `toml:"invalidatePaths"` CloudManagerGit string `toml:"cloudManagerGit"` ContentBackupPaths []string `toml:"contentBackupPaths"` ContentBackupName string `toml:"contentBackupName"` ContentBackupGroup string `toml:"contentBackupGroup"` }
Config toml object to read config
var Cnf *Config
Cnf Active config instance
type CrxResponse ¶
type CrxResponse struct { XMLName xml.Name `xml:"crx"` Text string `xml:",chardata"` Version string `xml:"version,attr"` User string `xml:"user,attr"` Workspace string `xml:"workspace,attr"` Request struct { Text string `xml:",chardata"` Param []struct { Text string `xml:",chardata"` Name string `xml:"name,attr"` Value string `xml:"value,attr"` } `xml:"param"` } `xml:"request"` Response struct { Text string `xml:",chardata"` Data struct { Text string `xml:",chardata"` Package struct { Text string `xml:",chardata"` Group struct { Text string `xml:",chardata"` } `xml:"group"` Name struct { Text string `xml:",chardata"` } `xml:"name"` Version struct { Text string `xml:",chardata"` } `xml:"version"` DownloadName struct { Text string `xml:",chardata"` } `xml:"downloadName"` Size struct { Text string `xml:",chardata"` } `xml:"size"` Created struct { Text string `xml:",chardata"` } `xml:"created"` CreatedBy struct { Text string `xml:",chardata"` } `xml:"createdBy"` LastModified struct { Text string `xml:",chardata"` } `xml:"lastModified"` LastModifiedBy struct { Text string `xml:",chardata"` } `xml:"lastModifiedBy"` LastUnpacked struct { Text string `xml:",chardata"` } `xml:"lastUnpacked"` LastUnpackedBy struct { Text string `xml:",chardata"` } `xml:"lastUnpackedBy"` } `xml:"package"` Log struct { Text string `xml:",chardata"` } `xml:"log"` } `xml:"data"` Status struct { Text string `xml:",chardata"` Code string `xml:"code,attr"` } `xml:"status"` } `xml:"response"` }
CrxResponse descriptive struct
type Description ¶
type Description struct { Pid string `json:"pid"` Path string `json:"path"` Name string `json:"name"` DownloadName string `json:"downloadName"` Group string `json:"group"` GroupTitle string `json:"groupTitle"` Version string `json:"version"` Description string `json:"description,omitempty"` Thumbnail string `json:"thumbnail"` BuildCount uint `json:"buildCount"` Created int64 `json:"created,omitempty"` CreatedBy string `json:"createdBy,omitempty"` LastUnpacked int64 `json:"lastUnpacked,omitempty"` LastUnpackedBy string `json:"lastUnpackedBy,omitempty"` LastUnwrapped int64 `json:"lastUnwrapped,omitempty"` Size uint64 `json:"size"` HasSnapshot bool `json:"hasSnapshot"` NeedsRewrap bool `json:"needsRewrap"` RequiresRoot bool `json:"requiresRoot"` RequiresRestart bool `json:"requiresRestart"` AcHandling string `json:"acHandling"` Dependencies []interface{} `json:"dependencies"` Resolved bool `json:"resolved"` Filter []Filter `json:"filter"` Screenshots []interface{} `json:"screenshots"` LastModified int64 `json:"lastModified,omitempty"` LastModifiedBy string `json:"lastModifiedBy,omitempty"` LastWrapped int64 `json:"lastWrapped,omitempty"` LastWrappedBy string `json:"lastWrappedBy,omitempty"` LastUnwrappedBy string `json:"lastUnwrappedBy,omitempty"` BuiltWith string `json:"builtWith,omitempty"` TestedWith string `json:"testedWith,omitempty"` FixedBugs string `json:"fixedBugs,omitempty"` ProviderName string `json:"providerName,omitempty"` ProviderURL string `json:"providerUrl,omitempty"` ProviderLink string `json:"providerLink,omitempty"` }
Description of pkg in aem
type Instance ¶
type Instance struct { Name string `toml:"name"` Aliases []string `toml:"aliases"` Group string `toml:"group"` Debug bool `toml:"debug"` Protocol string `toml:"proto"` IP string `toml:"ip"` Hostname string `toml:"hostname"` Port int `toml:"port"` SPort int `toml:"secure-port"` DispatcherVersion string `toml:"dispatcher-version"` DispatcherEndpoint string `toml:"dispatcher-endpoint"` Author string `toml:"author"` Publisher string `toml:"publisher"` Type string `toml:"type"` RunMode string `toml:"runmode"` Username string `toml:"username"` SSHUsername string `toml:"ssh-username"` Password string `toml:"password"` JVMOptions []string `toml:"jvm-options"` JVMDebugOptions []string `toml:"jvm-debug-options"` Version string `toml:"version"` }
Instance for aem instance
func (*Instance) GetPassword ¶
GetPassword get password for instance
func (*Instance) GetPasswordSimple ¶
GetPasswordSimple Get password and not receive an error
func (*Instance) GetVersion ¶
GetVersion Get version for instance
func (*Instance) InstanceOf ¶
InstanceOf is instance of defined groups
func (*Instance) SetPassword ¶
SetPassword set password for instance
type Package ¶
type Package struct { Pid string `json:"pid"` Path string `json:"path"` Name string `json:"name"` DownloadName string `json:"downloadName"` Group string `json:"group"` GroupTitle string `json:"groupTitle"` Version string `json:"version"` Description string `json:"description"` Thumbnail string `json:"thumbnail"` BuildCount int `json:"buildCount"` Created int64 `json:"created,omitempty"` CreatedStr string `` CreatedBy string `json:"createdBy,omitempty"` LastUnpacked int64 `json:"lastUnpacked"` LastUnpackedBy string `json:"lastUnpackedBy"` LastUnwrapped int64 `json:"lastUnwrapped"` SizeHuman string `` Size int `json:"size"` HasSnapshot bool `json:"hasSnapshot"` NeedsRewrap bool `json:"needsRewrap"` RequiresRoot bool `json:"requiresRoot"` RequiresRestart bool `json:"requiresRestart"` AcHandling string `json:"acHandling"` Dependencies []PackageDependency `json:"dependencies"` Resolved bool `json:"resolved"` Filter []Filter `json:"filter"` Screenshots []string `json:"screenshots"` ProviderName string `json:"providerName,omitempty"` ProviderURL string `json:"providerUrl,omitempty"` ProviderLink string `json:"providerLink,omitempty"` BuiltWith string `json:"builtWith,omitempty"` TestedWith string `json:"testedWith,omitempty"` LastUnwrappedBy string `json:"lastUnwrappedBy,omitempty"` LastModified int64 `json:"lastModified,omitempty"` LastModifiedBy string `json:"lastModifiedBy,omitempty"` LastModifiedByStr string `` LastWrapped int64 `json:"lastWrapped,omitempty"` LastWrappedStr string `` LastWrappedBy string `json:"lastWrappedBy,omitempty"` }
Package description struct
func (*Package) FromString ¶
FromString Get package from String
type PackageDependency ¶
PackageDependency description struct
type PackageFilter ¶
type PackageFilter struct { Root string `json:"root"` Rules []PackageRule `json:"rules"` }
PackageFilter description struct
type PackageList ¶
PackageList description struct
type PackageRule ¶
PackageRule description struct
type ProjectRegistered ¶
ProjectRegistered registered project
type SystemInformation ¶
type SystemInformation struct { HealthChecks interface{} `json:"Health Checks"` Instance struct { AdobeExperienceManager string `json:"Adobe Experience Manager"` RunModes string `json:"Run Modes"` InstanceUpSince string `json:"Instance Up Since"` } `json:"Instance"` Repository struct { ApacheJackrabbitOak string `json:"Apache Jackrabbit Oak"` NodeStore string `json:"Node Store"` RepositorySize string `json:"Repository Size"` FileDataStore string `json:"File Data Store"` } `json:"Repository"` MaintenanceTasks interface{} `json:"Maintenance Tasks"` SystemInformation struct { MacOSX string `json:"Mac OS X"` Linux string `json:"Linux"` Windows string `json:"Windows"` CurrentOS string SystemLoadAverage string `json:"System Load Average"` UsableDiskSpace string `json:"Usable Disk Space"` MaximumHeap string `json:"Maximum Heap"` } `json:"System Information"` EstimatedNodeCounts struct { Total string `json:"Total"` Tags string `json:"Tags"` Assets string `json:"Assets"` Authorizables string `json:"Authorizables"` Pages string `json:"Pages"` } `json:"Estimated Node Counts"` ReplicationAgents interface{} `json:"Replication Agents"` DistributionAgents interface{} `json:"Distribution Agents"` }
SystemInformation descriptive struct