Pacm module

PackageManager::Options

Startup configuration for repository endpoints, credentials, and directories.

Options

#include <icy/pacm/packagemanager.h>

struct Options

Defined in src/pacm/include/icy/pacm/packagemanager.h:66

Public Attributes

ReturnNameDescription
std::stringendpointThe HTTP server endpoint.
std::stringindexURIThe HTTP server URI for querying packages JSON.
std::stringhttpUsernameUsername for HTTP basic auth.
std::stringhttpPasswordPAssword for HTTP basic auth.
std::stringhttpOAuthTokenWill be used instead of HTTP basic if provided.
std::stringtempDirDirectory where package files will be downloaded and extracted.
std::stringdataDirDirectory where package manifests will be kept.
std::stringinstallDirDirectory where packages will be installed.
std::stringplatformPlatform (win32, linux, mac)
std::stringchecksumAlgorithmChecksum algorithm (MDS/SHA1)
boolclearFailedCacheThis flag tells the package manager weather or not to clear the package cache if installation fails.

endpoint

std::string endpoint

Defined in src/pacm/include/icy/pacm/packagemanager.h:68

The HTTP server endpoint.


indexURI

std::string indexURI

Defined in src/pacm/include/icy/pacm/packagemanager.h:69

The HTTP server URI for querying packages JSON.


httpUsername

std::string httpUsername

Defined in src/pacm/include/icy/pacm/packagemanager.h:70

Username for HTTP basic auth.


httpPassword

std::string httpPassword

Defined in src/pacm/include/icy/pacm/packagemanager.h:71

PAssword for HTTP basic auth.


httpOAuthToken

std::string httpOAuthToken

Defined in src/pacm/include/icy/pacm/packagemanager.h:72

Will be used instead of HTTP basic if provided.


tempDir

std::string tempDir

Defined in src/pacm/include/icy/pacm/packagemanager.h:74

Directory where package files will be downloaded and extracted.


dataDir

std::string dataDir

Defined in src/pacm/include/icy/pacm/packagemanager.h:75

Directory where package manifests will be kept.


installDir

std::string installDir

Defined in src/pacm/include/icy/pacm/packagemanager.h:76

Directory where packages will be installed.


platform

std::string platform

Defined in src/pacm/include/icy/pacm/packagemanager.h:78

Platform (win32, linux, mac)


checksumAlgorithm

std::string checksumAlgorithm

Defined in src/pacm/include/icy/pacm/packagemanager.h:79

Checksum algorithm (MDS/SHA1)


clearFailedCache

bool clearFailedCache

Defined in src/pacm/include/icy/pacm/packagemanager.h:81

This flag tells the package manager weather or not to clear the package cache if installation fails.

Public Methods

ReturnNameDescription
Options inline

Options

inline

inline Options(const std::string & root = getCwd())

Defined in src/pacm/include/icy/pacm/packagemanager.h:84