aem

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: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RoleAuthor     = "author"
	RoleDispatcher = "dispatch"
	RolePublisher  = "publish"
)

Roles available for selection

View Source
const (
	// URLSystemInformation system overview URL
	URLSystemInformation = "/libs/granite/operations/content/systemoverview/export.json"
)

Variables

View Source
var (
	KeyChain           = true
	JarLocation        = ``
	JarUsername        = ``
	JarPassword        = ``
	LicenseCustomer    = ``
	LicenseVersion     = ``
	LicenseDownloadID  = ``
	DefaultInstanceStr = "local-author"
	AdditionalPackages []string
)

Template variables

Cnf active configuration

Functions

func AllowUserStart

func AllowUserStart(allow bool) bool

AllowUserStart Allow AEM to start for the current user

func BuildModuleProject

func BuildModuleProject(p string, productionBuild bool) error

BuildModuleProject build project module

func BuildProject

func BuildProject(productionBuild, skipTests, skipCheckStyle, skipFrontend bool) error

BuildProject kicks of the project build

func ConfigExists

func ConfigExists() bool

ConfigExists is there a config available

func Destroy

func Destroy(i objects.Instance, force bool, cnf objects.Config) error

Destroy the instance.

func FindJarVersion

func FindJarVersion(configVersion, instanceVersion string, config *objects.Config) (*objects.AemJar, error)

FindJarVersion find jar configuration in config for version

func FullStart

func FullStart(i objects.Instance, ignorePid, forceDownload, foreground bool, cnf *objects.Config, extraPackages []*objects.Package) error

FullStart starts the instance function

func GetByGroup

func GetByGroup(g string, i []objects.Instance) ([]objects.Instance, error)

GetByGroup find instances by group

func GetByGroupAndRole

func GetByGroupAndRole(g string, i []objects.Instance, r string) ([]objects.Instance, error)

GetByGroupAndRole find instances by group and role

func GetByGroupAndRoles

func GetByGroupAndRoles(g string, i []objects.Instance, r []string) ([]objects.Instance, error)

GetByGroupAndRoles find instances by group and roles

func GetByName

func GetByName(n string, i []objects.Instance) (*objects.Instance, error)

GetByName find instance by name

func GetConfig

func GetConfig() (*objects.Config, error)

GetConfig Read config page

func GetDefaultInstanceName

func GetDefaultInstanceName() string

GetDefaultInstanceName Instance based on resolution order

func GetFromInstance

func GetFromInstance(i *objects.Instance, uri string) ([]byte, error)

GetFromInstance Perform a get request towards an instance

func GetJar

func GetJar(forceDownload bool, aemJar *objects.AemJar) (uint64, error)

GetJar Download jar to disk

func GetPasswordForInstance

func GetPasswordForInstance(i objects.Instance, useKeyring bool) (string, error)

GetPasswordForInstance get password for instance.

func KeyRingGetPassword

func KeyRingGetPassword(i objects.Instance) (string, error)

KeyRingGetPassword Store password from keyring.

func KeyRingSetPassword

func KeyRingSetPassword(i objects.Instance, password string) error

KeyRingSetPassword Store password in keyring.

func ListLogFiles

func ListLogFiles(i *objects.Instance) ([]os.FileInfo, error)

ListLogFiles log files for instance

func PasswordURL

func PasswordURL(i objects.Instance, useKeyring bool) (string, error)

PasswordURL with credentials for instance

func PidExists

func PidExists(i objects.Instance) bool

PidExists Does the pid exists?

func PidHandler

func PidHandler(ignorePid bool, i objects.Instance) bool

PidHandler Handle pid or stop

func Render

func Render() string

Render 's the template to a string

func SetBuildVersion

func SetBuildVersion(productionBuild bool) error

SetBuildVersion sets

func Signal

func Signal(pid, runDir string) error

Signal sends signal to pid

func Start

func Start(i objects.Instance, forGround bool) error

Start start a new instance

func Stop

func Stop(i objects.Instance) error

Stop an instance

func SyncPackages

func SyncPackages(i objects.Instance, c objects.Config, additionalPackages []string, forceDownload bool) error

SyncPackages Sync the packages in the install dir

func TCPPortOpen

func TCPPortOpen(port int) bool

TCPPortOpen is the port open on the server

func URL

func URL(i *objects.Instance, uri string) (*url.URL, error)

URL for instance (*url.URL)

func URLString

func URLString(i *objects.Instance, ip bool) string

URLString for instance

func Unpack

func Unpack(i objects.Instance, version *objects.AemJar) error

Unpack the jar instance on the correct location

func WriteConfigFile

func WriteConfigFile() (int, error)

WriteConfigFile to disk

func WriteIgnoreFile

func WriteIgnoreFile() (string, error)

WriteIgnoreFile Write ignore file to disk

func WriteLicense

func WriteLicense(i *objects.Instance, c *objects.Config) (int, error)

WriteLicense Write license file to disk for instance

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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