Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Platform = newApisMustParse([]string{"0.3", "0.4", "0.5", "0.6"}, nil) Buildpack = newApisMustParse([]string{"0.2", "0.3", "0.4", "0.5", "0.6"}, nil) )
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
IsAPICompatible determines if the lifecycle's API version is compatible with another's API version.
Example Usage Pseudocode:
IsAPICompatible(Platform API from Lifecycle, Platform API from Platform) IsAPICompatible(Buildpack API from Lifecycle, Buildpack API from Buildpack)
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.