Skip to content

Commit 434df5a

Browse files
committed
Add IncusOS kernel info endpoint
1 parent d5da209 commit 434df5a

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
namespace Opensaucesystems\Lxd\Endpoint\IncusOS\System;
4+
5+
use Opensaucesystems\Lxd\Endpoint\AbstractEndpoint;
6+
7+
class Kernel extends AbstractEndpoint
8+
{
9+
10+
protected function getEndpoint()
11+
{
12+
return '/os/1.0/system/kernel';
13+
}
14+
15+
public function info()
16+
{
17+
return $this->get($this->getEndpoint());
18+
}
19+
}

0 commit comments

Comments
 (0)