Documentation ¶
Index ¶
- Constants
- func DeterminePluginSrcRoot(fSys filesys.FileSystem) (string, error)
- func FileExists(path string) bool
- func FileModifiedAfter(path string, t time.Time) bool
- func FileYoungerThan(path string, d time.Duration) bool
- func GetResMapWithIDAnnotation(rm resmap.ResMap) (resmap.ResMap, error)
- func GoBin() string
- func UpdateResMapValues(pluginName string, h *resmap.PluginHelpers, output []byte, rm resmap.ResMap) error
- func UpdateResourceOptions(rm resmap.ResMap) (resmap.ResMap, error)
Constants ¶
View Source
const ( HashAnnotation = "kustomize.config.k8s.io/needs-hash" BehaviorAnnotation = "kustomize.config.k8s.io/behavior" )
Variables ¶
This section is empty.
Functions ¶
func DeterminePluginSrcRoot ¶
func DeterminePluginSrcRoot(fSys filesys.FileSystem) (string, error)
DeterminePluginSrcRoot guesses where the user has her ${g}/${v}/$lower(${k})/${k}.go files.
func FileExists ¶
func FileModifiedAfter ¶
FileModifiedAfter returns true if the file both exists and was modified after the given time..
func FileYoungerThan ¶
FileYoungerThan returns true if the file both exists and has an age is <= the Duration argument.
func GetResMapWithIDAnnotation ¶ added in v0.4.2
GetResMapWithIDAnnotation returns a new copy of the given ResMap with the ResIds annotated in each Resource
func UpdateResMapValues ¶ added in v0.4.2
func UpdateResMapValues(pluginName string, h *resmap.PluginHelpers, output []byte, rm resmap.ResMap) error
UpdateResMapValues updates the Resource value in the given ResMap with the emitted Resource values in output.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.