util

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2017 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

View Source
const (
	JSON format = "json"
	YAML format = "yaml"
)

Variables

This section is empty.

Functions

func ValidateSections added in v0.3.3

func ValidateSections(unmarshal func(interface{}) error, i interface{}, whitelist map[string]bool) error

func WhitelistAttrs added in v0.3.3

func WhitelistAttrs(i interface{}, format format) (map[string]bool, error)

Types

type Command

type Command struct {
	Cmd            *exec.Cmd
	Stdout, Stderr bytes.Buffer
	Err            error
	Status         int
	// contains filtered or unexported fields
}

func NewCommand

func NewCommand(name string, arg ...string) *Command

func (*Command) Run

func (c *Command) Run() error

type Config added in v0.0.18

type Config struct {
	IgnoreList        []string
	Timeout           int
	AllowInsecure     bool
	NoFollowRedirects bool
	Server            string
}

Jump to

Keyboard shortcuts

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