common

package
v0.0.0-...-880cb89 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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