archiveClient

package
v1.0.36 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const DeployIgnoreFile = ".deployignore"

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 FileIgnorer added in v1.0.20

type FileIgnorer interface {
	MatchesPath(string) bool
}

func LoadDeployFileIgnorer added in v1.0.20

func LoadDeployFileIgnorer(dir string) (FileIgnorer, error)

LoadDeployFileIgnorer parses .deployignore file in specified dir. If file is absent, both returned FileIgnorer and error is nil.

type Handler

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

func New

func New(config Config) *Handler

func (*Handler) FindFilesByRules

func (h *Handler) FindFilesByRules(uxBlocks uxBlock.UxBlocks, workingDir string, sources []string, ignorer FileIgnorer) ([]File, error)

func (*Handler) FindGitFiles

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

func (*Handler) TarFiles

func (h *Handler) TarFiles(w io.Writer, files []File) error

Jump to

Keyboard shortcuts

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