objectpattern

package
v0.11.730 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsWildcard

func ContainsWildcard(name string) bool

ContainsWildcard reports whether a cloud object name uses one of Bruin's supported wildcard forms.

func ExtractPrefix

func ExtractPrefix(name string) string

ExtractPrefix returns the literal prefix that can be passed to an object-list API before applying the full wildcard expression locally.

func WildcardToRegex

func WildcardToRegex(pattern string) string

WildcardToRegex converts Bruin's object wildcard syntax to an anchored regular expression. An asterisk does not cross a slash, and braces represent comma-separated alternatives.

Types

This section is empty.

Jump to

Keyboard shortcuts

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