builder

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const (
	NginxVersion           = "1.26.0"
	NginxDownloadURLPrefix = "https://nginx.org/download"
)

nginx

View Source
const (
	PcreVersion           = "10.43"
	PcreDownloadURLPrefix = "https://github.com/PCRE2Project/pcre2/releases/download"
)

pcre

View Source
const (
	OpenSSLVersion           = "3.3.0"
	OpenSSLDownloadURLPrefix = "https://www.openssl.org/source"
)

openssl

View Source
const (
	LibreSSLVersion           = "3.9.1"
	LibreSSLDownloadURLPrefix = "https://ftp.openbsd.org/pub/OpenBSD/LibreSSL"
)

libressl

View Source
const (
	ZlibVersion           = "1.3.1"
	ZlibDownloadURLPrefix = "https://zlib.net"
)

zlib

View Source
const (
	OpenRestyVersion           = "1.25.3.1"
	OpenRestyDownloadURLPrefix = "https://openresty.org/download"
)

openResty

View Source
const (
	FreenginxVersion           = "1.26.0"
	FreenginxDownloadURLPrefix = "https://freenginx.org/download"
)

freenginx

View Source
const (
	ComponentNginx = iota
	ComponentOpenResty
	ComponentFreenginx
	ComponentPcre
	ComponentOpenSSL
	ComponentLibreSSL
	ComponentZlib
	ComponentMax
)

component enumerations

Variables

This section is empty.

Functions

func BuildNginx

func BuildNginx(jobs int) error

func IsSameVersion added in v0.9.11

func IsSameVersion(builders []Builder) (bool, error)

Types

type Builder

type Builder struct {
	Version           string
	DownloadURLPrefix string
	Component         int
	// for dependencies such as pcre and zlib and openssl
	Static bool
}

func MakeBuilder

func MakeBuilder(component int, version string) Builder

func MakeLibraryBuilder added in v0.9.11

func MakeLibraryBuilder(component int, version string, static bool) Builder

func (*Builder) ArchivePath

func (builder *Builder) ArchivePath() string

func (*Builder) DownloadURL

func (builder *Builder) DownloadURL() string

func (*Builder) InstalledVersion added in v0.9.11

func (builder *Builder) InstalledVersion() (string, error)

func (*Builder) IsIncludeWithOption

func (builder *Builder) IsIncludeWithOption(nginxConfigure string) bool

func (*Builder) LogPath

func (builder *Builder) LogPath() string

func (*Builder) SourcePath

func (builder *Builder) SourcePath() string

func (*Builder) WarnMsgWithLibrary

func (builder *Builder) WarnMsgWithLibrary() string

type StaticLibrary

type StaticLibrary struct {
	Name    string
	Version string
	Option  string
}

func MakeStaticLibrary

func MakeStaticLibrary(builder *Builder) StaticLibrary

Jump to

Keyboard shortcuts

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