bootstrap

package
v1.25.16-rc1.0...-0ce6ab5 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

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

func ObjToMap

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

func ReadFromDisk

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

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

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

type PathsDataformat map[string]File

Jump to

Keyboard shortcuts

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