Documentation ¶
Index ¶
- func ByName(a, b FeaturePlan) bool
- func SortGroupedByVersion(fs []FeaturePlan)
- type FeaturePlan
- func (fp FeaturePlan) GoString() string
- func (fp FeaturePlan) InPlan(p Plan) bool
- func (fp FeaturePlan) IsVersionOf(p Name) bool
- func (fp FeaturePlan) IsZero() bool
- func (a FeaturePlan) Less(b FeaturePlan) bool
- func (fp FeaturePlan) MarshalJSON() ([]byte, error)
- func (fp FeaturePlan) MarshalText() ([]byte, error)
- func (fp FeaturePlan) Name() Name
- func (fp FeaturePlan) Plan() Plan
- func (fp FeaturePlan) String() string
- func (fp *FeaturePlan) UnmarshalJSON(b []byte) error
- func (fp *FeaturePlan) UnmarshalText(b []byte) error
- func (fp FeaturePlan) Version() string
- type Name
- func (n Name) GoString() string
- func (n Name) Less(o Name) bool
- func (fp Name) MarshalJSON() ([]byte, error)
- func (fp Name) MarshalText() ([]byte, error)
- func (n Name) String() string
- func (fp *Name) UnmarshalJSON(b []byte) error
- func (fp *Name) UnmarshalText(b []byte) error
- func (n Name) WithPlan(p Plan) FeaturePlan
- type ParseError
- type Plan
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByName ¶
func ByName(a, b FeaturePlan) bool
func SortGroupedByVersion ¶
func SortGroupedByVersion(fs []FeaturePlan)
Types ¶
type FeaturePlan ¶
type FeaturePlan struct {
// contains filtered or unexported fields
}
func MustParseFeaturePlan ¶
func MustParseFeaturePlan(s string) FeaturePlan
func MustParseFeaturePlans ¶
func MustParseFeaturePlans(s ...string) []FeaturePlan
func ParseFeaturePlan ¶
func ParseFeaturePlan(s string) (FeaturePlan, error)
func ParseFeaturePlans ¶
func ParseFeaturePlans(s ...string) ([]FeaturePlan, error)
func (FeaturePlan) GoString ¶
func (fp FeaturePlan) GoString() string
func (FeaturePlan) InPlan ¶
func (fp FeaturePlan) InPlan(p Plan) bool
func (FeaturePlan) IsVersionOf ¶
func (fp FeaturePlan) IsVersionOf(p Name) bool
func (FeaturePlan) IsZero ¶
func (fp FeaturePlan) IsZero() bool
func (FeaturePlan) Less ¶
func (a FeaturePlan) Less(b FeaturePlan) bool
func (FeaturePlan) MarshalJSON ¶
func (fp FeaturePlan) MarshalJSON() ([]byte, error)
func (FeaturePlan) MarshalText ¶
func (fp FeaturePlan) MarshalText() ([]byte, error)
func (FeaturePlan) Name ¶
func (fp FeaturePlan) Name() Name
func (FeaturePlan) Plan ¶
func (fp FeaturePlan) Plan() Plan
func (FeaturePlan) String ¶
func (fp FeaturePlan) String() string
func (*FeaturePlan) UnmarshalJSON ¶
func (fp *FeaturePlan) UnmarshalJSON(b []byte) error
func (*FeaturePlan) UnmarshalText ¶
func (fp *FeaturePlan) UnmarshalText(b []byte) error
func (FeaturePlan) Version ¶
func (fp FeaturePlan) Version() string
Version returns the version of the feature plan as it was parsed. This means if the version is a plan, the plan identifier is returned.
type Name ¶
type Name struct {
// contains filtered or unexported fields
}
func MustParseName ¶
func (Name) MarshalJSON ¶
func (Name) MarshalText ¶
func (*Name) UnmarshalJSON ¶
func (*Name) UnmarshalText ¶
func (Name) WithPlan ¶
func (n Name) WithPlan(p Plan) FeaturePlan
type ParseError ¶
func (*ParseError) Error ¶
func (e *ParseError) Error() string
type Plan ¶
type Plan struct {
// contains filtered or unexported fields
}
func MustParsePlan ¶
func MustParsePlans ¶
func (Plan) MarshalJSON ¶
func (Plan) MarshalText ¶
func (*Plan) UnmarshalJSON ¶
func (*Plan) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.