Documentation
¶
Index ¶
- Constants
- func AppFlags(options *opt.DaemonOptions) []cli.Flag
- func CleanActionFlag(options *opt.DaemonOptions) []cli.Flag
- func CleanupWorkspace()
- func CombineKubeOpts() error
- func ConnectActionFlag(options *opt.DaemonOptions) []cli.Flag
- func CreateShadowAndInbound(shadowPodName, portsToExpose string, labels, annotations map[string]string) error
- func ExchangeActionFlag(options *opt.DaemonOptions) []cli.Flag
- func GetDeploymentByResourceName(resourceName, namespace string) (*appV1.Deployment, error)
- func GetServiceByResourceName(resourceName, namespace string) (*coreV1.Service, error)
- func LockService(serviceName, namespace string, times int) (*coreV1.Service, error)
- func MeshActionFlag(options *opt.DaemonOptions) []cli.Flag
- func NewCliAuthor() []cli.Author
- func ParseResourceName(resourceName string) (string, string, error)
- func PreviewActionFlag(options *opt.DaemonOptions) []cli.Flag
- func RecoverOriginalService(svcName, namespace string)
- func SetupProcess(componentName string, ch chan os.Signal) error
- func UnlockService(serviceName, namespace string)
- func UpdateServiceSelector(svcName, namespace string, selector map[string]string) error
Constants ¶
View Source
const LockTimeout = 3 * 60
LockTimeout 3 minutes
Variables ¶
This section is empty.
Functions ¶
func CleanActionFlag ¶
func CleanActionFlag(options *opt.DaemonOptions) []cli.Flag
func CombineKubeOpts ¶
func CombineKubeOpts() error
CombineKubeOpts set default options of kubectl if not assign
func ConnectActionFlag ¶
func ConnectActionFlag(options *opt.DaemonOptions) []cli.Flag
ConnectActionFlag ...
func CreateShadowAndInbound ¶ added in v0.2.4
func ExchangeActionFlag ¶
func ExchangeActionFlag(options *opt.DaemonOptions) []cli.Flag
func GetDeploymentByResourceName ¶ added in v0.3.0
func GetDeploymentByResourceName(resourceName, namespace string) (*appV1.Deployment, error)
func GetServiceByResourceName ¶ added in v0.2.4
func LockService ¶ added in v0.3.0
func MeshActionFlag ¶
func MeshActionFlag(options *opt.DaemonOptions) []cli.Flag
func ParseResourceName ¶ added in v0.3.0
func PreviewActionFlag ¶ added in v0.3.0
func PreviewActionFlag(options *opt.DaemonOptions) []cli.Flag
func RecoverOriginalService ¶
func RecoverOriginalService(svcName, namespace string)
func SetupProcess ¶
SetupProcess write pid file and print setup message
func UnlockService ¶ added in v0.2.4
func UnlockService(serviceName, namespace string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.