util

package
v4.5.7 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertSliceToMap

func ConvertSliceToMap(inputs []string, kind string) (map[string]string, error)

ConvertSliceToMap converts a slice of strings in the form of `key:value` into a map.

func ConvertToMap

func ConvertToMap(input string, kind string) (map[string]string, error)

ConvertToMap converts a string in the form of `key:value,key:value,...` into a map.

func GlobPatterns

func GlobPatterns(fSys filesys.FileSystem, patterns []string) ([]string, error)

GlobPatterns accepts a slice of glob strings and returns the set of matching file paths.

func GlobPatternsWithLoader

func GlobPatternsWithLoader(fSys filesys.FileSystem, ldr ifc.Loader, patterns []string) ([]string, error)

GlobPatterns accepts a slice of glob strings and returns the set of matching file paths. If files are not found, will try load from remote.

Types

type BuildMetadataValidator added in v4.5.0

type BuildMetadataValidator struct{}

func (*BuildMetadataValidator) Validate added in v4.5.0

func (b *BuildMetadataValidator) Validate(args []string) ([]string, error)

Jump to

Keyboard shortcuts

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