objects

package
v0.0.0-...-faefad5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2022 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
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

func (*CDN) GetAPIKey

func (c *CDN) GetAPIKey() (string, error)

GetAPIKey get the api Key

func (*CDN) SetAPIKey

func (c *CDN) SetAPIKey(apiKey string) error

SetAPIKey the api key

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 Filter

type Filter struct {
	Root  string  `json:"root"`
	Rules []Rules `json:"rules"`
}

Filter filter of pkg

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

func (i *Instance) GetPassword() (string, error)

GetPassword get password for instance

func (*Instance) GetPasswordSimple

func (i *Instance) GetPasswordSimple() string

GetPasswordSimple Get password and not receive an error

func (*Instance) GetVersion

func (i *Instance) GetVersion() string

GetVersion Get version for instance

func (*Instance) InstanceOf

func (i *Instance) InstanceOf(types []string) bool

InstanceOf is instance of defined groups

func (*Instance) SetPassword

func (i *Instance) SetPassword(p string) error

SetPassword set password for instance

func (*Instance) URLIPString

func (i *Instance) URLIPString() string

URLIPString for instance

func (*Instance) URLString

func (i *Instance) URLString() string

URLString 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) Equals

func (p *Package) Equals(comparePackage *Package) bool

Equals check if packages are the same

func (*Package) FromString

func (p *Package) FromString(pkgStr string) bool

FromString Get package from String

type PackageDependency

type PackageDependency struct {
	Name string `json:"name"`
	ID   string `json:"id"`
}

PackageDependency description struct

type PackageFilter

type PackageFilter struct {
	Root  string        `json:"root"`
	Rules []PackageRule `json:"rules"`
}

PackageFilter description struct

type PackageList

type PackageList struct {
	Results []Package `json:"results"`
	Total   int       `json:"total"`
}

PackageList description struct

type PackageRule

type PackageRule struct {
	Modifier string `json:"modifier"`
	Pattern  string `json:"pattern"`
}

PackageRule description struct

type ProjectRegistered

type ProjectRegistered struct {
	Name string
	Path string
}

ProjectRegistered registered project

type Projects

type Projects struct {
	Project []ProjectRegistered
}

Projects Registered projects

type Rules

type Rules struct {
	Modifier string `json:"modifier"`
	Pattern  string `json:"pattern"`
}

Rules of filter in pkg

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL