common

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetQueryParamFromURL

func GetQueryParamFromURL(
	rawURL, queryParam string,
) (string, error)

GetQueryParamFromURL parses an URL and returns value of the specified query parameter. In case of multiple occurrences, first one is returned.

func NormalizeBucket

func NormalizeBucket(b string) string

NormalizeBuckets ensures that bucket names are cleaned and standardized according to the downstream needs of minio.

Any url prefixing to location the bucket (ex: s3://bckt) will be removed, leaving only the bucket name (bckt). Corso should only utilize or store the normalized name.

func NormalizePrefix

func NormalizePrefix(p string) string

NormalizePrefix ensures that a bucket prefix is always treated as object store folder prefix.

func UnionStringConfigs

func UnionStringConfigs(cfgs ...StringConfigurer) (map[string]string, error)

UnionStringConfigs unions all provided configurers into a single map[string]string matching type.

Types

type StringConfigurer

type StringConfigurer interface {
	StringConfig() (map[string]string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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