driver

package
v0.0.0-...-51958b5 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

func NewCommand

func NewCommand(reader io.Reader, writer io.Writer, script string, dir string) *Command

func (*Command) BufferRemaining

func (c *Command) BufferRemaining() int

func (*Command) DecodeFromReader

func (c *Command) DecodeFromReader(obj interface{}) error

func (*Command) EncodeFromWriter

func (c *Command) EncodeFromWriter(obj interface{}) error

func (*Command) Marshal

func (c *Command) Marshal(obj interface{}) ([]byte, error)

func (*Command) PackageName

func (c *Command) PackageName(sourceFile string) (string, error)

PackageName determines the package name from sourceFile if it is within $GOPATH

func (*Command) ProcessAndMove

func (c *Command) ProcessAndMove(src string, dest string)

Template reads a go template and writes it to dist given data.

func (*Command) ProcessString

func (c *Command) ProcessString(src string) (string, error)

StrTemplate reads a go template and writes it to dist given data.

func (*Command) Prompt

func (c *Command) Prompt(prompt string) string

Prompt prompts user for input with default value.

func (*Command) Read

func (c *Command) Read(b []byte) error

func (*Command) ReadToWriter

func (c *Command) ReadToWriter(r io.Reader)

func (*Command) ReadeBufferSize

func (c *Command) ReadeBufferSize() int

func (*Command) ResetReader

func (c *Command) ResetReader()

func (*Command) ResetWriter

func (c *Command) ResetWriter()

func (*Command) Runnable

func (c *Command) Runnable() bool

func (*Command) ScanAndReplace

func (c *Command) ScanAndReplace(replacements ...string)

func (*Command) ScanAndReplaceBytes

func (c *Command) ScanAndReplaceBytes(replacements ...string)

func (*Command) ScanFor

func (c *Command) ScanFor(s string)

func (*Command) ScanFrom

func (c *Command) ScanFrom(reader io.Reader)

func (*Command) SyncEnv

func (c *Command) SyncEnv()

func (*Command) Unmarshal

func (c *Command) Unmarshal(obj interface{}, data []byte) error

func (*Command) UnmarshalFromConfig

func (c *Command) UnmarshalFromConfig(obj interface{}) error

func (*Command) Walk

func (c *Command) Walk(path string, fileFunc FileFunc) error

func (*Command) Write

func (c *Command) Write(b []byte) error

func (*Command) WriteBufferSize

func (c *Command) WriteBufferSize() int

func (*Command) WriteString

func (c *Command) WriteString(s string) error

type FileFunc

type FileFunc func(info os.FileInfo)

type Function

type Function struct {
	HandlerFunc HandlerFunc
}

func NewFunction

func NewFunction(handler HandlerFunc) Function

func (*Function) Handle

func (f *Function) Handle(s *grpc.Server, mux *runtime.ServeMux) http.HandlerFunc

type FunctionHandler

type FunctionHandler func(command *Command) http.HandlerFunc

type HandlerFunc

type HandlerFunc func(grpcServer *grpc.Server, mux *runtime.ServeMux) http.HandlerFunc

func NewHandlerFunc

func NewHandlerFunc(grpcServer *grpc.Server, mux *runtime.ServeMux) HandlerFunc

type Splitter

type Splitter func(data []byte, atEOF bool) (advance int, token []byte, err error)

func NewSplitter

func NewSplitter(base int, bitsize int) Splitter

Jump to

Keyboard shortcuts

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