plugins

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Waiting  State = "waiting"
	Running        = "running"
	Fetching       = "fetching"
	Building       = "building"
	Pushing        = "pushing"
	Complete       = "complete"
	Failed         = "failed"
	Deleting       = "deleting"
	Deleted        = "deleted"
)
View Source
const (
	File     Type = "file"
	Env           = "env"
	Build         = "build"
	Internal      = "internal"
	External      = "external"
	Office        = "office"
)
View Source
const (
	Create   Action = "create"
	Update          = "update"
	Destroy         = "destroy"
	Rollback        = "rollback"
	Status          = "status"
)

Variables

This section is empty.

Functions

func DockerBuildMock

func DockerBuildMock()

func GetRegexParams

func GetRegexParams(regEx, url string) (paramsMap map[string]string)

func GitCheckout

func GitCheckout(project Project, git Git) (*git2go.Repository, error)

func GitCheckoutCommit

func GitCheckoutCommit(hash string, project Project, git Git) (*git2go.Repository, error)

func GitCloneOptions

func GitCloneOptions(git Git) git2go.CloneOptions

func GitFetch

func GitFetch(project Project, git Git) (*git2go.Repository, error)

func GitFetchOptions

func GitFetchOptions(git Git) git2go.FetchOptions

func LoadBalancerMock

func LoadBalancerMock()

func WebsocketMsgMock

func WebsocketMsgMock()

Types

type Action

type Action string

type Arg

type Arg struct {
	Key   string `json:"key"`
	Value string `json:"value" role:"secret"`
}

type Docker

type Docker struct {
	Image    string         `json:"image"`
	Registry DockerRegistry `json:"registry"`
}

type DockerBuild

type DockerBuild struct {
	Action       Action         `json:"action"`
	State        State          `json:"state"`
	StateMessage string         `json:"stateMessage"`
	Project      Project        `json:"project"`
	Git          Git            `json:"git"`
	Feature      Feature        `json:"feature"`
	Registry     DockerRegistry `json:"registry"`
	BuildArgs    []Arg          `json:"buildArgs"`
	BuildLog     string         `json:"buildLog"`
	BuildError   string         `json:"buildError"`
	Image        string         `json:"image"`
}

type DockerDeploy

type DockerDeploy struct {
	Action             Action    `json:"action"`
	State              State     `json:"state"`
	StateMessage       string    `json:"stateMessage"`
	Project            Project   `json:"project"`
	Release            Release   `json:"release"`
	Docker             Docker    `json:"docker"`
	Services           []Service `json:"services"`
	Secrets            []Secret  `json:"secrets"`
	Timeout            int       `json:"timeout"`
	DeploymentStrategy string    `json:"deploymentStrategy"`
	Environment        string    `json:"environment"`
}

Deploy

func DockerDeployCreateMock

func DockerDeployCreateMock() DockerDeploy

type DockerRegistry

type DockerRegistry struct {
	Host     string `json:"host"`
	Username string `json:"username"`
	Password string `json:"password" role:"secret"`
	Email    string `json:"email"`
}

type Feature

type Feature struct {
	Hash       string    `json:"hash"`
	ParentHash string    `json:"parentHash"`
	User       string    `json:"user"`
	Message    string    `json:"message"`
	Created    time.Time `json:"created"`
}

type Git

type Git struct {
	Url           string `json:"gitUrl"`
	Protocol      string `json:"protocol"`
	Branch        string `json:"branch"`
	Workdir       string `json:"workdir"`
	HeadHash      string `json:"headHash,omitempty"`
	RsaPrivateKey string `json:"rsaPrivateKey" role:"secret"`
	RsaPublicKey  string `json:"rsaPublicKey" role:"secret"`
}

type GitCommit

type GitCommit struct {
	Repository string    `json:"repository"`
	User       string    `json:"user"`
	Message    string    `json:"message"`
	Ref        string    `json:"ref"`
	Hash       string    `json:"hash"`
	ParentHash string    `json:"parentHash"`
	Created    time.Time `json:"created"`
}

func GitCommitMock

func GitCommitMock() GitCommit

func GitCommits

func GitCommits(from time.Time, project Project, git Git) ([]GitCommit, error)

type GitPing

type GitPing struct {
	Repository string `json:"repository"`
	User       string `json:"user"`
}

func GitPingMock

func GitPingMock() GitPing

type GitStatus

type GitStatus struct {
	Repository string `json:"repository"`
	User       string `json:"user"`
	Hash       string `json:"hash"`
	State      string `json:"state"`
	Context    string `json:"context"`
}

func GitStatusCircleFailedMock

func GitStatusCircleFailedMock() GitStatus

func GitStatusCirclePendingMock

func GitStatusCirclePendingMock() GitStatus

func GitStatusCircleSuccessMock

func GitStatusCircleSuccessMock() GitStatus

type GitSync

type GitSync struct {
	Action       Action    `json:"action"`
	State        State     `json:"state"`
	StateMessage string    `json:"stateMessage"`
	Project      Project   `json:"project"`
	Git          Git       `json:"git"`
	From         time.Time `json:"from"`
}

type HeartBeat

type HeartBeat struct {
	Tick string `json:"tick"`
}

type Listener

type Listener struct {
	Port     int32  `json:"port"`
	Protocol string `json:"protocol"`
}

type ListenerPair

type ListenerPair struct {
	Source      Listener `json:"source"`
	Destination Listener `json:"destination"`
}

type LoadBalancer

type LoadBalancer struct {
	Action        Action         `json:"action"`
	State         State          `json:"state"`
	StateMessage  string         `json:"stateMessage"`
	Name          string         `json:"name"`
	Type          Type           `json:"type"`
	Project       Project        `json:"project"`
	Service       Service        `json:"service"`
	ListenerPairs []ListenerPair `json:"portPairs"`
	DNSName       string         `json:"dnsName"`
	Environment   string         `json:"environment"`
}

LoadBalancer

type Project

type Project struct {
	Action         Action   `json:"action,omitempty"`
	Slug           string   `json:"slug"`
	Repository     string   `json:"repository"`
	NotifyChannels []string `json:"notifyChannels,omitempty"`
}

func ProjectCreateMock

func ProjectCreateMock() Project

type Release

type Release struct {
	Id          string  `json:"id"`
	HeadFeature Feature `json:"headFeature"`
	TailFeature Feature `json:"tailFeature"`
	User        string  `json:"user"`
}

type Secret

type Secret struct {
	Key   string `json:"key"`
	Value string `json:"value" role:"secret"`
	Type  Type   `json:"type"`
}

type Service

type Service struct {
	Action       Action      `json:"action"`
	Name         string      `json:"name"`
	Command      string      `json:"command"`
	Listeners    []Listener  `json:"listeners"`
	Replicas     int64       `json:"replicas"`
	State        State       `json:"state"`
	StateMessage string      `json:"stateMessage"`
	Spec         ServiceSpec `json:"spec"`
}

type ServiceSpec

type ServiceSpec struct {
	CpuRequest                    string `json:"cpuRequest"`
	CpuLimit                      string `json:"cpuLimit"`
	MemoryRequest                 string `json:"memoryRequest"`
	MemoryLimit                   string `json:"memoryLimit"`
	TerminationGracePeriodSeconds int64  `json:"terminationGracePeriodSeconds"`
}

type State

type State string

type Type

type Type string

type WebsocketMsg

type WebsocketMsg struct {
	Channel string      `json:"channel"`
	Payload interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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