controlplane

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexHandler

func IndexHandler(c *gin.Context)

func SetupRoutes

func SetupRoutes(datasiteMgr *datasitemgr.DatasiteManager, routeConfig *RouteConfig) http.Handler

Types

type CPServer

type CPServer struct {
	// contains filtered or unexported fields
}

func NewControlPlaneServer

func NewControlPlaneServer(config *CPServerConfig, datasiteMgr *datasitemgr.DatasiteManager) (*CPServer, error)

func (*CPServer) Start

func (s *CPServer) Start(ctx context.Context) error

func (*CPServer) Stop

func (s *CPServer) Stop(ctx context.Context) error

type CPServerConfig

type CPServerConfig struct {
	Addr          string // Address to bind the control plane server
	AuthToken     string // Access token for the control plane server
	EnableSwagger bool   // EnableSwagger enables Swagger documentation
}

CPServerConfig contains configuration for the control plane server

type RouteConfig

type RouteConfig struct {
	Auth            middleware.TokenAuthConfig
	ControlPlaneURL string
	Swagger         bool
}

Jump to

Keyboard shortcuts

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