Documentation
¶
Index ¶
- func BuildCatalogRequest(ctx Context, catalogID string, action policy.Action) policy.Request
- func BuildRequest(ctx Context, serverName string, server catalog.Server, tool string, ...) policy.Request
- func BuildWorkingSetRequest(ctx Context, workingSetID string, action policy.Action) policy.Request
- func InferServerEndpoint(server catalog.Server) string
- func InferServerSource(serverSourceType string, server catalog.Server) string
- func InferServerSourceType(server catalog.Server) string
- func InferServerTransportType(server catalog.Server) string
- type Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCatalogRequest ¶
BuildCatalogRequest creates a policy request for a catalog target.
func BuildRequest ¶
func BuildRequest( ctx Context, serverName string, server catalog.Server, tool string, action policy.Action, ) policy.Request
BuildRequest creates a policy request from context, server, and action data.
func BuildWorkingSetRequest ¶
BuildWorkingSetRequest creates a policy request for a working set target.
func InferServerEndpoint ¶
InferServerEndpoint returns the best endpoint for a remote server.
func InferServerSource ¶
InferServerSource determines the policy server source identifier.
func InferServerSourceType ¶
InferServerSourceType determines the policy server source type.
func InferServerTransportType ¶
InferServerTransportType determines the policy transport type. The policy vocabulary uses stdio, sse, and streamable.
Types ¶
type Context ¶
type Context struct {
// Catalog is the catalog identifier for the server.
Catalog string
// WorkingSet is the working set (profile) identifier for the request.
WorkingSet string
// ServerSourceTypeOverride forces the server source type if non-empty.
ServerSourceTypeOverride string
}
Context carries policy request context values independent of server details.
Click to show internal directories.
Click to hide internal directories.