nginx_gateway

package
v0.0.0-...-4685c53 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLabelSuffix = "-gw"
	DefaultPathSuffix  = "/v1"
	DefaultLabel       = nginx.DefaultLabel + DefaultLabelSuffix
)

Variables

This section is empty.

Functions

func NewWithConfig

func NewWithConfig(c Config) (Task, error)

Types

type Config

type Config struct {
	Label_ string     `json:"label,omitempty"`
	Prefix string     `json:"prefix,omitempty"`
	Nginx  types.Task `json:"nginx"`  // plugin.Nginx
	Router types.Task `json:"router"` // plugin.Router
}

func (Config) Label

func (c Config) Label() string

func (Config) Name

func (c Config) Name() string

func (Config) New

func (c Config) New(ctx context.Context, provider Provider) (Task, error)

Jump to

Keyboard shortcuts

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