{"modulePath":"github.com/ReasonSoftware/action-github-deployment","version":"v1.1.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package app\n\n## Variables\n\n```go\nvar DeploymentStates []string = []string{\n\t\"error\",\n\t\"failure\",\n\t\"inactive\",\n\t\"in_progress\",\n\t\"queued\",\n\t\"pending\",\n\t\"success\",\n}\n```\nDeploymentStates contains valid deployment states\n\n## Functions\n\n```go\nfunc CreateDeployment(cli Client, env, ref string) (int64, error)\n```\nCreateDeployment creates new deployment in a provided environment.\n\n```go\nfunc IsStateValid(state string) bool\n```\nIsStateValid is an input validator for CreateDeploymentStatus api call\n\n```go\nfunc UpdateStatus(cli Client, id int64, state string) error\n```\nUpdateStatus set a status of a desired deployment to a specified value.\n\n## Types\n\n```go\ntype Client interface {\n\tCreateDeployment(context.Context, string, string, *github.DeploymentRequest) (*github.Deployment, *github.Response, error)\n\tCreateDeploymentStatus(context.Context, string, string, int64, *github.DeploymentStatusRequest) (*github.DeploymentStatus, *github.Response, error)\n}\n```\nClient is Repositories service of a GitHub Client\n\n","path":"github.com/ReasonSoftware/action-github-deployment/internal/app","name":"app","synopsis":"","isRedistributable":true}
