Documentation
¶
Index ¶
- Variables
- func DetermineBumpType(oldVersion string, newVersion string) versioning.BumpType
- func GetNewSDKVersion(ctx context.Context, versionInfo VersionInfo, force bool, lang string, ...) (string, versioning.BumpType, error)
- func ShouldMockServerRegenerate(ctx context.Context, versionInfo MockServerVersionInfo) (bool, error)
- type BumpType
- type MockServerVersionInfo
- type VersionInfo
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 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
}
Click to show internal directories.
Click to hide internal directories.