servactive

package
v3.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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 DefaultService() service.Service

func ReplaceWizard

func ReplaceWizard(config ConstructorConfig) (service.Service, error)

func ValidatePort

func ValidatePort(p service.Port) error

func ValidateService

func ValidateService(service service.Service) error

func Wizard

func Wizard(config ConstructorConfig) (service.Service, error)

Types

type ConstructorConfig

type ConstructorConfig struct {
	External    bool
	Deployments []string
	Service     *service.Service
}

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"`
}

func (Flags) Service

func (flags Flags) Service() (service.Service, error)

Jump to

Keyboard shortcuts

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