resources

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: AGPL-3.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InternalEndpoints = rest.Resources{
	PathPrefix: internalTypes.InternalEndpoint,
	Endpoints: []rest.Endpoint{
		clusterInternalCmd,
		clusterMemberInternalCmd,
		databaseCmd,
		sqlCmd,
		heartbeatCmd,
		trustCmd,
		trustEntryCmd,
		hooksCmd,
	},
}

InternalEndpoints are the /core/internal API endpoints available at the listen address.

View Source
var PublicEndpoints = rest.Resources{
	PathPrefix: internalTypes.PublicEndpoint,
	Endpoints: []rest.Endpoint{
		api10Cmd,
		clusterCertificatesCmd,
		clusterCmd,
		clusterMemberCmd,
		daemonCmd,
		tokenCmd,
		readyCmd,
	},
}

PublicEndpoints are the /core/1.0 API endpoints available at the listen address.

View Source
var UnixEndpoints = rest.Resources{
	PathPrefix: internalTypes.ControlEndpoint,
	Endpoints: []rest.Endpoint{
		controlCmd,
		shutdownCmd,
		tokensCmd,
	},
}

UnixEndpoints are the endpoints available over the unix socket.

Functions

func ValidateEndpoints

func ValidateEndpoints(extensionServers map[string]rest.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, its resources must not conflict with any other core API server, and 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