bucket

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 2 Imported by: ? 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

Overview

Package bucket holds the rules that describe a valid object-storage bucket name. It deliberately depends on nothing else in this tree so that both the token config loader and the HTTP handlers can share a single definition without an import cycle (pkg/validator already imports pkg/config).

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidName = errors.New("invalid bucket name: must be 3-63 characters of lowercase letters, digits or '-', starting and ending with a letter or digit")

ErrInvalidName is returned for any name that does not satisfy namePattern.

Functions

func Validate

func Validate(name string) error

Validate reports whether name is usable as a bucket name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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