dirs

package
v0.0.336-dev Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Patterns to exclude by default when building images. Integrations
	// (e.g. nodejs) may add additional patterns.
	BasePatternsToExclude = []string{
		"**/node_modules/*",
		"**/.git/*",
		"**/.parcel-cache/*",
		"**/.yarn/cache/*",
		"**/.history/*",
	}

	ExcludeMatcher *fnfs.PatternMatcher
)

Functions

func Cache

func Cache() (string, error)

func CertCache

func CertCache() (string, error)

func Config

func Config() (string, error)

func ConfigSubdir added in v0.0.309

func ConfigSubdir(rel string) (string, error)

func CreateUserTemp

func CreateUserTemp(dir, pattern string) (*os.File, error)

func CreateUserTempDir

func CreateUserTempDir(dir, pattern string) (string, error)

func Ensure

func Ensure(dir string, err error) (string, error)

func ExpandHome

func ExpandHome(path string) (string, error)

func IsExcludedAsSource

func IsExcludedAsSource(path string) bool

Returns false if the directory shouldn't be scanned for Namespace source files (.cue, .proto). This doesn't affect the content that is copied to the build image.

func IsHidden

func IsHidden(name string) bool

func Logs added in v0.0.303

func Logs(rel string) (string, error)

func ModuleCache

func ModuleCache(name, ref string) (string, error)

func ModuleCacheRoot

func ModuleCacheRoot() (string, error)

func Subdir

func Subdir(rel string) (string, error)

func UnpackCache

func UnpackCache() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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