go_concourse_helper

package module
v0.0.0-...-e64471d Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2017 License: MIT Imports: 6 Imported by: 0

README

go-concourse-helper Build Status

This is a set of useful tools to create a concourse resource.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckCommand

type CheckCommand struct {
	*Command
}

func NewCheckCommand

func NewCheckCommand() *CheckCommand

func NewCheckCommandWithMessager

func NewCheckCommandWithMessager(messager *Messager) *CheckCommand

func (CheckCommand) Params

func (c CheckCommand) Params(v interface{}) error

func (CheckCommand) Send

func (c CheckCommand) Send(versions []Version)

type Command

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

func NewCommand

func NewCommand(messager *Messager) *Command

func (Command) Messager

func (c Command) Messager() *Messager

func (Command) Params

func (c Command) Params(v interface{}) error

func (Command) Send

func (c Command) Send(metadata []Metadata)

func (Command) Source

func (c Command) Source(v interface{}) error

func (Command) Version

func (c Command) Version() Version

type InCommand

type InCommand struct {
	*Command
}

func NewInCommand

func NewInCommand() *InCommand

func NewInCommandWithMessager

func NewInCommandWithMessager(messager *Messager) *InCommand

func (InCommand) DestinationFolder

func (c InCommand) DestinationFolder() string

type Messager

type Messager struct {
	LogWriter      io.Writer
	ResponseWriter io.Writer
	RequestReader  io.Reader
	ExitOnFatal    bool
	Directory      string
}

func NewMessager

func NewMessager() *Messager

func (*Messager) Fatal

func (rl *Messager) Fatal(message string)

func (*Messager) FatalIf

func (rl *Messager) FatalIf(doing string, err error)

func (*Messager) GetLogWriter

func (rl *Messager) GetLogWriter() io.Writer

func (*Messager) GetResponseWriter

func (rl *Messager) GetResponseWriter() io.Writer

func (*Messager) Log

func (rl *Messager) Log(message string, args ...interface{})

func (*Messager) Logln

func (rl *Messager) Logln(message string, args ...interface{})

func (*Messager) RetrieveJsonRequest

func (rl *Messager) RetrieveJsonRequest(v interface{}) error

func (*Messager) SendJsonResponse

func (rl *Messager) SendJsonResponse(v interface{})

type Metadata

type Metadata struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type OutCommand

type OutCommand struct {
	*Command
}

func NewOutCommand

func NewOutCommand() *OutCommand

func NewOutCommandWithMessager

func NewOutCommandWithMessager(messager *Messager) *OutCommand

func (*OutCommand) SourceFolder

func (c *OutCommand) SourceFolder() string

type Request

type Request struct {
	Source  interface{} `json:"source"`
	Version Version     `json:"version"`
	Params  interface{} `json:"params"`
}

type Response

type Response struct {
	Metadata []Metadata `json:"metadata"`
	Version  Version    `json:"version"`
}

type Version

type Version struct {
	BuildNumber string `json:"build"`
}

Jump to

Keyboard shortcuts

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