action

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Browse

func Browse(catalogFile string, dep Dep) ([]string, error)

Browse ...

func Clean

func Clean(opt Options, dep Dep) error

Clean deletes tracked files from the local folders.

func List

func List(opt Options, dep Dep) error

List deletes tracked files from the local folders.

func Purge

func Purge(opt Options, dep Dep) (int, int, error)

Purge deletes files from a remote service.

func Sync

func Sync(opt SyncOpt, dep Dep) error

Sync syncs files with a remote service.

func Tag

func Tag(opt TagOpt, dep Dep) error

Tag deletes tracked files from the local folders.

Types

type Dep

type Dep struct {
	Stderr *os.File
	Stdout *os.File
	Stdin  *os.File

	Monitor *monitor.Monitor
}

Dep ...

type DownloadedFile

type DownloadedFile struct {
	Service string

	Path   string
	Output string

	Data []byte
}

DownloadedFile ..

func Get

func Get(opt GetOpt, dep Dep) ([]DownloadedFile, error)

Get downloads files from a remote service.

func Inject

func Inject(opt InjectOpt, dep Dep) ([]DownloadedFile, error)

Inject ...

type GetOpt

type GetOpt struct {
	Options

	Output string
}

GetOpt ...

type InjectOpt

type InjectOpt struct {
	Data  []byte
	Files []string

	Service string
	Output  string
}

InjectOpt ...

type Options

type Options struct {
	Catalog string

	Files []string
	Tags  []string

	Service string

	Warn bool
}

Options ...

type SyncOpt

type SyncOpt struct {
	Options

	Context string
}

SyncOpt ...

type TagOpt

type TagOpt struct {
	Options

	Add    []string
	Delete []string
}

TagOpt ...

Jump to

Keyboard shortcuts

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