util

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JSONCt = "application/json"
	YAMLCt = "text/yaml"
	NONECt = ""
)

Content types for requests

Variables

View Source
var DirektivURL string

DirektivURL stroes the endpoint for direktiv

Functions

func DoRequest added in v0.2.1

func DoRequest(method, path, ct string, body *string) ([]byte, error)

DoRequest executes request against ingress

func GenerateCmd added in v0.2.1

func GenerateCmd(use, short, long string, fn func(cmd *cobra.Command, args []string), c cobra.PositionalArgs) *cobra.Command

GenerateCmd is a basic cobra function

Types

type CLILogWriter added in v0.2.1

type CLILogWriter struct {
}

CLILogWriter for using fatalf without date

func (CLILogWriter) Write added in v0.2.1

func (writer CLILogWriter) Write(bytes []byte) (int, error)

Jump to

Keyboard shortcuts

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