fileutil

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileUrl

type FileUrl string

FileUrl is the url of file

func (FileUrl) GetFileUrlType

func (url FileUrl) GetFileUrlType() FileUrlType

type FileUrlType

type FileUrlType string
const (
	FileUrlTypeLocal FileUrlType = "local"
)

type FileUtils

type FileUtils interface {
	// Download file from fileUrl to local file system.
	Download(ctx context.Context, fileUrl FileUrl) (string, error)
}

FileUtils is an interface for all fileutil

func DefaultFileUtil

func DefaultFileUtil() FileUtils

DefaultFileUtil return a default FileUtils.

Jump to

Keyboard shortcuts

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