files

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0 package cmdlookup implements tools to recursively look for executables in a set of internal Folders

Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllYAMLs

func AllYAMLs(folder string) ([]os.FileInfo, error)

AllYAMLs returns FileInfo for all YAMLs in a folder

func IsYAMLFile

func IsYAMLFile(file os.FileInfo) bool

IsYAMLFile returns it the passed object is a YAML and a file

Types

type Executables

type Executables struct {
	// Folders where the component have to look for executables with a given name
	Folders []string
}

Executables stores the commands for each executable name, the corresponding complete path to the executable

func (Executables) Path

func (fp Executables) Path(name string) (string, error)

Path to an executable in the Folders set, given the executable name. The executable name is usually the file base name for the executable. In windows, is the file name without the ".exe" extension

Jump to

Keyboard shortcuts

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