refs

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByName

func ByName(a, b FeaturePlan) bool

func FeaturePlanNames added in v0.7.1

func FeaturePlanNames(fps []FeaturePlan) []string

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 MustParseName(s string) Name

func ParseName

func ParseName(s string) (Name, error)

func (Name) GoString

func (n Name) GoString() string

func (Name) Less

func (n Name) Less(o Name) bool

func (Name) MarshalJSON

func (fp Name) MarshalJSON() ([]byte, error)

func (Name) MarshalText

func (fp Name) MarshalText() ([]byte, error)

func (Name) String

func (n Name) String() string

func (*Name) UnmarshalJSON

func (fp *Name) UnmarshalJSON(b []byte) error

func (*Name) UnmarshalText

func (fp *Name) UnmarshalText(b []byte) error

func (Name) WithPlan

func (n Name) WithPlan(p Plan) FeaturePlan

type ParseError

type ParseError struct {
	ID      string
	Message string
}

func (*ParseError) Error

func (e *ParseError) Error() string

type Plan

type Plan struct {
	// contains filtered or unexported fields
}

func MustParsePlan

func MustParsePlan(s string) Plan

func MustParsePlans

func MustParsePlans(s ...string) []Plan

func ParsePlan

func ParsePlan(s string) (Plan, error)

func (Plan) GoString

func (p Plan) GoString() string

func (Plan) IsZero

func (p Plan) IsZero() bool

func (Plan) Less added in v0.8.1

func (p Plan) Less(o Plan) bool

func (Plan) MarshalJSON

func (p Plan) MarshalJSON() ([]byte, error)

func (Plan) MarshalText

func (p Plan) MarshalText() ([]byte, error)

func (Plan) Name added in v0.8.1

func (p Plan) Name() string

func (Plan) String

func (p Plan) String() string

func (*Plan) UnmarshalJSON

func (p *Plan) UnmarshalJSON(b []byte) error

func (*Plan) UnmarshalText

func (p *Plan) UnmarshalText(b []byte) error

func (Plan) Version added in v0.8.1

func (p Plan) Version() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL