version

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NginxVersion

type NginxVersion struct {
	Full             string
	Version          string
	Detail           string
	IsPlus           bool
	AdditionalDetail []string
	ConfigureArgs    *orderedmap.OrderedMap
}

NginxVersion contains details parsed from the "nginx -v" command.

func ReadNginxVersion

func ReadNginxVersion(nginxBinPath string) (NginxVersion, error)

ReadNginxVersion parses the output of the "nginx -V" command into a consumable data structure.

func (NginxVersion) Info

func (nv NginxVersion) Info() string

Info contains a dump of all version information.

func (NginxVersion) String

func (nv NginxVersion) String() string

Jump to

Keyboard shortcuts

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