Documentation ¶
Overview ¶
Package create provides create commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPProxyCmd ¶
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.
Click to show internal directories.
Click to hide internal directories.