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
}
Client for accessing a remote peer.
func (*Client) Authorize ¶
func (c *Client) Authorize(req *api.AuthorizationRequest) (*RemoteServerAuthorizationResponse, error)
Authorize a request for accessing a peer exported service, yielding an access token.
func (*Client) GetHeartbeat ¶
GetHeartbeat get a heartbeat from other peers.
type RemoteServerAuthorizationResponse ¶
type RemoteServerAuthorizationResponse struct { // ServiceExists is true if the requested service exists. ServiceExists bool // Allowed is true if the request is allowed. Allowed bool // AccessToken is a token that allows accessing the requested service. AccessToken string }
RemoteServerAuthorizationResponse represents an authorization response received from a remote controlplane server.
Click to show internal directories.
Click to hide internal directories.