Documentation
¶
Index ¶
- Constants
- Variables
- func NewStorageAPI(ctx context.Context, projectRef string) (storage.StorageAPI, error)
- func NewVolcengineStorageAPI(ctx context.Context, api *volcengine.Client, workspaceID, branchID string) (storage.StorageAPI, error)
- func ParseStorageURL(objectURL string) (string, error)
- func SplitBucketPrefix(objectPath string) (string, string)
Constants ¶
View Source
const STORAGE_SCHEME = "ss"
Variables ¶
View Source
var ErrInvalidURL = errors.New("URL must match pattern ss:///bucket/[prefix]")
Functions ¶
func NewStorageAPI ¶
func NewVolcengineStorageAPI ¶
func NewVolcengineStorageAPI(ctx context.Context, api *volcengine.Client, workspaceID, branchID string) (storage.StorageAPI, error)
NewVolcengineStorageAPI resolves a branch gateway and service role key for the lifetime of one Storage command. Credentials are never persisted.
func ParseStorageURL ¶
func SplitBucketPrefix ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.