bootstrap

package
v1.21.9 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(bootstrap *config.ControlRuntimeBootstrap) http.Handler

func ObjToMap added in v1.21.9

func ObjToMap(obj interface{}) (map[string]string, error)

func ReadFromDisk added in v1.21.9

func ReadFromDisk(w io.Writer, bootstrap *config.ControlRuntimeBootstrap) error

ReadFromDisk reads the bootstrap data from the files on disk and writes their content in JSON form to the given io.Writer.

func WriteToDiskFromStorage added in v1.21.9

func WriteToDiskFromStorage(files PathsDataformat, bootstrap *config.ControlRuntimeBootstrap) error

WriteToDiskFromStorage writes the contents of the given reader to the paths derived from within the ControlRuntimeBootstrap.

Types

type File added in v1.21.9

type File struct {
	Timestamp time.Time
	Content   []byte
}

File is a representation of a certificate or key file within the bootstrap context that contains the contents of the file as well as a timestamp from when the file was last modified.

type PathsDataformat added in v1.21.9

type PathsDataformat map[string]File

Jump to

Keyboard shortcuts

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