dynamic

package
v0.0.0-...-4b98c26 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const DynamicAssetsContainerName = "__dyn-assets__"

DynamicAssetsContainerName is the Swift container name for dynamic assets

View Source
const DynamicAssetsFolderName = "dyn-assets"

DynamicAssetsFolderName is the folder name for dynamic assets

Variables

View Source
var ErrDynAssetNotFound = errors.New("Dynamic asset was not found")

ErrDynAssetNotFound is the error returned when a dynamic asset cannot be found.

Functions

func CheckStatus

func CheckStatus() (time.Duration, error)

CheckStatus checks that the FS for dynamic asset is available, or returns an error if it is not the case. It also returns the latency.

func GetAsset

func GetAsset(context, name string) (*model.Asset, error)

GetAsset retrieves a raw asset from the dynamic FS and builds a fs.Asset

func InitDynamicAssetFS

func InitDynamicAssetFS() error

InitDynamicAssetFS initializes the dynamic asset FS.

func ListAssets

func ListAssets() (map[string][]*model.Asset, error)

ListAssets returns the list of the dynamic assets.

func RegisterCustomExternals

func RegisterCustomExternals(opts []model.AssetOption, maxTryCount int) error

RegisterCustomExternals ensures that the assets are in the Swift, and load them from their source if they are not yet available.

func RemoveAsset

func RemoveAsset(context, name string) error

RemoveAsset removes a dynamic asset from Swift

Types

This section is empty.

Jump to

Keyboard shortcuts

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