Documentation
¶
Index ¶
- Constants
- Variables
- func BuildConditionFromParams(ifMatch, ifNoneMatch *string) (*graveler.ConditionFunc, error)
- func BuildOptsFromParams(params apigen.CopyObjectJSONRequestBody) ([]graveler.SetOptionsFunc, error)
- func IsStatusCodeOK(statusCode int) bool
- func NormalizeLakeFSEndpoint(endpoint string) (string, error)
- func Ptr[T any](val T) *T
- func Value[T any](ptr *T) T
Constants ¶
View Source
const ( ClientMtimeMetadataKey = LakeFSMetadataPrefix + "client-mtime" SymlinkMetadataKey = LakeFSMetadataPrefix + "symlink-target" POSIXPermissionsMetadataKey = LakeFSMetadataPrefix + "posix-permissions" CloneMetadataKey = LakeFSMetadataPrefix + "shallow-copy" )
metadata keys
View Source
const ( LakeFSHeaderInternalPrefix = "x-lakefs-internal-" LakeFSHeaderMetadataPrefix = "x-lakefs-meta-" )
View Source
const BaseURL = "/api/v1"
View Source
const LakeFSMetadataPrefix = "::lakefs::"
Variables ¶
View Source
var ErrNotImplemented = errors.New("functionality not implemented")
Functions ¶
func BuildConditionFromParams ¶ added in v1.81.0
func BuildConditionFromParams(ifMatch, ifNoneMatch *string) (*graveler.ConditionFunc, error)
BuildConditionFromParams creates a graveler.ConditionFunc from upload params. Returns nil if no precondition is specified in the params. Handles IfNoneMatch (must be "*") and IfMatch (ETag validation).
func BuildOptsFromParams ¶ added in v1.81.0
func BuildOptsFromParams(params apigen.CopyObjectJSONRequestBody) ([]graveler.SetOptionsFunc, error)
BuildOptsFromParams builds copy object request from parameters.
func IsStatusCodeOK ¶
func NormalizeLakeFSEndpoint ¶
NormalizeLakeFSEndpoint verify and return the endpoint for the lakeFS server
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.