provider

package
v0.0.0-...-ee8e30b Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlwaysOverwriteProvider

func AlwaysOverwriteProvider(rootDir, relFile string) bool

func DefaultOverwriteProvider

func DefaultOverwriteProvider(rootDir, relFile string) bool

Types

type BasicAuthProvider

type BasicAuthProvider func() (string, string)

type DataProvider

type DataProvider func(templateRoot string) (interface{}, error)

DataProvider is a function that returns the data to be applied to a template or an error

type DefaultBasicAuthProvider

type DefaultBasicAuthProvider struct {
	BeforePrompt func()
}

func (*DefaultBasicAuthProvider) ProvideAuth

func (bap *DefaultBasicAuthProvider) ProvideAuth() (string, string)

type OverwriteProvider

type OverwriteProvider func(rootDir, relFile string) bool

OverwriteProvider is a function that returns whether or not the provided file should be overwritten

Jump to

Keyboard shortcuts

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