storage

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package storage provides validators for Google Cloud Storage identifiers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidBucketName

func IsValidBucketName(name string) bool

IsValidBucketName validates a Google Cloud Storage bucket name.

A valid bucket name must:

  • Contain only lowercase letters, digits, dashes (-), underscores (_), and dots (.)
  • Start and end with a number or letter
  • Be 3 to 63 characters long (or up to 222 for dotted names)
  • Not contain consecutive dots
  • Not look like an IP address

Note: This validates format only, not whether the bucket name is available.

Types

This section is empty.

Jump to

Keyboard shortcuts

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