Documentation
¶
Index ¶
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
}
func (*Client) AllocStateUpdated ¶
func (c *Client) AllocStateUpdated(a *cproto.Allocation)
type Config ¶
type Config struct {
NodeID string
ControlPlane ControlPlane
Volume *HostVolume
PersistentDB *bolt.DB
}
type ControlPlane ¶
type ControlPlane interface {
// Pull pulls the configs assigned to the agent when updated
Pull(nodeId string, ws memdb.WatchSet) ([]*proto.Allocation, error)
// UpdateAlloc updates an allocation state
UpdateAlloc(alloc *proto.Allocation) error
}
type HostVolume ¶
type HostVolume struct {
Path string
}
type MetricsUpdater ¶
type MetricsUpdater interface {
UpdateMetrics(string, map[string]*dto.MetricFamily)
}
Click to show internal directories.
Click to hide internal directories.