Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(opts *Options)
Option represents a function that applies a configuration to a Version instance.
func WithDefaultVersion ¶
WithDefaultVersion sets a default version if parsing the Docker image tag fails.
func WithLogger ¶
WithLogger sets a logger for the Version instance.
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
Options to be used with Version.
type Version ¶
type Version struct {
// contains filtered or unexported fields
}
Version wraps a HashiCorp version.Version struct to provide additional functionalities for better convenience.
func NewVersion ¶
NewVersion constructs a new Version instance from a given Docker image tag.
func (*Version) Compare ¶
Compare compares the current version with another semantic version string.
func (*Version) GetMinorVersion ¶
GetMinorVersion extracts and returns the "major.minor" part of the version.
Click to show internal directories.
Click to hide internal directories.