version

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: Apache-2.0 Imports: 4 Imported by: 7

Documentation

Index

Constants

View Source
const ExternalConfigName = "version"

ExternalConfigName is the external config name of version.

Variables

This section is empty.

Functions

func Description

func Description(description string) nirvana.Configurer

Description Configurer sets project description.

func Disable

func Disable() nirvana.Configurer

Disable returns a configurer to disable version.

func Hash

func Hash(hash string) nirvana.Configurer

Hash Configurer sets code hash.

func Name

func Name(name string) nirvana.Configurer

Name Configurer sets project name.

func Path

func Path(path string) nirvana.Configurer

Path returns a configurer to set version path.

func Version

func Version(version string) nirvana.Configurer

Version Configurer sets version number.

Types

type Option

type Option struct {
	Path string `desc:"Version path"`
	// contains filtered or unexported fields
}

Option contains basic configurations of version.

func NewOption

func NewOption(name string, version string, hash string, description string) *Option

NewOption creates default option.

func (*Option) Configure

func (p *Option) Configure(cfg *nirvana.Config) error

Configure configures nirvana config via current options.

func (*Option) Name

func (p *Option) Name() string

Name returns plugin name.

Jump to

Keyboard shortcuts

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