apiserver

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderClusterName = "X-FabEdge-Cluster"

	PathHeartbeat      = "/api/heartbeat"
	PathGlobalServices = "/api/global-services"
)

Variables

This section is empty.

Functions

func New

func New(cfg Config) (*http.Server, error)

Types

type Config

type Config struct {
	Address               string
	Log                   logr.Logger
	Client                client.Client
	ClusterStore          *types.ClusterStore
	GlobalServiceManager  types.GlobalServiceManager
	ClusterExpireDuration time.Duration
	RequestTimeout        time.Duration
}

type Server

type Server struct {
	Config
}

func (*Server) GetAllGlobalServices

func (s *Server) GetAllGlobalServices(w http.ResponseWriter, r *http.Request)

func (*Server) Heartbeat

func (s *Server) Heartbeat(w http.ResponseWriter, r *http.Request)

func (*Server) UploadGlobalService

func (s *Server) UploadGlobalService(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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