activities

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2017 License: MIT Imports: 8 Imported by: 0

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

type Client added in v1.1.5

type Client struct {
	*apihelper.Client
}

Client for the services

func New added in v1.1.5

func New(wectx config.Context) *Client

New Client

func (*Client) List added in v1.1.5

func (c *Client) List(ctx context.Context, projectID string, f Filter) (activities Activities, err error)

List activities of a given project

type Filter

type Filter struct {
	Commit   string `json:"commit,omitempty"`
	GroupUID string `json:"groupUid,omitempty"`
	Limit    int    `json:"limit,omitempty"`
	Type     string `json:"type,omitempty"`
}

Filter for list

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL