@@ -70,7 +70,7 @@ func ValidateVersion(spec *Spec) error {
7070 if err != nil {
7171 return fmt .Errorf ("could not determine minimum required version: %w" , err )
7272 }
73- if newVersion (minVersion ).IsGreaterThan (newVersion (spec .Version )) {
73+ if newVersion (minVersion ).isGreaterThan (newVersion (spec .Version )) {
7474 return fmt .Errorf ("the spec version must be at least v%v" , minVersion )
7575 }
7676 return nil
@@ -96,13 +96,13 @@ func (v version) String() string {
9696 return strings .TrimPrefix (string (v ), "v" )
9797}
9898
99- // IsGreaterThan checks with a version is greater than the specified version.
100- func (v version ) IsGreaterThan (o version ) bool {
99+ // isGreaterThan checks with a version is greater than the specified version.
100+ func (v version ) isGreaterThan (o version ) bool {
101101 return semver .Compare (string (v ), string (o )) > 0
102102}
103103
104- // IsLatest checks whether the version is the latest supported version
105- func (v version ) IsLatest () bool {
104+ // isLatest checks whether the version is the latest supported version
105+ func (v version ) isLatest () bool {
106106 return v == vCurrent
107107}
108108
@@ -126,11 +126,11 @@ func (r requiredVersionMap) requiredVersion(spec *Spec) version {
126126 if isRequired == nil {
127127 continue
128128 }
129- if isRequired (spec ) && v .IsGreaterThan (minVersion ) {
129+ if isRequired (spec ) && v .isGreaterThan (minVersion ) {
130130 minVersion = v
131131 }
132132 // If we have already detected the latest version then no later version could be detected
133- if minVersion .IsLatest () {
133+ if minVersion .isLatest () {
134134 break
135135 }
136136 }
@@ -183,7 +183,7 @@ func requiresV060(spec *Spec) bool {
183183 }
184184
185185 // The v0.6.0 spec allows dots "." in Kind name label (class)
186- vendor , class := ParseQualifier (spec .Kind )
186+ vendor , class := parseQualifier (spec .Kind )
187187 if vendor != "" {
188188 if strings .ContainsRune (class , '.' ) {
189189 return true
@@ -199,7 +199,7 @@ func requiresV050(spec *Spec) bool {
199199
200200 for _ , d := range spec .Devices {
201201 // The v0.5.0 spec allowed device names to start with a digit instead of requiring a letter
202- if len (d .Name ) > 0 && ! IsLetter (rune (d .Name [0 ])) {
202+ if len (d .Name ) > 0 && ! isLetter (rune (d .Name [0 ])) {
203203 return true
204204 }
205205 edits = append (edits , & d .ContainerEdits )
0 commit comments