repo

package
v0.0.0-...-e4f5413 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2016 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotReady     = errors.New("Repository not ready")
	ErrFileNotFound = git.ErrFileNotFound
)
View Source
var (
	ErrExists      = errors.New("existing id")
	ErrNotFound    = errors.New("not found")
	ErrHasChildren = errors.New("element has children")
)

Functions

This section is empty.

Types

type Repo

type Repo struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New(owner, name string, conf *oauth2.Config) (*Repo, error)

func (*Repo) Categories

func (r *Repo) Categories() []string

func (*Repo) Category

func (r *Repo) Category(cat string) *component.Category

func (*Repo) ComponentHash

func (r *Repo) ComponentHash(c component.Component) (string, error)

func (*Repo) Create

func (r *Repo) Create(c component.Component, u *models.User) error

func (*Repo) Delete

func (r *Repo) Delete(c component.Component, u *models.User) error

func (*Repo) Get

func (r *Repo) Get(c component.Component) (string, error)

func (*Repo) Handler

func (r *Repo) Handler() RepoHandler

func (*Repo) MarshalJSON

func (r *Repo) MarshalJSON() ([]byte, error)

func (*Repo) StartSync

func (r *Repo) StartSync(interval time.Duration, trigger <-chan struct{})

func (*Repo) StopSync

func (r *Repo) StopSync()

func (*Repo) String

func (r *Repo) String() string

func (*Repo) Update

func (r *Repo) Update(c component.Component, u *models.User) error

type RepoHandler

type RepoHandler struct {
	// contains filtered or unexported fields
}

func (*RepoHandler) CanDelete

func (r *RepoHandler) CanDelete(c *gin.Context)

func (*RepoHandler) Create

func (r *RepoHandler) Create(c *gin.Context)

func (*RepoHandler) Delete

func (r *RepoHandler) Delete(c *gin.Context)

func (*RepoHandler) Info

func (r *RepoHandler) Info(c *gin.Context)

func (*RepoHandler) IsNew

func (r *RepoHandler) IsNew(c *gin.Context)

func (*RepoHandler) ParseCat

func (r *RepoHandler) ParseCat(c *gin.Context)

func (*RepoHandler) ParseCheck

func (r *RepoHandler) ParseCheck(c *gin.Context)

func (*RepoHandler) ParseItem

func (r *RepoHandler) ParseItem(c *gin.Context)

func (*RepoHandler) ParseSub

func (r *RepoHandler) ParseSub(c *gin.Context)

func (*RepoHandler) Root

func (r *RepoHandler) Root(c *gin.Context)

func (*RepoHandler) SetCat

func (r *RepoHandler) SetCat(c *gin.Context)

SetCat loads the category using the url parameter

func (*RepoHandler) SetCheck

func (r *RepoHandler) SetCheck(c *gin.Context)

func (*RepoHandler) SetItem

func (r *RepoHandler) SetItem(c *gin.Context)

func (*RepoHandler) SetSub

func (r *RepoHandler) SetSub(c *gin.Context)

func (*RepoHandler) Show

func (r *RepoHandler) Show(c *gin.Context)

func (*RepoHandler) Update

func (r *RepoHandler) Update(c *gin.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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