api

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(client Client) http.Handler

Types

type Client

func NewClient

func NewClient(kubeconfigPath string) (Client, error)

type EndpointsGetter

type EndpointsGetter interface {
	GetEndpoints(ctx context.Context, name, namespace string) (*v1.Endpoints, error)
	ListEndpoints(ctx context.Context, namespace string) (*v1.EndpointsList, error)
}

type NamespaceGetter

type NamespaceGetter interface {
	ListNamespaces(ctx context.Context) (*v1.NamespaceList, error)
}

type NodeGetter

type NodeGetter interface {
	ListNodes(ctx context.Context) (*v1.NodeList, error)
}

type ServiceGetter

type ServiceGetter interface {
	GetServices(ctx context.Context, name, namespace string) (*v1.Service, error)
	ListServices(ctx context.Context, namespace string) (*v1.ServiceList, error)
}

Jump to

Keyboard shortcuts

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