apiutil

package
v1.81.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

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 IsStatusCodeOK(statusCode int) bool

func NormalizeLakeFSEndpoint

func NormalizeLakeFSEndpoint(endpoint string) (string, error)

NormalizeLakeFSEndpoint verify and return the endpoint for the lakeFS server

func Ptr

func Ptr[T any](val T) *T

func Value

func Value[T any](ptr *T) T

Types

This section is empty.

Jump to

Keyboard shortcuts

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