Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
// Close the grpc connection.
Close() error
// QueryMachines retrieves the machines tracked by the Quilt daemon.
QueryMachines() ([]db.Machine, error)
// QueryContainers retrieves the containers tracked by the Quilt daemon.
QueryContainers() ([]db.Container, error)
// QueryEtcd retrieves the etcd information tracked by the Quilt daemon.
QueryEtcd() ([]db.Etcd, error)
// QueryConnections retrieves the connection information tracked by the
// Quilt daemon.
QueryConnections() ([]db.Connection, error)
// QueryLabels retrieves the label information tracked by the Quilt daemon.
QueryLabels() ([]db.Label, error)
// QueryClusters retrieves cluster information tracked by the Quilt daemon.
QueryClusters() ([]db.Cluster, error)
// Deploy makes a request to the Quilt daemon to deploy the given deployment.
Deploy(deployment string) error
// Host returns the server address the Client is connected to.
Host() string
}
Client provides methods to interact with the Quilt daemon.
type Getter ¶
type Getter interface {
// Client obtains a client connected to the given address.
Client(string) (Client, error)
// ContainerClient obtains a client connected to the host running the given
// container.
ContainerClient(Client, string) (Client, error)
// LeaderClient obtains a client connected to cluster leader.
LeaderClient(Client) (Client, error)
}
Getter provides methods for obtaining Quilt clients connected to various servers.
Click to show internal directories.
Click to hide internal directories.