Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var InternalEndpoints = types.Resources{ PathPrefix: types.InternalEndpoint, Endpoints: []types.Endpoint{ clusterInternalCmd, clusterMemberInternalCmd, databaseCmd, heartbeatCmd, hooksCmd, trustCmd, trustEntryCmd, }, }
InternalEndpoints are the /core/internal API endpoints available at the listen address. Those can be changed anytime and should not be called directly.
var PublicEndpoints = types.Resources{ PathPrefix: types.PublicEndpoint, Endpoints: []types.Endpoint{ clusterCmd, clusterMemberCmd, clusterCertificatesCmd, daemonServersCmd, memberCmd, readyCmd, }, }
PublicEndpoints are the /core/1.0 API endpoints available at the listen address. Client functions can be used to call these endpoints or they can be called directly.
var UnixEndpoints = types.Resources{ PathPrefix: types.ControlEndpoint, Endpoints: []types.Endpoint{ controlCmd, shutdownCmd, sqlCmd, tokenCmd, tokensCmd, }, }
UnixEndpoints are the endpoints available over the unix socket. These endpoints are only ever required locally.
Functions ¶
func ValidateEndpoints ¶
ValidateEndpoints checks if any endpoints defined in extensionServers conflict with other endpoints. An invalid server is defined as one of the following: - The PathPrefix+Path of an endpoint conflicts with another endpoint in the same server. - The address of the server clashes with another server. - The server does not have defined resources. - If the Server is a core API server:
- The PathPrefix+Path of an endpoint must not begin with `core`.
- Its resources must not conflict with any other core API server.
- It must not have a defined address or certificate.
Types ¶
This section is empty.