project

package
v0.0.0-...-72f410e Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DelProject

func DelProject(projectId uint64) (<-chan bool, <-chan error)

func ModProject

func ModProject(name, branch, contexts string, userId, projectId uint64) (<-chan bool, <-chan error)

func NewProject

func NewProject(name, branch, contexts string, userId uint64) (<-chan ProjectInfo, <-chan error)

Types

type File

type File struct {
	Content       string `json:"content"`
	Path          string `json:"path"`
	Branch        string `json:"branch"`
	CommitMessage string `json:"commit_message"`
}

type Project

type Project struct {
	Files       []File `json:"files"`
	NamespaceId uint64 `json:"namespace_id"`
	Id          uint64 `json:"id"`
	Visibility  string `json:"visibility"`
	Name        string `json:"name"`
}

type ProjectInfo

type ProjectInfo struct {
	Id   uint64 `json:"id"`
	Name string `json:"name"`
	Url  string `json:"url"`
}

Jump to

Keyboard shortcuts

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