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
// 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() (*HTTPServerSpec, []*PipelineSpec)
Translate translates HTTPProxyOptions to HTTPServerSpec and PipelineSpec.
type HTTPProxyRule ¶
HTTPProxyRule is the rule of HTTPProxy.
type HTTPServerSpec ¶
type HTTPServerSpec struct {
Name string `json:"name"`
Kind string `json:"kind"`
httpserver.Spec `json:",inline"`
}
HTTPServerSpec is the spec of HTTPServer.
Click to show internal directories.
Click to hide internal directories.