fileutil

package
v0.0.0-...-3f61646 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExistsOrCreateDir

func ExistsOrCreateDir(path string) error

func PathExists

func PathExists(path string) (bool, error)

Types

type FileInfo

type FileInfo struct {
	Bucket   string
	Key      string
	ViewerId int64
	Deadline int64
	Preview  bool
}

func FileInfoFromToken

func FileInfoFromToken(content string) (*FileInfo, error)

func NewFileInfo

func NewFileInfo(bucket, key string, viewerId, deadline int64) *FileInfo

func NewPreviewFileInfo

func NewPreviewFileInfo(bucket, key string, viewerId, deadline int64) *FileInfo

func (*FileInfo) FileTokenString

func (fi *FileInfo) FileTokenString() string

Jump to

Keyboard shortcuts

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