Documentation
¶
Index ¶
- Constants
- Variables
- func CheckStatus() (time.Duration, error)
- func GetAsset(context, name string) (*model.Asset, error)
- func InitDynamicAssetFS() error
- func ListAssets() (map[string][]*model.Asset, error)
- func RegisterCustomExternals(opts []model.AssetOption, maxTryCount int) error
- func RemoveAsset(context, name string) error
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 ¶
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 InitDynamicAssetFS ¶
func InitDynamicAssetFS() error
InitDynamicAssetFS initializes the dynamic asset FS.
func ListAssets ¶
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 ¶
RemoveAsset removes a dynamic asset from Swift
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.