api

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2020 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply added in v0.3.0

func Apply(timeout time.Duration, apiAddress string) error

Apply executes an API call to the pupernetes API to force an apply of the "manifest-api" directory

func NewAPI

func NewAPI(sigChan chan os.Signal, resetNamespaceFn func(namespaces *corev1.NamespaceList) error, isReadyFn func() bool, apply chan struct{}) *http.Server

NewAPI returns the API HTTP server

func ResetNamespace added in v0.3.0

func ResetNamespace(timeout time.Duration, apiAddress, namespace string) error

ResetNamespace executes an API call to the pupernetes API to reset the namespace in parameter. The namespace can be like ns/default or just default

Types

type HandlerAPI

type HandlerAPI struct {
	// contains filtered or unexported fields
}

HandlerAPI handles the API calls

Jump to

Keyboard shortcuts

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