Documentation
¶
Index ¶
- type Client
- func (c *Client) Clean()
- func (c *Client) Create(ctx context.Context, node *proto.Node) (string, error)
- func (c *Client) CreateResource(node *proto.Node) (*proto.Node, error)
- func (c *Client) DeleteResource(node *proto.Node) (*proto.Node, error)
- func (c *Client) Destroy(indx int)
- func (c *Client) Exec(handler string, path string, args ...string) error
- func (c *Client) GetIP(id string) string
- func (c *Client) PullImage(ctx context.Context, image string) error
- func (c *Client) Remove(id string) error
- func (c *Client) Setup() error
- func (c *Client) Start() error
- func (c *Client) WatchUpdates() chan *operator.NodeUpdate
- type TestServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a sugarcoat version of the docker client
func NewDockerClient ¶ added in v0.1.1
NewClient creates a new docker Client
func (*Client) CreateResource ¶ added in v0.1.1
func (*Client) DeleteResource ¶ added in v0.1.1
func (*Client) WatchUpdates ¶ added in v0.1.2
func (c *Client) WatchUpdates() chan *operator.NodeUpdate
type TestServer ¶ added in v0.1.1
type TestServer struct {
// contains filtered or unexported fields
}
func TestOperator ¶ added in v0.1.1
func TestOperator(t *testing.T, factory operator.HandlerFactory) *TestServer
func (*TestServer) Close ¶ added in v0.1.1
func (t *TestServer) Close()
func (*TestServer) Destroy ¶ added in v0.1.2
func (t *TestServer) Destroy(i int)
func (*TestServer) WaitForTask ¶ added in v0.1.1
func (t *TestServer) WaitForTask(id string)
Click to show internal directories.
Click to hide internal directories.