Documentation
¶
Index ¶
- Constants
- func CleanupWorkspace()
- func CreateShadowAndInbound(shadowPodName, portsToExpose string, labels, annotations map[string]string, ...) error
- func GetDeploymentByResourceName(resourceName, namespace string) (*appV1.Deployment, error)
- func GetOccupiedUser(labels map[string]string) string
- func GetServiceByResourceName(resourceName, namespace string) (*coreV1.Service, error)
- func GetTargetPorts(svc *coreV1.Service) map[int]string
- func LockService(serviceName, namespace string, times int) (*coreV1.Service, error)
- func ParseResourceName(resourceName string) (string, string, error)
- func Prepare() error
- func RecoverOriginalService(svcName, namespace string)
- func SetupLogger()
- func SetupProcess(componentName string) (chan os.Signal, error)
- func SimpleSubCommand(name, usage string, action func(args []string) error, ...) *cobra.Command
- func UnlockService(serviceName, namespace string)
- func UpdateServiceSelector(svcName, namespace string, selector map[string]string) error
- func UsageTemplate(showInheritedFlags bool) string
Constants ¶
View Source
const LockTimeout = 3 * 60
LockTimeout 3 minutes
Variables ¶
This section is empty.
Functions ¶
func CreateShadowAndInbound ¶
func GetDeploymentByResourceName ¶
func GetDeploymentByResourceName(resourceName, namespace string) (*appV1.Deployment, error)
func GetOccupiedUser ¶
func LockService ¶
func RecoverOriginalService ¶
func RecoverOriginalService(svcName, namespace string)
func SetupLogger ¶
func SetupLogger()
func SetupProcess ¶
SetupProcess write pid file and set component type
func SimpleSubCommand ¶
func UnlockService ¶
func UnlockService(serviceName, namespace string)
func UpdateServiceSelector ¶
func UsageTemplate ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.