finder

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForAPIVersion

func CheckForAPIVersion(file string) ([]*api.Output, error)

CheckForAPIVersion checks a filename to see if it is an api-versioned Kubernetes object. Returns the File object if it is.

Types

type Dir

type Dir struct {
	RootPath string
	FileList []string
	Outputs  []*api.Output
}

Dir is the finder dirlication

func NewFinder

func NewFinder(path string) *Dir

NewFinder returns a new struct with config portions complete.

func (*Dir) FindVersions

func (dir *Dir) FindVersions() error

FindVersions runs the finder. This will populate the dir struct with any files that might be versioned.

Jump to

Keyboard shortcuts

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