projects

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Projects

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

Projects is repository struct.

func New

func New(db *sql.DB) *Projects

New returns a new Projects.

func (*Projects) All

func (p *Projects) All() ([]*project.Project, error)

All returns all projects.

func (*Projects) Create

func (p *Projects) Create(tx *sql.Tx, userID int, title, baseURL, repositoryOwner, repositoryName, helmRepositoryURL, helmDirectoryName, namespace string) (int, error)

Create is create method for a project.

func (*Projects) Delete

func (p *Projects) Delete(id int) error

Delete is delete method for a project.

func (*Projects) GetByID

func (p *Projects) GetByID(id int) (*project.Project, error)

GetByID gets a project from specified ID.

func (*Projects) Update

func (p *Projects) Update(tx *sql.Tx, id int, baseURL, helmDirectoryName, namespace string) error

Update is update method for a project.

Jump to

Keyboard shortcuts

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