apiversion

package
v0.0.65 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package apiversion exposes API version parsing utilities for use outside the cli module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPreviewStabilityLevel

func IsPreviewStabilityLevel(version string) bool

IsPreviewStabilityLevel reports whether the given version string represents a preview release.

func IsUpcomingStabilityLevel

func IsUpcomingStabilityLevel(version string) bool

IsUpcomingStabilityLevel reports whether the given version string represents an upcoming release.

func Parse

func Parse(contentType string) (string, error)

Parse extracts the API version string from a versioned media type (e.g. "application/vnd.atlas.2024-01-01+json" → "2024-01-01"). Returns an error if the media type does not match the expected pattern.

Types

This section is empty.

Jump to

Keyboard shortcuts

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