validate

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsObjectID

func IsObjectID(prefix, s string) bool

func WorkspaceMatches

func WorkspaceMatches(workspaceID string) error

WorkspaceMatches gets the workspace from the config and validates that it matches the provided input. If the workspace is not set, no error is returned

Types

type ObjectIDPrefix

type ObjectIDPrefix string
const (
	ServiceIDPrefix ObjectIDPrefix = "srv"
)

Jump to

Keyboard shortcuts

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