project

package
v0.1.1-0...-fa1080e Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateProject

func CreateProject(projectName string, r io.Reader) error

Create a new project on gemnasium. The first arg is used as the project name. If no arg is provided, the user will be prompted to enter a project name. http://docs.gemnasium.apiary.io/#post-%2Fprojects

func GetProject

func GetProject(slugs ...string) (*api.Project, error)

Return a new Project with Slug set. The slugs in param are tried in order.

func ListProjects

func ListProjects(privateProjectsOnly bool) (err error)

List projects on gemnasium TODO: Add a flag to display unmonitored projects too

func ProjectConfigure

func ProjectConfigure(p *api.Project, slug string, r io.Reader, w io.Writer) error

Create a project config gile (.gemnasium.yml)

func ProjectDependencies

func ProjectDependencies(p *api.Project) (deps []api.Dependency, err error)

func ProjectDependencyFiles

func ProjectDependencyFiles(p *api.Project) (dfiles []api.DependencyFile, err error)

Fetch and return the dependency files ([]DependecyFile) for the current project

func ProjectFetch

func ProjectFetch(p *api.Project) (err error)

func ProjectSync

func ProjectSync(p *api.Project) (err error)

Start project synchronization http://docs.gemnasium.apiary.io/#post-%2Fprojects%2F%7Bslug%7D%2Fsync

func ProjectUpdate

func ProjectUpdate(p *api.Project, name, desc *string, monitored *bool) error

Update project details http://docs.gemnasium.apiary.io/#patch-%2Fprojects%2F%7Bslug%7D

Types

This section is empty.

Jump to

Keyboard shortcuts

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