Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dir ¶
type Dir struct {
RootPath string
FileList []string
Instance *api.Instance
}
Dir is the finder dirlication
func NewFinder ¶
func NewFinder(path string, instance *api.Instance) *Dir
NewFinder returns a new struct with config portions complete.
func (*Dir) CheckForAPIVersion ¶
func (dir *Dir) 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.
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.
Click to show internal directories.
Click to hide internal directories.