Documentation ¶
Index ¶
- func ParseVersion(ver string) (*semver.Version, error)
- func ProcessVersionConsensus(nodes []core.Node) error
- func StringVersion(ver *semver.Version) string
- func Verify(key string) bool
- type Feature
- type VersionManager
- func (vm *VersionManager) Add(key string, startVersion string, description string) (*Feature, error)
- func (vm *VersionManager) Get(key string) *Feature
- func (vm *VersionManager) IsAvailable(key string) bool
- func (vm *VersionManager) Load() error
- func (vm *VersionManager) LoadFromFile(path string) error
- func (vm *VersionManager) Remove(key string)
- func (vm *VersionManager) Save() error
- func (vm *VersionManager) SaveAs(path string) error
- func (vm *VersionManager) Start(ctx context.Context) error
- type VersionTable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessVersionConsensus ¶
func StringVersion ¶
Types ¶
type VersionManager ¶
type VersionManager struct { VersionTable map[string]*Feature AgreedVersion *semver.Version // contains filtered or unexported fields }
func GetVersionManager ¶
func GetVersionManager() (*VersionManager, error)
func NewVersionManager ¶
func NewVersionManager(cfg configuration.VersionManager) (*VersionManager, error)
func (*VersionManager) Get ¶
func (vm *VersionManager) Get(key string) *Feature
func (*VersionManager) IsAvailable ¶
func (vm *VersionManager) IsAvailable(key string) bool
func (*VersionManager) Load ¶
func (vm *VersionManager) Load() error
func (*VersionManager) LoadFromFile ¶
func (vm *VersionManager) LoadFromFile(path string) error
LoadFromFile method reads configuration from particular file path
func (*VersionManager) Remove ¶
func (vm *VersionManager) Remove(key string)
func (*VersionManager) Save ¶
func (vm *VersionManager) Save() error
Save method writes configuration to default file path
func (*VersionManager) SaveAs ¶
func (vm *VersionManager) SaveAs(path string) error
SaveAs method writes configuration to particular file path
type VersionTable ¶
Click to show internal directories.
Click to hide internal directories.