create

package
v2.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package create provides create commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns create command.

func HTTPProxyCmd

func HTTPProxyCmd() *cobra.Command

HTTPProxyCmd returns create command of HTTPProxy.

Types

type HTTPProxyOptions

type HTTPProxyOptions struct {
	Name  string
	Port  int
	Rules []string

	TLS        bool
	AutoCert   bool
	CaCertFile string
	CertFiles  []string
	KeyFiles   []string

	AutoCertDomainName  string
	AutoCertEmail       string
	AutoCertDNSProvider []string
	// contains filtered or unexported fields
}

HTTPProxyOptions are the options to create a HTTPProxy.

func (*HTTPProxyOptions) Complete

func (o *HTTPProxyOptions) Complete(args []string)

Complete completes all the required options.

func (*HTTPProxyOptions) Parse

func (o *HTTPProxyOptions) Parse() error

Parse parses all the optional options.

func (*HTTPProxyOptions) Translate

func (o *HTTPProxyOptions) Translate() (*specs.HTTPServerSpec, []*specs.PipelineSpec)

Translate translates HTTPProxyOptions to HTTPServerSpec and PipelineSpec.

func (*HTTPProxyOptions) TranslateAutoCertManager added in v2.7.1

func (o *HTTPProxyOptions) TranslateAutoCertManager() (*specs.AutoCertManagerSpec, error)

TranslateAutoCertManager translates AutoCertManagerSpec.

type HTTPProxyRule

type HTTPProxyRule struct {
	Host       string
	Path       string
	PathPrefix string
	Endpoints  []string
}

HTTPProxyRule is the rule of HTTPProxy.

Jump to

Keyboard shortcuts

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