Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## v0.2 (2025-01-12)

- Added support to endpoint groups `endpoints` (incomplete), `gitops`, `ldap`, `motd`, `registries`
- Added newly added endpoint groups to autoload

## v0.1 (2024-12-15)

Expand Down
24 changes: 24 additions & 0 deletions src/Portainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ class Portainer {
private $customTemplates;
private $docker;
private $endpoints;
private $gitops;
private $ldap;
private $motd;
private $registries;

public function __construct(string $envPath, string $envName , string $username = null, string $password = null, string $host = null){
$this->loader();
Expand Down Expand Up @@ -249,4 +253,24 @@ public function endpoints(){
if(!$this->endpoints) $this->endpoints = new Endpoints($this);
return $this->endpoints;
}

public function gitops(){
if(!$this->gitops) $this->gitops = new Gitops($this);
return $this->gitops;
}

public function ldap(){
if(!$this->ldap) $this->ldap = new LDAP($this);
return $this->ldap;
}

public function motd(){
if(!$this->motd) $this->motd = new Motd($this);
return $this->motd;
}

public function registries(){
if(!$this->registries) $this->registries = new Registries($this);
return $this->registries;
}
}