version

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package version contains CLI version constant and utilities.

Package version contains CLI version constant and utilities.

Package version contains version constants and utilities.

Index

Constants

View Source
const Version = "1.3.0.0"

Version is the version of the CLI.

Variables

View Source
var ErrInvalidVersion = errors.New("invalid version")

ErrInvalidVersion is returned when the version string is invalid.

View Source
var ErrLengthMismatch = errors.New("length mismatch between versions")

ErrLengthMismatch is returned when the length of two version strings do not match.

Functions

func DoesAgentSupportDisableSmuxKeepAlive

func DoesAgentSupportDisableSmuxKeepAlive(agentVersion string) (bool, error)

DoesAgentSupportDisableSmuxKeepAlive returns true if given agentVersion disables smux KeepAlive in TCP multiplexing in port plugin, false otherwise.

func DoesAgentSupportTCPMultiplexing

func DoesAgentSupportTCPMultiplexing(agentVersion string) (bool, error)

DoesAgentSupportTCPMultiplexing returns true if given agentVersion supports TCP multiplexing in port plugin, false otherwise.

func DoesAgentSupportTerminateSessionFlag

func DoesAgentSupportTerminateSessionFlag(agentVersion string) (bool, error)

DoesAgentSupportTerminateSessionFlag returns true if given agentVersion supports TerminateSession flag, false otherwise.

Types

type Number

type Number struct {
	// contains filtered or unexported fields
}

Number represents a semantic version number.

func NewVersion

func NewVersion(versionString string) (Number, error)

NewVersion initializes Number struct by splitting given version string into string list using separator ".".

Jump to

Keyboard shortcuts

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