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 SetupProcess(componentName string) (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
View Source
const UsageTemplate = `` /* 842-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func CreateShadowAndInbound ¶ added in v0.2.4
func GetDeploymentByResourceName ¶ added in v0.3.0
func GetDeploymentByResourceName(resourceName, namespace string) (*appV1.Deployment, error)
func GetOccupiedUser ¶ added in v0.3.2
func GetServiceByResourceName ¶ added in v0.2.4
func LockService ¶ added in v0.3.0
func ParseResourceName ¶ added in v0.3.0
func Prepare ¶ added in v0.3.3
func Prepare() error
Prepare setup log level, time difference and kube config
func RecoverOriginalService ¶
func RecoverOriginalService(svcName, namespace string)
func SetupProcess ¶
SetupProcess write pid file and set component type
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.