{"modulePath":"github.com/checkr/codeflow","version":"v0.9.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package plugins\n\n## Constants\n\n```go\nconst (\n\tWaiting  State = \"waiting\"\n\tRunning        = \"running\"\n\tFetching       = \"fetching\"\n\tBuilding       = \"building\"\n\tPushing        = \"pushing\"\n\tComplete       = \"complete\"\n\tFailed         = \"failed\"\n\tDeleting       = \"deleting\"\n\tDeleted        = \"deleted\"\n)\n```\n\n```go\nconst (\n\tFile     Type = \"file\"\n\tEnv           = \"env\"\n\tBuild         = \"build\"\n\tInternal      = \"internal\"\n\tExternal      = \"external\"\n\tOffice        = \"office\"\n)\n```\n\n```go\nconst (\n\tCreate   Action = \"create\"\n\tUpdate          = \"update\"\n\tDestroy         = \"destroy\"\n\tRollback        = \"rollback\"\n\tStatus          = \"status\"\n)\n```\n\n## Functions\n\n```go\nfunc DockerBuildMock()\n```\n\n```go\nfunc GetRegexParams(regEx, url string) (paramsMap map[string]string)\n```\n\n```go\nfunc GitCheckout(project Project, git Git) (*git2go.Repository, error)\n```\n\n```go\nfunc GitCheckoutCommit(hash string, project Project, git Git) (*git2go.Repository, error)\n```\n\n```go\nfunc GitCloneOptions(git Git) git2go.CloneOptions\n```\n\n```go\nfunc GitFetch(project Project, git Git) (*git2go.Repository, error)\n```\n\n```go\nfunc GitFetchOptions(git Git) git2go.FetchOptions\n```\n\n```go\nfunc LoadBalancerMock()\n```\n\n```go\nfunc WebsocketMsgMock()\n```\n\n## Types\n\n```go\ntype Action string\n```\n\n```go\ntype Arg struct {\n\tKey   string `json:\"key\"`\n\tValue string `json:\"value\" role:\"secret\"`\n}\n```\n\n```go\ntype Docker struct {\n\tImage    string         `json:\"image\"`\n\tRegistry DockerRegistry `json:\"registry\"`\n}\n```\n\n```go\ntype DockerBuild struct {\n\tAction       Action         `json:\"action\"`\n\tState        State          `json:\"state\"`\n\tStateMessage string         `json:\"stateMessage\"`\n\tProject      Project        `json:\"project\"`\n\tGit          Git            `json:\"git\"`\n\tFeature      Feature        `json:\"feature\"`\n\tRegistry     DockerRegistry `json:\"registry\"`\n\tBuildArgs    []Arg          `json:\"buildArgs\"`\n\tBuildLog     string         `json:\"buildLog\"`\n\tBuildError   string         `json:\"buildError\"`\n\tImage        string         `json:\"image\"`\n}\n```\n\n```go\ntype DockerDeploy struct {\n\tAction             Action    `json:\"action\"`\n\tState              State     `json:\"state\"`\n\tStateMessage       string    `json:\"stateMessage\"`\n\tProject            Project   `json:\"project\"`\n\tRelease            Release   `json:\"release\"`\n\tDocker             Docker    `json:\"docker\"`\n\tServices           []Service `json:\"services\"`\n\tSecrets            []Secret  `json:\"secrets\"`\n\tTimeout            int       `json:\"timeout\"`\n\tDeploymentStrategy string    `json:\"deploymentStrategy\"`\n\tEnvironment        string    `json:\"environment\"`\n}\n```\nDeploy\n\n```go\nfunc DockerDeployCreateMock() DockerDeploy\n```\n\n```go\ntype DockerRegistry struct {\n\tHost     string `json:\"host\"`\n\tUsername string `json:\"username\"`\n\tPassword string `json:\"password\" role:\"secret\"`\n\tEmail    string `json:\"email\"`\n}\n```\n\n```go\ntype Feature struct {\n\tHash       string    `json:\"hash\"`\n\tParentHash string    `json:\"parentHash\"`\n\tUser       string    `json:\"user\"`\n\tMessage    string    `json:\"message\"`\n\tCreated    time.Time `json:\"created\"`\n}\n```\n\n```go\ntype Git struct {\n\tUrl           string `json:\"gitUrl\"`\n\tProtocol      string `json:\"protocol\"`\n\tBranch        string `json:\"branch\"`\n\tWorkdir       string `json:\"workdir\"`\n\tHeadHash      string `json:\"headHash,omitempty\"`\n\tRsaPrivateKey string `json:\"rsaPrivateKey\" role:\"secret\"`\n\tRsaPublicKey  string `json:\"rsaPublicKey\" role:\"secret\"`\n}\n```\n\n```go\ntype GitCommit struct {\n\tRepository string    `json:\"repository\"`\n\tUser       string    `json:\"user\"`\n\tMessage    string    `json:\"message\"`\n\tRef        string    `json:\"ref\"`\n\tHash       string    `json:\"hash\"`\n\tParentHash string    `json:\"parentHash\"`\n\tCreated    time.Time `json:\"created\"`\n}\n```\n\n```go\nfunc GitCommitMock() GitCommit\n```\n\n```go\nfunc GitCommits(from time.Time, project Project, git Git) ([]GitCommit, error)\n```\n\n```go\ntype GitPing struct {\n\tRepository string `json:\"repository\"`\n\tUser       string `json:\"user\"`\n}\n```\n\n```go\nfunc GitPingMock() GitPing\n```\n\n```go\ntype GitStatus struct {\n\tRepository string `json:\"repository\"`\n\tUser       string `json:\"user\"`\n\tHash       string `json:\"hash\"`\n\tState      string `json:\"state\"`\n\tContext    string `json:\"context\"`\n}\n```\n\n```go\nfunc GitStatusCircleFailedMock() GitStatus\n```\n\n```go\nfunc GitStatusCirclePendingMock() GitStatus\n```\n\n```go\nfunc GitStatusCircleSuccessMock() GitStatus\n```\n\n```go\ntype GitSync struct {\n\tAction       Action    `json:\"action\"`\n\tState        State     `json:\"state\"`\n\tStateMessage string    `json:\"stateMessage\"`\n\tProject      Project   `json:\"project\"`\n\tGit          Git       `json:\"git\"`\n\tFrom         time.Time `json:\"from\"`\n}\n```\n\n```go\ntype HeartBeat struct {\n\tTick string `json:\"tick\"`\n}\n```\n\n```go\ntype Listener struct {\n\tPort     int32  `json:\"port\"`\n\tProtocol string `json:\"protocol\"`\n}\n```\n\n```go\ntype ListenerPair struct {\n\tSource      Listener `json:\"source\"`\n\tDestination Listener `json:\"destination\"`\n}\n```\n\n```go\ntype LoadBalancer struct {\n\tAction        Action         `json:\"action\"`\n\tState         State          `json:\"state\"`\n\tStateMessage  string         `json:\"stateMessage\"`\n\tName          string         `json:\"name\"`\n\tType          Type           `json:\"type\"`\n\tProject       Project        `json:\"project\"`\n\tService       Service        `json:\"service\"`\n\tListenerPairs []ListenerPair `json:\"portPairs\"`\n\tDNSName       string         `json:\"dnsName\"`\n\tEnvironment   string         `json:\"environment\"`\n}\n```\nLoadBalancer\n\n```go\ntype Project struct {\n\tAction         Action   `json:\"action,omitempty\"`\n\tSlug           string   `json:\"slug\"`\n\tRepository     string   `json:\"repository\"`\n\tNotifyChannels []string `json:\"notifyChannels,omitempty\"`\n}\n```\n\n```go\nfunc ProjectCreateMock() Project\n```\n\n```go\ntype Release struct {\n\tId          string  `json:\"id\"`\n\tHeadFeature Feature `json:\"headFeature\"`\n\tTailFeature Feature `json:\"tailFeature\"`\n\tUser        string  `json:\"user\"`\n}\n```\n\n```go\ntype Secret struct {\n\tKey   string `json:\"key\"`\n\tValue string `json:\"value\" role:\"secret\"`\n\tType  Type   `json:\"type\"`\n}\n```\n\n```go\ntype Service struct {\n\tAction       Action      `json:\"action\"`\n\tName         string      `json:\"name\"`\n\tCommand      string      `json:\"command\"`\n\tListeners    []Listener  `json:\"listeners\"`\n\tReplicas     int64       `json:\"replicas\"`\n\tState        State       `json:\"state\"`\n\tStateMessage string      `json:\"stateMessage\"`\n\tSpec         ServiceSpec `json:\"spec\"`\n}\n```\n\n```go\ntype ServiceSpec struct {\n\tCpuRequest                    string `json:\"cpuRequest\"`\n\tCpuLimit                      string `json:\"cpuLimit\"`\n\tMemoryRequest                 string `json:\"memoryRequest\"`\n\tMemoryLimit                   string `json:\"memoryLimit\"`\n\tTerminationGracePeriodSeconds int64  `json:\"terminationGracePeriodSeconds\"`\n}\n```\n\n```go\ntype State string\n```\n\n```go\ntype Type string\n```\n\n```go\ntype WebsocketMsg struct {\n\tChannel string      `json:\"channel\"`\n\tPayload interface{} `json:\"data\"`\n}\n```\n\n","path":"github.com/checkr/codeflow/server/plugins","name":"plugins","synopsis":"","isRedistributable":true}
