cdn

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneOrPullRepo

func CloneOrPullRepo(repo, parent string) error

func CreateCredentialsMappings

func CreateCredentialsMappings(ctx context.Context, root string) error

CreateCredentialsMappings scans a file location for repo specific client credentials.

func CreateInventoryMappings

func CreateInventoryMappings(ctx context.Context, root string) error

CreateInventoryMappings scans a file location for podcast feeds and creates the canonical names mappings to their file location on the cdn.

func IsStorageChanged

func IsStorageChanged(ts int64) bool

func ListResources

func ListResources(ctx context.Context, root string) (*[]metadata.Metadata, error)

ListResources collects all the media resources in the specified location and returns the metadata for these resources.

func MarkStorageChanged

func MarkStorageChanged()

func ReceiveFileUpload

func ReceiveFileUpload(ctx context.Context, req *http.Request, location, formName string) (string, error)

ReceiveFileUpload handles the reception of uploads and puts the files into a specified location

func ResolveName

func ResolveName(name string) (string, bool)

Resolve name returns the matching cdn GUID for a podcast's canonical name. If no mapping exists, the function just returns an empty string/false as status code.

func Rewrite

func Rewrite(path string) (string, bool)

Rewrite takes the canonical name of a podcast feed and returns its path in the cdn. If no mapping exists, the function just returns an empty string/false as status code.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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