client

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: Apache-2.0 Imports: 23 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 Client

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

func New

func New(config *config.Config) (*Client, error)

func (*Client) Start

func (c *Client) Start(ctx context.Context) error

type ClientDaemon

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

func NewClientDaemon

func NewClientDaemon(config *ControlPlaneConfig) (*ClientDaemon, error)

func (*ClientDaemon) Start

func (c *ClientDaemon) Start(ctx context.Context) error

func (*ClientDaemon) Stop

func (c *ClientDaemon) Stop(ctx context.Context) error

type ControlPlaneConfig

type ControlPlaneConfig 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
}

ControlPlaneConfig contains configuration for the control plane server

type ControlPlaneServer

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

func NewControlPlaneServer

func NewControlPlaneServer(config *ControlPlaneConfig, datasiteMgr *datasitemgr.DatasiteManager) (*ControlPlaneServer, error)

func (*ControlPlaneServer) Start

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

func (*ControlPlaneServer) Stop

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

type RouteConfig

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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