project

package
v0.0.0-...-dfa43ee Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(ownerID int32, name, url, githubSecret string) error

func Delete

func Delete(projectID int32) error

func PossibleOwners

func PossibleOwners() ([]user, error)

func Update

func Update(projectID, ownerID int32, name, url, githubSecret string) error

Types

type ListItem

type ListItem struct {
	ProjectID      int32      `db:"project_id"`
	ProjectName    string     `db:"project_name"`
	ProjectToken   string     `db:"project_token"`
	ProjectOwnerID int32      `db:"project_owner_id"`
	UserEmail      string     `db:"user_email"`
	UserName       string     `db:"user_name"`
	Status         string     `db:"status"`
	CommitSHA      string     `db:"commit_sha"`
	LastBuildID    int32      `db:"last_build_id"`
	StartedAt      *time.Time `db:"started_at"`
	FinishedAt     *time.Time `db:"finished_at"`
}

func List

func List() ([]ListItem, error)

type Project

type Project struct {
	ID             int32     `db:"project_id"       json:"project_id"`
	Name           string    `db:"project_name"     json:"project_name"`
	Token          string    `db:"project_token"    json:"project_token"`
	URL            string    `db:"repository_url"   json:"repository_url"`
	OwnerID        int32     `db:"project_owner_id" json:"project_owner_id"`
	PossibleOwners users     `db:"possible_owners"  json:"possible_owners"`
	GitHubSecret   string    `db:"github_secret"    json:"github_secret"`
	CreatedAt      time.Time `db:"created_at"       json:"created_at"`
	UpdatedAt      time.Time `db:"updated_at"       json:"updated_at"`
}

func Get

func Get(projectID int32) (Project, error)

Jump to

Keyboard shortcuts

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