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