path

package
v2.14.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppFilesHaveChanged added in v2.11.0

func AppFilesHaveChanged(refreshPaths []string, changedFiles []string) bool

AppFilesHaveChanged returns true if any of the changed files are under the given refresh paths If refreshPaths or changedFiles are empty, it will always return true

func CheckOutOfBoundsSymlinks(basePath string) error

CheckOutOfBoundsSymlinks determines if basePath contains any symlinks that are absolute or point to a path outside of the basePath. If found, an OutOfBoundsSymlinkError is returned.

func GetAppRefreshPaths added in v2.11.0

func GetAppRefreshPaths(app *v1alpha1.Application) []string

GetAppRefreshPaths returns the list of paths that should trigger a refresh for an application

func Path

func Path(root, path string) (string, error)

Types

type OutOfBoundsSymlinkError added in v2.5.0

type OutOfBoundsSymlinkError struct {
	File string
	Err  error
}

func (*OutOfBoundsSymlinkError) Error added in v2.5.0

func (e *OutOfBoundsSymlinkError) Error() string

Jump to

Keyboard shortcuts

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