Documentation ¶
Index ¶
- type ApplyAutoReleasePolicyRequest
- type ApplyPolicyResponse
- type AutoReleasePolicy
- type Client
- type Container
- type DeletePolicyRequest
- type DeletePolicyResponse
- type Environment
- type ErrorResponse
- type ListPoliciesResponse
- type PodNotifyRequest
- type PromoteRequest
- type PromoteResponse
- type ReleaseRequest
- type ReleaseResponse
- type StatusRequest
- type StatusResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyPolicyResponse ¶
type AutoReleasePolicy ¶
type Client ¶
func (*Client) Do ¶
Do sends an HTTP request defined by the provided method and path. The base URL is prefixed on the provided path.
Request and response bodies are marshalled and unmarshalled as JSON and if the server returns a status code above 399 the response is parsed as an ErrorResponse object and returned as the error.
type DeletePolicyRequest ¶
type DeletePolicyResponse ¶
type Environment ¶
type Environment struct { Tag string `json:"tag,omitempty"` Committer string `json:"committer,omitempty"` Author string `json:"author,omitempty"` Message string `json:"message,omitempty"` Date int64 `json:"date,omitempty"` BuildUrl string `json:"buildUrl,omitempty"` HighVulnerabilities int64 `json:"highVulnerabilities,omitempty"` MediumVulnerabilities int64 `json:"mediumVulnerabilities,omitempty"` LowVulnerabilities int64 `json:"lowVulnerabilities,omitempty"` }
type ErrorResponse ¶
type ErrorResponse struct { Status int `json:"status,omitempty"` Message string `json:"message,omitempty"` }
func (*ErrorResponse) Error ¶
func (e *ErrorResponse) Error() string
type ListPoliciesResponse ¶
type ListPoliciesResponse struct { Service string `json:"service,omitempty"` AutoReleases []AutoReleasePolicy `json:"autoReleases,omitempty"` }
type PodNotifyRequest ¶
type PromoteRequest ¶
type PromoteResponse ¶
type ReleaseRequest ¶
type ReleaseRequest struct { Service string `json:"service,omitempty"` Environment string `json:"environment,omitempty"` Branch string `json:"branch,omitempty"` ArtifactID string `json:"artifactId,omitempty"` CommitterName string `json:"committerName,omitempty"` CommitterEmail string `json:"committerEmail,omitempty"` }
type ReleaseResponse ¶
type StatusRequest ¶
type StatusRequest struct {
Service string `json:"service,omitempty"`
}
type StatusResponse ¶
type StatusResponse struct { Dev *Environment `json:"dev,omitempty"` Staging *Environment `json:"staging,omitempty"` Prod *Environment `json:"prod,omitempty"` }
Click to show internal directories.
Click to hide internal directories.