Documentation
¶
Overview ¶
Package controlclient talks to the coordinator's control service.
Index ¶
- Variables
- type Client
- func (c *Client) Register(ctx context.Context, req *controlv1.RegisterRequest) (*controlv1.RegisterResponse, error)
- func (c *Client) ReportStatus(ctx context.Context, token string, peers []*controlv1.PeerPath) error
- func (c *Client) UpdateEndpoints(ctx context.Context, token string, endpoints []string) error
- func (c *Client) Watch(ctx context.Context, token string, msg *controlv1.WatchNetmapRequest, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnauthenticated = errors.New("unauthenticated")
ErrUnauthenticated means the coordinator rejected the auth key or token.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a control-plane client.
func (*Client) Register ¶
func (c *Client) Register(ctx context.Context, req *controlv1.RegisterRequest) (*controlv1.RegisterResponse, error)
Register enrolls this node.
func (*Client) ReportStatus ¶
ReportStatus reports how this node reaches its peers.
func (*Client) UpdateEndpoints ¶
UpdateEndpoints replaces the endpoints the coordinator advertises for this node.
Click to show internal directories.
Click to hide internal directories.