resources

package
v3.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2026 License: AGPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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

func ValidateEndpoints(extensionServers map[string]types.Server, coreAddress string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL