Documentation
¶
Index ¶
- type ApplyAutoReleasePolicyRequest
- type ApplyBranchRestrictionPolicyRequest
- type ApplyBranchRestrictionPolicyResponse
- type ApplyPolicyResponse
- type AutoReleasePolicy
- type BranchRestrictionPolicy
- type Client
- type Container
- type DeletePolicyRequest
- type DeletePolicyResponse
- type DescribeArtifactResponse
- type DescribeReleaseResponse
- type Environment
- type ErrorResponse
- type FluxNotifyRequest
- type FluxNotifyResponse
- type ListPoliciesResponse
- type Metadata
- type PodNotifyRequest
- type PodNotifyResponse
- type PromoteRequest
- type PromoteResponse
- type ReleaseRequest
- type ReleaseResponse
- type RollbackRequest
- type RollbackResponse
- type StatusRequest
- type StatusResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyBranchRestrictionPolicyRequest ¶ added in v0.4.0
type ApplyBranchRestrictionPolicyRequest struct { Service string `json:"service,omitempty"` Environment string `json:"environment,omitempty"` BranchRegex string `json:"branchRegex,omitempty"` CommitterName string `json:"committerName,omitempty"` CommitterEmail string `json:"committerEmail,omitempty"` }
type ApplyBranchRestrictionPolicyResponse ¶ added in v0.4.0
type ApplyPolicyResponse ¶
type AutoReleasePolicy ¶
type BranchRestrictionPolicy ¶ added in v0.4.0
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 DescribeArtifactResponse ¶ added in v0.0.33
type DescribeReleaseResponse ¶ added in v0.0.33
type DescribeReleaseResponse struct { Service string `json:"service,omitempty"` Environment string `json:"environment,omitempty"` Artifact artifact.Spec `json:"artifact,omitempty"` ReleasedAt time.Time `json:"releasedAt,omitempty"` ReleasedByEmail string `json:"releasedByEmail,omitempty"` ReleasedByName string `json:"releasedByName,omitempty"` }
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"` ID string `json:"-"` }
func (*ErrorResponse) Error ¶
func (e *ErrorResponse) Error() string
type FluxNotifyRequest ¶ added in v0.3.0
type FluxNotifyResponse ¶ added in v0.3.0
type FluxNotifyResponse struct { }
type ListPoliciesResponse ¶
type ListPoliciesResponse struct { Service string `json:"service,omitempty"` AutoReleases []AutoReleasePolicy `json:"autoReleases,omitempty"` BranchRestrictions []BranchRestrictionPolicy `json:"branchRestrictions,omitempty"` }
type PodNotifyRequest ¶
type PodNotifyRequest struct { Namespace string `json:"namespace"` Name string `json:"name"` State string `json:"state"` Reason string `json:"reason"` Message string `json:"message"` Containers []Container `json:"containers"` ArtifactID string `json:"artifactId"` Logs string `json:"logs"` Environment string `json:"environment"` CommitterEmail string `json:"committerEmail"` AuthorEmail string `json:"authorEmail"` }
type PodNotifyResponse ¶ added in v0.3.0
type PodNotifyResponse struct { }
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 RollbackRequest ¶ added in v0.0.10
type RollbackResponse ¶ added in v0.0.10
type StatusRequest ¶
type StatusRequest struct {
Service string `json:"service,omitempty"`
}
type StatusResponse ¶
type StatusResponse struct { DefaultNamespaces bool `json:"defaultNamespaces,omitempty"` 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.