
Implementation would allow us to build our own cluster-api components based on airship document bundle. Relates-To: #170 Change-Id: Ic029fd07ca5221747e49c3cf48e80a3e279ac1f0
24 lines
587 B
Go
24 lines
587 B
Go
package implementations
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
// ErrVersionNotDefined is returned when requested version is not present in repository
|
|
type ErrVersionNotDefined struct {
|
|
Version string
|
|
}
|
|
|
|
func (e ErrVersionNotDefined) Error() string {
|
|
return fmt.Sprintf(`version %s is not defined in the repository`, e.Version)
|
|
}
|
|
|
|
// ErrNoVersionsAvailable is returned when version map is empty or not defined
|
|
type ErrNoVersionsAvailable struct {
|
|
Versions map[string]string
|
|
}
|
|
|
|
func (e ErrNoVersionsAvailable) Error() string {
|
|
return fmt.Sprintf(`version map is empty or not defined, %v`, e.Versions)
|
|
}
|