Documentation
¶
Index ¶
Constants ¶
View Source
const ( // BuildFailed state BuildFailed = "BUILD_FAILED" // BuildStarted state BuildStarted = "BUILD_STARTED" // BuildPushed state BuildPushed = "BUILD_PUSHED" // BuildSucceeded state BuildSucceeded = "BUILD_SUCCEEDED" // CollaboratorDeleted state CollaboratorDeleted = "COLLABORATOR_DELETED" // CollaboratorInvitationAccepted state CollaboratorInvitationAccepted = "COLLABORATOR_INVITATION_ACCEPTED" // CollaboratorInvitationDeleted state CollaboratorInvitationDeleted = "COLLABORATOR_INVITATION_DELETED" // CollaboratorInvitationSent state CollaboratorInvitationSent = "COLLABORATOR_INVITATION_SENT" // CollaboratorLeft state CollaboratorLeft = "COLLABORATOR_LEFT" // CustomDomainUpdated state CustomDomainUpdated = "CUSTOM_DOMAIN_UPDATED" // DeployFailed state DeployFailed = "DEPLOY_FAILED" // DeployCanceled state DeployCanceled = "DEPLOY_CANCELED" // DeployTimeout state DeployTimeout = "DEPLOY_TIMEOUT" // DeployRollback state DeployRollback = "DEPLOY_ROLLBACK" // DeployPending state DeployPending = "DEPLOY_PENDING" // DeployCreated state DeployCreated = "DEPLOY_CREATED" // DeployStarted state DeployStarted = "DEPLOY_STARTED" // DeploySucceeded state DeploySucceeded = "DEPLOY_SUCCEEDED" // GithubProviderConnected state GithubProviderConnected = "GITHUB_PROVIDER_CONNECTED" // GithubProviderDisconnected state GithubProviderDisconnected = "GITHUB_PROVIDER_DISCONNECTED" // GithubRepositoryConnected state GithubRepositoryConnected = "GITHUB_REPOSITORY_CONNECTED" // GithubRepositoryDisconnected state GithubRepositoryDisconnected = "GITHUB_REPOSITORY_DISCONNECTED" // HomeServiceUpdated state HomeServiceUpdated = "HOME_SERVICE_UPDATED" // ProjectCreated state ProjectCreated = "PROJECT_CREATED" // ProjectRestarted state ProjectRestarted = "PROJECT_RESTARTED" // ProjectTransferred state ProjectTransferred = "PROJECT_TRANSFERRED" // ServiceCreated state ServiceCreated = "SERVICE_CREATED" // ServiceDeleted state ServiceDeleted = "SERVICE_DELETED" // ServiceEnvironmentVariablesUpdated state ServiceEnvironmentVariablesUpdated = "SERVICE_ENVIRONMENT_VARIABLES_UPDATED" // ServiceRestarted state ServiceRestarted = "SERVICE_RESTARTED" )
Variables ¶
This section is empty.
Functions ¶
func PrettyPrintList ¶
func PrettyPrintList(activities []Activity)
PrettyPrintList prints the activities in a formatted way
Types ¶
type Activities ¶
type Activities []Activity
Activities slice
func (Activities) Reverse ¶
func (as Activities) Reverse() (ras []Activity)
Reverse activities slice
type Activity ¶
type Activity struct {
ID string `json:"id"`
CreatedAt int64 `json:"createdAt"`
Commit string `json:"commit"`
ProjectID string `json:"projectId"`
ProjectUID string `json:"projectUid"`
Type string `json:"type"`
Metadata map[string]string `json:"metadata"`
}
Activity record
Click to show internal directories.
Click to hide internal directories.