archiveClient

package
v0.12.19 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DeployGitFolder bool
}

type File

type File struct {
	SourcePath  string // full path to the file using os.PathSeparator
	ArchivePath string // path to the file in archive using / as separator
}

type Handler

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

func New

func New(config Config) *Handler

func (*Handler) FindFilesByRules

func (h *Handler) FindFilesByRules(workingDir string, sources []string) ([]File, error)

func (*Handler) FindGitFiles

func (h *Handler) FindGitFiles(workingDir string) (res []File, _ error)

func (*Handler) TarFiles

func (h *Handler) TarFiles(w io.WriteCloser, files []File, errChan chan<- error)

Jump to

Keyboard shortcuts

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