Documentation
¶
Overview ¶
Package version parses and compares HTCondor version strings of the form "$CondorVersion: X.Y.Z <date> ...$", as exchanged during the CEDAR security handshake (the RemoteVersion attribute).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CondorVersion ¶
type CondorVersion struct{ Major, Minor, Sub int }
CondorVersion is a parsed major.minor.sub HTCondor version.
func Parse ¶
func Parse(s string) (CondorVersion, bool)
Parse extracts the X.Y.Z from a "$CondorVersion: X.Y.Z ...$" string (or a bare "X.Y.Z"). It returns ok=false if no version-looking token is found.
func (CondorVersion) AtLeast ¶
func (v CondorVersion) AtLeast(other CondorVersion) bool
AtLeast reports whether v >= other.
func (CondorVersion) String ¶
func (v CondorVersion) String() string
String renders the version as "Major.Minor.Sub".
Click to show internal directories.
Click to hide internal directories.