path

package
v3.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 8 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ErrMessageAppPathDoesNotExist = "app path does not exist"

Variables

View Source
var ErrAppPathDoesNotExist = errors.New(ErrMessageAppPathDoesNotExist)

ErrAppPathDoesNotExist is returned when the requested app path does not exist in the repository. It is a user input error rather than a server fault.

Functions

func AppFilesHaveChanged

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, skipPaths ...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 GetSourceRefreshPaths added in v3.0.23

func GetSourceRefreshPaths(app *v1alpha1.Application, source v1alpha1.ApplicationSource) []string

GetSourceRefreshPaths returns the list of paths that should trigger a refresh for an application. The source parameter influences the returned refresh paths:

  • if source hydrator configured AND source is syncSource: use sync source path (ignores annotation)
  • if source hydrator configured AND source is drySource WITH annotation: use annotation paths with drySource base
  • if source hydrator not configured: use annotation paths with source base, or empty if no annotation

func Path

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

Types

type OutOfBoundsSymlinkError

type OutOfBoundsSymlinkError struct {
	File string
	Err  error
}

func (*OutOfBoundsSymlinkError) Error

func (e *OutOfBoundsSymlinkError) Error() string

Jump to

Keyboard shortcuts

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