bitbucket

package
v0.0.0-...-1d05166 Latest Latest
Warning

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

Go to latest
Published: May 2, 2018 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig(config *Config) (err error)

Types

type ApiReq

type ApiReq struct {
	payload.Push
}

type Config

type Config struct {
	// (required) regist repository for trigger, ex: myorganization/myproject
	Repository string `json:"repository,omitempty"`

	// (optional) use provider to eval template result, default: sh, ex: sh
	Provider string `json:"provider,omitempty"`

	// (optional) queue all execute tasks, default: false
	SingleWorker bool `json:"single_worker,omitempty"`

	// (required) indicate path of template file, to execute, ex: myshell.sh.tmpl
	TemplateFile string `json:"template_file,omitempty"`
	// contains filtered or unexported fields
}

func NewConfigFromData

func NewConfigFromData(data []byte) (retconf *Config, err error)

func NewConfigFromFile

func NewConfigFromFile(filename string) (retconf *Config, err error)

func (*Config) Execute

func (t *Config) Execute(w io.Writer, context interface{}) (err error)

type Configs

type Configs []Config

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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