added snippet upload
This commit is contained in:
parent
349afa60e1
commit
861ca4edf7
7 changed files with 281 additions and 81 deletions
10
client.go
10
client.go
|
|
@ -46,10 +46,11 @@ type Client struct {
|
|||
debugWriter io.Writer
|
||||
insecure bool
|
||||
|
||||
Server ServerClient
|
||||
Task TaskClient
|
||||
Pool PoolClient
|
||||
Node NodeClient
|
||||
Server ServerClient
|
||||
Task TaskClient
|
||||
Pool PoolClient
|
||||
Node NodeClient
|
||||
Snippet SnippetClient
|
||||
}
|
||||
|
||||
type session struct {
|
||||
|
|
@ -133,6 +134,7 @@ func NewClient(options ...ClientOption) *Client {
|
|||
client.Task = TaskClient{client: client}
|
||||
client.Pool = PoolClient{client: client}
|
||||
client.Node = NodeClient{client: client}
|
||||
client.Snippet = SnippetClient{client: client}
|
||||
|
||||
return client
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue