Documentation
¶
Index ¶
- Constants
- func DefaultService() service.Service
- func ReplaceWizard(config ConstructorConfig) (service.Service, error)
- func ValidatePort(p service.Port) error
- func ValidateService(service service.Service) error
- func Wizard(config ConstructorConfig) (service.Service, error)
- type ConstructorConfig
- type Flags
Constants ¶
View Source
const (
ErrInvalidPort chkitErrors.Err = "invalid port"
)
View Source
const (
ErrInvalidService chkitErrors.Err = "invalid service"
)
Variables ¶
This section is empty.
Functions ¶
func DefaultService ¶
func ReplaceWizard ¶
func ReplaceWizard(config ConstructorConfig) (service.Service, error)
func ValidatePort ¶
func ValidateService ¶
Types ¶
type ConstructorConfig ¶
type Flags ¶
type Flags struct {
Force bool `flag:"force f" desc:"suppress confirmation, optional"`
Name string `desc:"service name, optional"`
Deployment string `desc:"service deployment, required"`
TargetPort int `desc:"service target port, optional"`
Port int `desc:"service port, optional"`
Protocol string `desc:"service protocol, optional"`
PortName string `desc:"service port name, optional"`
}
Click to show internal directories.
Click to hide internal directories.