Documentation ¶
Index ¶
- Constants
- Variables
- func AllowUserStart(allow bool) bool
- func BuildModuleProject(p string, productionBuild bool) error
- func BuildProject(productionBuild, skipTests, skipCheckStyle, skipFrontend bool) error
- func ConfigExists() bool
- func Destroy(i objects.Instance, force bool, cnf objects.Config) error
- func FindJarVersion(configVersion, instanceVersion string, config *objects.Config) (*objects.AemJar, error)
- func FullStart(i objects.Instance, ignorePid, forceDownload, foreground bool, ...) error
- func GetByGroup(g string, i []objects.Instance) ([]objects.Instance, error)
- func GetByGroupAndRole(g string, i []objects.Instance, r string) ([]objects.Instance, error)
- func GetByGroupAndRoles(g string, i []objects.Instance, r []string) ([]objects.Instance, error)
- func GetByName(n string, i []objects.Instance) (*objects.Instance, error)
- func GetConfig() (*objects.Config, error)
- func GetDefaultInstanceName() string
- func GetFromInstance(i *objects.Instance, uri string) ([]byte, error)
- func GetJar(forceDownload bool, aemJar *objects.AemJar) (uint64, error)
- func GetPasswordForInstance(i objects.Instance, useKeyring bool) (string, error)
- func KeyRingGetPassword(i objects.Instance) (string, error)
- func KeyRingSetPassword(i objects.Instance, password string) error
- func ListLogFiles(i *objects.Instance) ([]os.FileInfo, error)
- func PasswordURL(i objects.Instance, useKeyring bool) (string, error)
- func PidExists(i objects.Instance) bool
- func PidHandler(ignorePid bool, i objects.Instance) bool
- func Render() string
- func SetBuildVersion(productionBuild bool) error
- func Signal(pid, runDir string) error
- func Start(i objects.Instance, forGround bool) error
- func Stop(i objects.Instance) error
- func SyncPackages(i objects.Instance, c objects.Config, additionalPackages []string, ...) error
- func TCPPortOpen(port int) bool
- func URL(i *objects.Instance, uri string) (*url.URL, error)
- func URLString(i *objects.Instance, ip bool) string
- func Unpack(i objects.Instance, version *objects.AemJar) error
- func WriteConfigFile() (int, error)
- func WriteIgnoreFile() (string, error)
- func WriteLicense(i *objects.Instance, c *objects.Config) (int, error)
Constants ¶
const ( RoleAuthor = "author" RoleDispatcher = "dispatch" RolePublisher = "publish" )
Roles available for selection
const (
// URLSystemInformation system overview URL
URLSystemInformation = "/libs/granite/operations/content/systemoverview/export.json"
)
Variables ¶
var ( KeyChain = true JarLocation = `` JarUsername = `` JarPassword = `` LicenseCustomer = `` LicenseVersion = `` LicenseDownloadID = `` DefaultInstanceStr = "local-author" AdditionalPackages []string )
Template variables
var Cnf *objects.Config
Cnf active configuration
Functions ¶
func AllowUserStart ¶
AllowUserStart Allow AEM to start for the current user
func BuildModuleProject ¶
BuildModuleProject build project module
func BuildProject ¶
BuildProject kicks of the project build
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 ¶
GetByGroup find instances by group
func GetByGroupAndRole ¶
GetByGroupAndRole find instances by group and role
func GetByGroupAndRoles ¶
GetByGroupAndRoles find instances by group and roles
func GetDefaultInstanceName ¶
func GetDefaultInstanceName() string
GetDefaultInstanceName Instance based on resolution order
func GetFromInstance ¶
GetFromInstance Perform a get request towards an instance
func GetPasswordForInstance ¶
GetPasswordForInstance get password for instance.
func KeyRingGetPassword ¶
KeyRingGetPassword Store password from keyring.
func KeyRingSetPassword ¶
KeyRingSetPassword Store password in keyring.
func ListLogFiles ¶
ListLogFiles log files for instance
func PasswordURL ¶
PasswordURL with credentials for instance
func PidHandler ¶
PidHandler Handle pid or stop
func SyncPackages ¶
func SyncPackages(i objects.Instance, c objects.Config, additionalPackages []string, forceDownload bool) error
SyncPackages Sync the packages in the install dir
func WriteIgnoreFile ¶
WriteIgnoreFile Write ignore file to disk
Types ¶
This section is empty.