Documentation
¶
Overview ¶
Package v1 contains the V1 API for ToolHive.
Index ¶
- func ClientRouter(manager client.Manager, workloadManager workloads.Manager, ...) http.Handler
- func DiscoveryRouter() http.Handler
- func GroupsRouter(groupManager groups.Manager, workloadManager workloads.Manager, ...) http.Handler
- func HealthcheckRouter(containerRuntime rt.Runtime) http.Handler
- func RegistryRouter() http.Handler
- func SecretsRouter() http.Handler
- func VersionRouter() http.Handler
- func WorkloadRouter(workloadManager workloads.Manager, containerRuntime runtime.Runtime, ...) http.Handler
- type ClientRoutes
- type DiscoveryRoutes
- type GroupsRoutes
- type RegistryRoutes
- type RegistryType
- type SecretsRoutes
- type UpdateRegistryRequest
- type UpdateRegistryResponse
- type WorkloadRoutes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientRouter ¶ added in v0.0.43
func ClientRouter( manager client.Manager, workloadManager workloads.Manager, groupManager groups.Manager, ) http.Handler
ClientRouter creates a new router for the client API.
func DiscoveryRouter ¶ added in v0.0.41
DiscoveryRouter creates a new router for the client discovery API.
func GroupsRouter ¶ added in v0.2.3
func GroupsRouter(groupManager groups.Manager, workloadManager workloads.Manager, clientManager client.Manager) http.Handler
GroupsRouter creates a new GroupsRoutes instance.
func HealthcheckRouter ¶
HealthcheckRouter sets up healthcheck route.
func RegistryRouter ¶ added in v0.0.40
RegistryRouter creates a new router for the registry API.
func SecretsRouter ¶ added in v0.0.48
SecretsRouter creates a new router for the secrets API.
Types ¶
type ClientRoutes ¶ added in v0.0.43
type ClientRoutes struct {
// contains filtered or unexported fields
}
ClientRoutes defines the routes for the client API.
type DiscoveryRoutes ¶ added in v0.0.41
type DiscoveryRoutes struct{}
DiscoveryRoutes defines the routes for the client discovery API.
type GroupsRoutes ¶ added in v0.2.3
type GroupsRoutes struct {
// contains filtered or unexported fields
}
GroupsRoutes defines the routes for group management.
type RegistryRoutes ¶ added in v0.0.40
type RegistryRoutes struct{}
RegistryRoutes defines the routes for the registry API.
type RegistryType ¶ added in v0.2.5
type RegistryType string
RegistryType represents the type of registry
const ( // RegistryTypeFile represents a local file registry RegistryTypeFile RegistryType = "file" // RegistryTypeURL represents a remote URL registry RegistryTypeURL RegistryType = "url" // RegistryTypeDefault represents a built-in registry RegistryTypeDefault RegistryType = "default" )
type SecretsRoutes ¶ added in v0.0.48
type SecretsRoutes struct{}
SecretsRoutes defines the routes for the secrets API.
type UpdateRegistryRequest ¶ added in v0.2.4
type UpdateRegistryRequest struct { // Registry URL (for remote registries) URL *string `json:"url,omitempty"` // Local registry file path LocalPath *string `json:"local_path,omitempty"` // Allow private IP addresses for registry URL AllowPrivateIP *bool `json:"allow_private_ip,omitempty"` }
UpdateRegistryRequest represents the request for updating a registry
@Description Request containing registry configuration updates
type UpdateRegistryResponse ¶ added in v0.2.4
type UpdateRegistryResponse struct { // Status message Message string `json:"message"` // Registry type after update Type string `json:"type"` }
UpdateRegistryResponse represents the response for updating a registry
@Description Response containing update result
type WorkloadRoutes ¶ added in v0.0.43
type WorkloadRoutes struct {
// contains filtered or unexported fields
}
WorkloadRoutes defines the routes for workload management.