mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-08 06:09:17 +00:00
add service inspect command, introduce squirrel for sql query building
This commit is contained in:
1 parent
21d55dc69a
commit
daada3bbe9
12 files changed
+205
-65
No files matched your search
@@ -9,6 +9,8 @@ import (
|
||||
"uncloud/internal/machine/docker"
|
||||
)
|
||||
|
||||
var NotFound = errors.New("not found")
|
||||
|
||||
// Client is a client for the machine API.
|
||||
type Client struct {
|
||||
connector Connector
|
||||
@@ -46,6 +48,6 @@ func New(ctx context.Context, connector Connector) (*Client, error) {
|
||||
return c, nil
|
||||
}
|
||||
|
||||
func (c *Client) Close() error {
|
||||
return errors.Join(c.conn.Close(), c.connector.Close())
|
||||
func (cli *Client) Close() error {
|
||||
return errors.Join(cli.conn.Close(), cli.connector.Close())
|
||||
}
|
||||
Reference in new issue
Block a user