edgeletapi

package
v1.1.0-rc.8 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: EPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EdgeletAPI

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

EdgeletAPI is the main Edgelet API module

func GetInstance

func GetInstance() *EdgeletAPI

GetInstance returns the singleton EdgeletAPI instance

func (*EdgeletAPI) GetModuleIndex

func (l *EdgeletAPI) GetModuleIndex() int

GetModuleIndex returns the module index

func (*EdgeletAPI) GetName

func (l *EdgeletAPI) GetName() string

GetName returns the module name

func (*EdgeletAPI) NotifyMicroserviceConfigChanged

func (l *EdgeletAPI) NotifyMicroserviceConfigChanged(changedUUIDs []string)

NotifyMicroserviceConfigChanged pushes control signals to workloads whose config changed.

func (*EdgeletAPI) NotifyResourceLimitsChanged

func (l *EdgeletAPI) NotifyResourceLimitsChanged()

NotifyResourceLimitsChanged pushes resource-limit signals to all connected workloads.

func (*EdgeletAPI) Start

func (l *EdgeletAPI) Start() error

Start starts the Edgelet API server

func (*EdgeletAPI) Stop

func (l *EdgeletAPI) Stop() error

Stop stops the Edgelet API server

func (*EdgeletAPI) Update

func (l *EdgeletAPI) Update()

Update is called when agent configuration changes (hot reload).

type Router

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

Router handles HTTP routing

func NewRouter

func NewRouter() *Router

NewRouter creates a new router

func (*Router) ServeHTTP

func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request)

ServeHTTP implements http.Handler

type Server

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

Server represents the HTTP/WebSocket server

func NewServer

func NewServer(port int) *Server

NewServer creates a new Edgelet API server

func (*Server) Ready

func (s *Server) Ready() <-chan struct{}

Ready returns a channel closed once all API listeners are bound.

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

Shutdown gracefully shuts down the server

func (*Server) Start

func (s *Server) Start() error

Start starts the HTTP server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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