api

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	http.Server
	// contains filtered or unexported fields
}

API is an implementation of an api.

func NewAPI

func NewAPI(log logrus.FieldLogger, port int32, host string, client kubernetes.Interface, namespace string) (*API, error)

NewAPI creates a new api.

func (*API) SetConfig

func (a *API) SetConfig(cfg *dynamic.Configuration)

SetConfig sets the current dynamic configuration.

func (*API) SetReadiness

func (a *API) SetReadiness(isReady bool)

SetReadiness sets the readiness flag in the API.

func (*API) SetTopology

func (a *API) SetTopology(topo *topology.Topology)

SetTopology sets the current topology.

Jump to

Keyboard shortcuts

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