archiveClient

package
v1.0.39 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WorkspaceAll    = "all"
	WorkspaceStaged = "staged"
	WorkspaceClean  = "clean"
)
View Source
const DeployIgnoreFile = ".deployignore"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DeployGitFolder    bool
	PushWorkspaceState string
}

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) ArchiveGitFiles added in v1.0.39

func (h *Handler) ArchiveGitFiles(ctx context.Context, workingDir string, writer io.Writer) error

func (*Handler) FindFilesByRules

func (h *Handler) FindFilesByRules(uxBlocks uxBlock.UxBlocks, workingDir string, sources []string, ignorer FileIgnorer) ([]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