deployer

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeployJob

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

type DeployParams

type DeployParams struct {
	Environment      string
	Branch           string
	Tags             string
	DeploymentBranch string
	InitiatedBy      string
	From             string
	// contains filtered or unexported fields
}

func (*DeployParams) ParsedDeploymentBranch

func (p *DeployParams) ParsedDeploymentBranch(branch string) string

ParsedDeploymentBranch returns the default, or a user-specified branch name used in the `deployment/` repo.

func (*DeployParams) ParsedTags

func (p *DeployParams) ParsedTags() string

ParsedTags returns *default* or user-specified tags

func (*DeployParams) String

func (p *DeployParams) String() string

type Deployer

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

func (*Deployer) ChatHandler

func (dep *Deployer) ChatHandler(listen *bawt.Listener, msg *bawt.Message)

func (*Deployer) InitPlugin

func (dep *Deployer) InitPlugin(bot *bawt.Bot)

func (*Deployer) InitWebPlugin

func (dep *Deployer) InitWebPlugin(bot *bawt.Bot, privRouter *mux.Router, pubRouter *mux.Router)

InitWebPlugin is required by the WebPlugin API

type DeployerConfig

type DeployerConfig struct {
	RepositoryPath          string   `json:"repository_path" mapstructure:"repository_path"`
	AnnounceRoom            string   `json:"announce_room" mapstructure:"announce_room"`
	ProgressRoom            string   `json:"progress_room" mapstructure:"progress_room"`
	DefaultDeploymentBranch string   `json:"default_deployment_branch" mapstructure:"default_deployment_branch"`
	DefaultStreambedBranch  string   `json:"default_streambed_branch" mapstructure:"default_streambed_branch"`
	AllowedProdBranches     []string `json:"allowed_prod_branches" mapstructure:"allowed_prod_branches"`
}

Jump to

Keyboard shortcuts

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