Documentation
¶
Index ¶
- func Fatal(doing string, err error)
- func Sayf(message string, args ...interface{})
- type CheckCommand
- type CheckRequest
- type DeploymentOutCommand
- type GitHub
- type GitHubClient
- func (g *GitHubClient) CreateDeployment(request *github.DeploymentRequest) (*github.Deployment, error)
- func (g *GitHubClient) CreateDeploymentStatus(ID int64, request *github.DeploymentStatusRequest) (*github.DeploymentStatus, error)
- func (g *GitHubClient) GetDeployment(ID int64) (*github.Deployment, error)
- func (g *GitHubClient) ListDeploymentStatuses(ID int64) ([]*github.DeploymentStatus, error)
- func (g *GitHubClient) ListDeployments() ([]*github.Deployment, error)
- type InCommand
- type InRequest
- type InResponse
- type MetadataPair
- type OutCommand
- type OutParams
- type OutRequest
- type OutResponse
- type Source
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CheckCommand ¶
type CheckCommand struct {
// contains filtered or unexported fields
}
func NewCheckCommand ¶
func NewCheckCommand(github GitHub, writer io.Writer) *CheckCommand
func (*CheckCommand) Run ¶
func (c *CheckCommand) Run(request CheckRequest) ([]Version, error)
type CheckRequest ¶
func NewCheckRequest ¶
func NewCheckRequest() CheckRequest
type DeploymentOutCommand ¶
type DeploymentOutCommand struct {
// contains filtered or unexported fields
}
func NewDeploymentOutCommand ¶
func NewDeploymentOutCommand(github GitHub, writer io.Writer) *DeploymentOutCommand
func (*DeploymentOutCommand) Run ¶
func (c *DeploymentOutCommand) Run(sourceDir string, request OutRequest) (OutResponse, error)
type GitHub ¶
type GitHub interface { ListDeployments() ([]*github.Deployment, error) ListDeploymentStatuses(ID int64) ([]*github.DeploymentStatus, error) GetDeployment(ID int64) (*github.Deployment, error) CreateDeployment(request *github.DeploymentRequest) (*github.Deployment, error) CreateDeploymentStatus(ID int64, request *github.DeploymentStatusRequest) (*github.DeploymentStatus, error) }
type GitHubClient ¶
type GitHubClient struct {
// contains filtered or unexported fields
}
func NewGitHubClient ¶
func NewGitHubClient(source Source) (*GitHubClient, error)
func (*GitHubClient) CreateDeployment ¶
func (g *GitHubClient) CreateDeployment(request *github.DeploymentRequest) (*github.Deployment, error)
func (*GitHubClient) CreateDeploymentStatus ¶
func (g *GitHubClient) CreateDeploymentStatus(ID int64, request *github.DeploymentStatusRequest) (*github.DeploymentStatus, error)
func (*GitHubClient) GetDeployment ¶
func (g *GitHubClient) GetDeployment(ID int64) (*github.Deployment, error)
func (*GitHubClient) ListDeploymentStatuses ¶
func (g *GitHubClient) ListDeploymentStatuses(ID int64) ([]*github.DeploymentStatus, error)
func (*GitHubClient) ListDeployments ¶
func (g *GitHubClient) ListDeployments() ([]*github.Deployment, error)
type InRequest ¶
func NewInRequest ¶
func NewInRequest() InRequest
type InResponse ¶
type InResponse struct { Version Version `json:"version"` Metadata []MetadataPair `json:"metadata"` }
type MetadataPair ¶
type OutCommand ¶
type OutCommand struct {
// contains filtered or unexported fields
}
func NewOutCommand ¶
func NewOutCommand(github GitHub, writer io.Writer) *OutCommand
func (*OutCommand) Run ¶
func (c *OutCommand) Run(sourceDir string, request OutRequest) (OutResponse, error)
type OutParams ¶
type OutParams struct { Type *string `json:"type"` ID *string Ref *string Environment *string Task *string State *string Description *string AutoMerge *bool Payload *map[string]interface{} PayloadPath *string `json:"payload_path"` RawID json.RawMessage `json:"id"` RawState json.RawMessage `json:"state"` RawRef json.RawMessage `json:"ref"` RawTask json.RawMessage `json:"task"` RawEnvironment json.RawMessage `json:"environment"` RawDescription json.RawMessage `json:"description"` RawAutoMerge json.RawMessage `json:"auto_merge"` RawPayload json.RawMessage `json:"payload"` }
func (*OutParams) UnmarshalJSON ¶
type OutRequest ¶
func NewOutRequest ¶
func NewOutRequest() OutRequest
type OutResponse ¶
type OutResponse struct { Version Version `json:"version"` Metadata []MetadataPair `json:"metadata"` }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.