UnitInterface
interface UnitInterface
Methods
string
getSocket()
Return Unit socket
string
getAddress()
Return Unit address
getStatistics()
Return Usage Statistics from Unit
array
getCertificates()
Return array of certificates uploaded on Unit
CertificateInterface|null
getCertificate(string $certificateName)
Return Certificate object
bool
uploadCertificate(string $path, string $certificateName)
Upload certificate to Unit server
getConfig()
Return full config uploaded on Nginx Unit
bool
uploadConfigFromFile(string $path)
Upload full file config
bool
removeCertificate(string $certificateName)
Remove certificate on Unit server
bool
removeConfig()
Remove all data from config
Details
at line 15
string
getSocket()
Return Unit socket
at line 22
string
getAddress()
Return Unit address
at line 30
StatisticsInterface
getStatistics()
Return Usage Statistics from Unit
at line 37
array
getCertificates()
Return array of certificates uploaded on Unit
at line 45
CertificateInterface|null
getCertificate(string $certificateName)
Return Certificate object
at line 55
bool
uploadCertificate(string $path, string $certificateName)
Upload certificate to Unit server
at line 62
ConfigInterface
getConfig()
Return full config uploaded on Nginx Unit
at line 70
bool
uploadConfigFromFile(string $path)
Upload full file config
at line 79
bool
removeCertificate(string $certificateName)
Remove certificate on Unit server
at line 86
bool
removeConfig()
Remove all data from config