volumes

package
v0.1.127 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DirMode fs.FileMode = 0755

DirMode is the default dirmode for volumes

Variables

This section is empty.

Functions

This section is empty.

Types

type Volumes

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

Volumes struct used to handle volumes CRUD

func New

func New(root string) (*Volumes, error)

New inits a new volumes struct

func (*Volumes) ByProjectByBranch added in v0.1.127

func (v *Volumes) ByProjectByBranch(project string, branch string) ([]string, error)

ByProjectByBranch returns all subvolumes for a specific branch of a project

func (*Volumes) Create

func (v *Volumes) Create(t *task.Task) error

Create a new volume

func (*Volumes) Get added in v0.1.127

func (v *Volumes) Get(service, project, branch, commit string) (*task.Task, error)

func (*Volumes) Path

func (v *Volumes) Path(elem ...string) string

Path will return the full path for this volume

Jump to

Keyboard shortcuts

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