Documentation
¶
Overview ¶
Package version provides version processing for mattercheck by wrapping the github.com/blang/semver package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoVersionGiven = errors.New("no version given") ErrNoVersionFound = errors.New("no version found") )
Functions ¶
This section is empty.
Types ¶
type ErrUnexpectedIDFormat ¶ added in v0.2.4
type ErrUnexpectedIDFormat struct {
// contains filtered or unexported fields
}
func (*ErrUnexpectedIDFormat) Error ¶ added in v0.2.4
func (err *ErrUnexpectedIDFormat) Error() string
type Version ¶
A Version represents a Mattermost version. It can distinguish between Enterprise and Team installations.
func ExtractFromBytes ¶
ExtractFromBytes tries to find version information in a byte slice using regular expressions.
func ExtractFromHeader ¶
ExtractFromHeader parses an X-Version-Id response header into a Version struct.
Click to show internal directories.
Click to hide internal directories.