bundle

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archiver

type Archiver interface {
	Archive(srcPath string, preservePath bool) error
	Close()
}

func NewArchiver

func NewArchiver(dest string) Archiver

type Bundler

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

func NewBundler

func NewBundler(configPath string) (*Bundler, error)

func (*Bundler) Bundle

func (b *Bundler) Bundle(outputPath string, verbose bool) (ignorePaths []string)

type Config

type Config struct {
	Command      string
	ArchivePaths []string `yaml:"archive_paths"`
	IgnorePaths  []string `yaml:"ignore_paths"`
}

func NewConfig

func NewConfig(configPath string) (*Config, error)

func (*Config) GetArchivePaths

func (c *Config) GetArchivePaths() (archivePaths []string, ignorePaths []string)

GetArchivePaths will return archiver paths which exclude ignore paths

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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