versioning

package
v2.932.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BumpOverrideEnvVar = "SPEAKEASY_BUMP_OVERRIDE"
)

Functions

func DetermineBumpType

func DetermineBumpType(oldVersion string, newVersion string) versioning.BumpType

func GetNewSDKVersion

func GetNewSDKVersion(ctx context.Context, versionInfo VersionInfo, force bool, lang string, skipVersioning bool) (string, versioning.BumpType, error)

func ShouldMockServerRegenerate

func ShouldMockServerRegenerate(ctx context.Context, versionInfo MockServerVersionInfo) (bool, error)

ShouldMockServerRegenerate returns true if the mockserver target has relevant feature changes that should cause target regeneration.

Types

type BumpType

type BumpType string
const (
	BumpMajor    BumpType = "major"
	BumpMinor    BumpType = "minor"
	BumpPatch    BumpType = "patch"
	BumpGraduate BumpType = "graduate"
	BumpNone     BumpType = "none"
)

type MockServerVersionInfo

type MockServerVersionInfo struct {
	FeatureVersions         map[string]string
	PreviousFeatureVersions map[string]string
}

MockServerVersionInfo is a subset of VersionInfo that is only relevant for the mockserver target.

type VersionInfo

type VersionInfo struct {
	SDKVersion         string
	PreviousSDKVersion string

	DocVersion          string
	PreviousDocVersion  string
	DocChecksum         string
	PreviousDocChecksum string

	FeatureVersions         map[string]string
	AvailableFeatures       map[string]bool
	PreviousFeatureVersions map[string]string

	ConfigChecksum         string
	PreviousConfigChecksum string
}

Jump to

Keyboard shortcuts

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