config

package
v0.6.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// FileNameDefault is the default file name for the data store.
	FileNameDefault = ".vimp.db"

	// LocalStorePrefix is the prefix for local store.
	LocalStorePrefix = "sqlite://"
)

Variables

This section is empty.

Functions

func GetDefaultDBPath

func GetDefaultDBPath() string

GetDefaultDBPath returns the default path for the data store.

func GetDigest added in v0.5.5

func GetDigest(v string) (string, error)

GetDigest returns the digest of the image. Could result in uri that has both a tag and a digest.

func GetTempFilePath added in v0.5.4

func GetTempFilePath(prefix string) string

GetTempFilePath returns a temporary file path.

func RemoveSchema added in v0.5.5

func RemoveSchema(uri string) (string, error)

RemoveSchema cleans up a URI by removing the scheme.

func RemoveTag added in v0.5.5

func RemoveTag(uri string) string

RemoveSchema cleans up a URI by removing the scheme.

Types

This section is empty.

Jump to

Keyboard shortcuts

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