Documentation ¶
Index ¶
- Variables
- type APIs
- type List
- type Version
- func (v *Version) AtLeast(other string) bool
- func (v *Version) Compare(o *Version) int
- func (v *Version) Equal(o *Version) bool
- func (v *Version) IsSupersetOf(o *Version) bool
- func (v *Version) LessThan(other string) bool
- func (v *Version) MarshalText() ([]byte, error)
- func (v *Version) String() string
- func (v *Version) UnmarshalText(text []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Platform is a pair of lists of Platform API versions: // 1. All supported versions (including deprecated versions) // 2. The versions that are deprecated Platform = newApisMustParse([]string{"0.7", "0.8", "0.9", "0.10", "0.11", "0.12", "0.13"}, []string{}) // Buildpack is a pair of lists of Buildpack API versions: // 1. All supported versions (including deprecated versions) // 2. The versions that are deprecated Buildpack = newApisMustParse([]string{"0.7", "0.8", "0.9", "0.10", "0.11"}, []string{}) )
Functions ¶
This section is empty.
Types ¶
type APIs ¶ added in v0.9.0
func NewAPIs ¶ added in v0.9.0
NewApis constructs an instance of APIs
supported must be a superset of deprecated deprecated APIs greater than 1.0 should should not include minor versions supported APIs should always include minor versions Examples: deprecated API 1 implies all 1.x APIs are deprecated supported API 1 implies only 1.0 is supported
func (APIs) IsDeprecated ¶ added in v0.9.0
IsDeprecated returns true or false depending on whether the target API is deprecated
func (APIs) IsSupported ¶ added in v0.9.0
IsSupported returns true or false depending on whether the target API is supported
type Version ¶
type Version struct { Major, Minor uint64 }
func NewVersion ¶
func (*Version) Compare ¶
Compare returns one of the following results
-1 is less than *Version o 0 is equal to *Version o 1 is greater than *Version o
func (*Version) IsSupersetOf ¶ added in v0.9.0
func (*Version) MarshalText ¶
MarshalText makes Version satisfy the encoding.TextMarshaler interface.
func (*Version) UnmarshalText ¶
UnmarshalText makes Version satisfy the encoding.TextUnmarshaler interface.
Click to show internal directories.
Click to hide internal directories.