Documentation ¶
Index ¶
- func FileCopy(pOpDef *GFcopyOpDef, pStorage *GFimageStorage, pRuntimeSys *gf_core.RuntimeSys) *gf_core.GFerror
- func FileGeneratePresignedURL(pOpDef *GFgeneratePresignedURLopDef, pStorage *GFimageStorage, ...) (string, *gf_core.GFerror)
- func FileGet(pOpDef *GFgetOpDef, pStorage *GFimageStorage, pRuntimeSys *gf_core.RuntimeSys) *gf_core.GFerror
- func FilePutFromLocal(pOpDef *GFputFromLocalOpDef, pStorage *GFimageStorage, ...) *gf_core.GFerror
- type GFcopyOpDef
- type GFgeneratePresignedURLopDef
- type GFgetOpDef
- type GFimageStorage
- type GFimageStorageConfig
- type GFputFromLocalOpDef
- type GFstorageIPFS
- type GFstorageLocal
- type GFstorageS3
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileCopy ¶
func FileCopy(pOpDef *GFcopyOpDef, pStorage *GFimageStorage, pRuntimeSys *gf_core.RuntimeSys) *gf_core.GFerror
func FileGeneratePresignedURL ¶
func FileGeneratePresignedURL(pOpDef *GFgeneratePresignedURLopDef, pStorage *GFimageStorage, pRuntimeSys *gf_core.RuntimeSys) (string, *gf_core.GFerror)
func FileGet ¶
func FileGet(pOpDef *GFgetOpDef, pStorage *GFimageStorage, pRuntimeSys *gf_core.RuntimeSys) *gf_core.GFerror
func FilePutFromLocal ¶
func FilePutFromLocal(pOpDef *GFputFromLocalOpDef, pStorage *GFimageStorage, pRuntimeSys *gf_core.RuntimeSys) *gf_core.GFerror
Types ¶
type GFcopyOpDef ¶
type GFgetOpDef ¶
type GFimageStorage ¶
type GFimageStorage struct { TypeStr string // "local" | "s3" | "ipfs" Local *GFstorageLocal S3 *GFstorageS3 IPFS *GFstorageIPFS }
func Init ¶
func Init(pConfig *GFimageStorageConfig, pRuntimeSys *gf_core.RuntimeSys) (*GFimageStorage, *gf_core.GFerror)
type GFimageStorageConfig ¶
type GFimageStorageConfig struct { TypesToProvisionLst []string // list of storage types to initialize IPFSnodeHostStr string // LOCAL_DIRS ThumbsDirPathStr string UploadsSourceDirPathStr string UploadsTargetDirPathStr string ExternImagesDirPathStr string // S3_BUCKETS ThumbsS3bucketNameStr string UploadsSourceS3bucketNameStr string UploadsTargetS3bucketNameStr string ExternImagesS3bucketNameStr string }
type GFputFromLocalOpDef ¶
type GFstorageIPFS ¶
type GFstorageLocal ¶
Click to show internal directories.
Click to hide internal directories.