{"modulePath":"github.com/threefoldtech/zos","version":"v0.5.5","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package client\n\n## Types\n\n```go\ntype Client struct {\n\t// contains filtered or unexported fields\n}\n```\nClient struct\n\n```go\nfunc NewClient(id uint32, seed string) (*Client, error)\n```\nNewClient creates a new instance of client\n\n```go\nfunc (c *Client) AddressOf(nodeID string) (net.IP, error)\n```\nAddressOf return the yggdrasil node address given it's node id\n\n```go\nfunc (c *Client) Node(nodeID string) (*NodeClient, error)\n```\nNode gets a client to node given its id\n\n```go\nfunc (c *Client) NodeWithIP(ip net.IP) *NodeClient\n```\nNodeWithIP return a client to node given node IP\n\n```go\ntype NodeClient struct {\n\t// contains filtered or unexported fields\n}\n```\nNodeClient is a client of the node\n\n```go\nfunc (n *NodeClient) Counters() (total gridtypes.Capacity, used gridtypes.Capacity, err error)\n```\n\n```go\nfunc (n *NodeClient) Delete(twin, deployment uint32) (err error)\n```\nDelete deletes a workload by id\n\n```go\nfunc (n *NodeClient) Deploy(dl *gridtypes.Deployment, update bool) error\n```\nDeploy sends the workload for node to deploy. On success means the node accepted the workload (it passed validation), doesn't mean it has been deployed. the user then can pull on the workload status until it passes (or fail)\n\n```go\nfunc (n *NodeClient) Get(twin, deployment uint32) (dl gridtypes.Deployment, err error)\n```\nGet get a workload by id\n\n","path":"github.com/threefoldtech/zos/client/_http","name":"client","synopsis":"","isRedistributable":true}
