assettypes

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package assettypes defines a set of asset types that are valid in the context of Lava.

Index

Constants

View Source
const (
	Path = types.AssetType("Path")
)

Lava asset types.

Variables

View Source
var ErrUnsupported = errors.New("unsupported asset type")

ErrUnsupported is returned when the requested operation does not support the specified asset type.

Functions

func CheckReachable added in v0.6.0

func CheckReachable(typ types.AssetType, ident string) error

CheckReachable checks if the asset with the specified type and identifier is reachable. CheckReachable does not check if the asset is functional. If the asset is reachable, it returns a nil error. If the asset is unreachable, it returns an error explaining the cause. If the asset type is not supported, it returns an ErrUnsupported error. If the reachability test fails, it returns the error that caused the failure.

func IsValid

func IsValid(at types.AssetType) bool

IsValid reports whether the provided asset type is valid in the context of Lava.

func ToVulcan

func ToVulcan(at types.AssetType) types.AssetType

ToVulcan maps a Lava asset type to a Vulcan asset type. If there is no such mapping, the provided asset type is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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