apiserver

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	URLGetCA                      = "/api/ca-cert"
	URLSignCERT                   = "/api/sign-cert"
	URLUpdateEndpoints            = "/api/endpoints"
	URLUpdateCluster              = "/api/cluster"
	URLGetEndpointsAndCommunities = "/api/endpoints-and-communities"
	URLGetCIDRs                   = "/api/cidrs"

	HeaderClusterName   = "X-FabEdge-Cluster"
	HeaderAuthorization = "Authorization"
)

Variables

This section is empty.

Functions

func New

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

Types

type Config

type Config struct {
	Addr        string
	PublicKey   *rsa.PublicKey
	CertManager certutil.Manager
	Client      client.Client
	Log         logr.Logger
	Store       storepkg.Interface
	CIDRMap     *types.ClusterCIDRsMap
}

type EndpointsAndCommunity

type EndpointsAndCommunity struct {
	Communities map[string][]string `json:"communities,omitempty"`
	Endpoints   []apis.Endpoint     `json:"endpoints,omitempty"`
}

Jump to

Keyboard shortcuts

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