Documentation ¶
Index ¶
- func GenerateObfuscatedFilePath(fileExtension string, workspaceID uuid.UUID, resourceName string, ...) (string, error)
- func OpenFile(path string, isAppend bool) (*os.File, error)
- func OpenOrCreateFile(path string, isAppend bool) (*os.File, error)
- func OpenOrCreateFolder(path string) error
- func WriteToFile(path string, content []byte) (*os.File, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateObfuscatedFilePath ¶
func GenerateObfuscatedFilePath( fileExtension string, workspaceID uuid.UUID, resourceName string, resourceID *uuid.UUID, ) (string, error)
GenerateObfuscatedFilePath generates an obfuscated filepath using the following schemes:
[workspace-id-shortened]/[resource-name].[random-id-shortened].[file-extension] [workspace-id-shortened]/[resource-name].[resource-id-shortened].[random-id-shortened].[file-extension]
func OpenOrCreateFile ¶
OpenOrCreateFile opens specified file. Creates file and its path if they do not exist.
func OpenOrCreateFolder ¶
OpenOrCreateFolder opens specified folder. Creates folder and its path if they do not exist.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.