utils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChartExistInIndex

func ChartExistInIndex(name string, version string, index *helmRepo.IndexFile) (bool, error)

ChartExistInIndex checks if a specific chart version is present in the index file.

func FindChartURL

func FindChartURL(name string, version string, index *helmRepo.IndexFile) (string, error)

FindChartURL will return the chart url

func GetDateThreshold

func GetDateThreshold(date string) (time.Time, error)

GetDateThreshold will parse a string date agains a fixed layout and return a time.Date value

func GetFileContentType

func GetFileContentType(filepath string) (string, error)

GetFileContentType returns the content type of a file.

func LoadIndexFromRepo

func LoadIndexFromRepo(repo *api.Repo) (*helmRepo.IndexFile, error)

LoadIndexFromRepo get the index.yaml from a Helm repo and returns an index object

func Untar

func Untar(filepath, destDir string) error

Untar will uncompress a tarball.

Types

This section is empty.

Jump to

Keyboard shortcuts

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