LXD PHP Client Documentation v0.0.1
Methods
  • __construct(array $config, variable $curl)  :  void
    Class construct
  • all(string $name)  :  array
    List logs for a container.
  • read(string $name, string $log)  :  string
    Get the contents of a particular log file.
  • remove(string $name, string $log)  :  array
    Remove a particular log file.
  • delete(string $name, string $log)  :  array
    Delete a particular log file - alias of remove.
Methods Details
  • public function __construct(array $config, variable $curl)
    Class construct
  • public function all(string $name)
    List logs for a container.
    $lxd->containers->logs->all('conainer-name');
  • public function read(string $name, string $log)
    Get the contents of a particular log file.
    $lxd->containers->logs->read('conainer-name', 'log-name.log');
  • public function remove(string $name, string $log)
    Remove a particular log file.
    $lxd->containers->logs->remove('conainer-name', 'log-name.log');
  • public function delete(string $name, string $log)
    Delete a particular log file - alias of remove.
    $lxd->containers->logs->delete('conainer-name', 'log-name.log');