util

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTestCertificate

func GenerateTestCertificate(path string, certFileName string, keyFileName string) error

GenerateTestCertificate generates fake certificates and stores them at the path specified. It accepts 3 arguments path, certFileName and keyFileName "path" is the directory path at which the directory is to be created, "certFileName" & "keyFileName" refers to the name of the file to be created without the extension

func GenerateTestYaml

func GenerateTestYaml(test interface{}, path, filename string) error

GenerateTestYaml is a function is used to create a temporary file to be used for testing It accepts 3 arguments:"test" is the interface used to generate the YAML, "path" is the directory path at which the directory is to be created, "filename" is the name of the file to be created without the ".yaml" extension

func LoadConfig

func LoadConfig(confLocation ...string) error

LoadConfig is function to Load Configurations from a specified location. If no location is specified it loads the config from the default location

Types

This section is empty.

Jump to

Keyboard shortcuts

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