defaults

package
v0.71.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2018 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package defaults implements the Pipe interface providing default values for missing configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Defaulter added in v0.61.2

type Defaulter interface {
	fmt.Stringer

	// Default sets the configuration defaults
	Default(ctx *context.Context) error
}

Defaulter can be implemented by a Piper to set default values for its configuration.

type Pipe

type Pipe struct{}

Pipe that sets the defaults

func (Pipe) Run

func (Pipe) Run(ctx *context.Context) error

Run the pipe

func (Pipe) String added in v0.37.1

func (Pipe) String() string

Jump to

Keyboard shortcuts

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