routes

package
v0.0.0-...-f496b69 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Filter = server.Filters{
	server.Filter{HandlerFunc: filters.Logger},
}

Functions

func NewAdmiralAPIServer

func NewAdmiralAPIServer(opts *RouteOpts) server.Routes

func NewMetricsServer

func NewMetricsServer() server.Routes

func Noop

func Noop(w http.ResponseWriter, r *http.Request)

Types

type IdentityServiceEntry

type IdentityServiceEntry struct {
	Cname        string   `json:"Cname,omitempty"`
	ClusterNames []string `json:"Clusters,omitempty"`
}

type RouteOpts

type RouteOpts struct {
	KubeconfigPath string
	RemoteRegistry *clusters.RemoteRegistry
}

func (*RouteOpts) GetClusters

func (opts *RouteOpts) GetClusters(w http.ResponseWriter, r *http.Request)

func (*RouteOpts) GetServiceEntriesByCluster

func (opts *RouteOpts) GetServiceEntriesByCluster(w http.ResponseWriter, r *http.Request)

func (*RouteOpts) GetServiceEntriesByIdentity

func (opts *RouteOpts) GetServiceEntriesByIdentity(w http.ResponseWriter, r *http.Request)

func (*RouteOpts) ReturnSuccessGET

func (opts *RouteOpts) ReturnSuccessGET(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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