defaults

package
v0.85.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 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

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

func (Pipe) String() string

Jump to

Keyboard shortcuts

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