nginx

package
v0.0.0-...-1e14d63 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MarkerEnvironment  = "environment"
	MarkerApp          = "app"
	MarkerComponent    = "component"
	MarkerGateway      = "gateway"
	MarkerPublishedApi = "published_api"

	// ACM dimensions
	AcmInfraWorkspacesNameDimension   = "acm_infra_workspaces_name"
	AcmServiceWorkspacesNameDimension = "acm_service_workspaces_name"
	AcmEnvironmentsNameDimension      = "acm_environments_name"
	AcmEnvironmentsTypeDimension      = "acm_environments_type"
	AcmApiProxyNameDimension          = "acm_api_proxy_name"
	AcmApiProxyHostnameDimension      = "acm_api_proxy_hostname"
	AcmProxyApiVersionDimension       = "acm_api_proxy_version"
)
View Source
const (
	NGINXBin           = "/usr/sbin/nginx"
	NGINXStdOutLogFile = "./nginx-out.log"
	NGINXStdErrLogFile = "./nginx-err.log"
	ConfigFile         = "/etc/nginx/nginx.conf"
)
View Source
const (
	NginxConfTemplate = `` /* 379-byte string literal not displayed */

	HttpBlockTemplate = `` /* 341-byte string literal not displayed */

	StreamBlockTemplate = `` /* 343-byte string literal not displayed */

	ServerBlockTemplate = `` /* 236-byte string literal not displayed */

	StreamServerBlockTemplate = `` /* 229-byte string literal not displayed */

	LocationBlockTemplate = `` /* 214-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpBlock

type HttpBlock struct {
	F5MetricsServer  string
	F5MetricsMarkers map[string]string
	Upstreams        map[string]Upstream
	Servers          []Server
}

func (HttpBlock) Build

func (c HttpBlock) Build() (string, error)

type Location

type Location struct {
	F5MetricsMarkers map[string]string
	UpstreamName     string
	Directives       []string
}

func (Location) Build

func (c Location) Build() (string, error)

type NginxCommand

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

func NewNginxCommand

func NewNginxCommand(conf *NginxConf) (*NginxCommand, error)

func (*NginxCommand) Start

func (c *NginxCommand) Start(t *testing.T)

type NginxConf

type NginxConf struct {
	HttpBlock   *HttpBlock
	StreamBlock *StreamBlock
}

func NewNginxConf

func NewNginxConf() *NginxConf

func (NginxConf) Build

func (c NginxConf) Build() (string, error)

type Server

type Server struct {
	Listen           string
	F5MetricsMarkers map[string]string
	Locations        map[string]Location
}

func (Server) Build

func (c Server) Build() (string, error)

type StreamBlock

type StreamBlock struct {
	F5MetricsServer  string
	F5MetricsMarkers map[string]string
	Upstreams        map[string]Upstream
	Servers          []StreamServer
}

func (StreamBlock) Build

func (c StreamBlock) Build() (string, error)

type StreamServer

type StreamServer struct {
	Listen           string
	F5MetricsMarkers map[string]string
	UpstreamName     string
	Directives       []string
}

func (StreamServer) Build

func (c StreamServer) Build() (string, error)

type Upstream

type Upstream struct {
	Server string
}

Jump to

Keyboard shortcuts

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