github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/pkg/configuration/config_manager/signal_windows.go (about) 1 //go:build windows 2 3 /* 4 Copyright (C) 2022-2023 ApeCloud Co., Ltd 5 6 This file is part of KubeBlocks project 7 8 This program is free software: you can redistribute it and/or modify 9 it under the terms of the GNU Affero General Public License as published by 10 the Free Software Foundation, either version 3 of the License, or 11 (at your option) any later version. 12 13 This program is distributed in the hope that it will be useful 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU Affero General Public License for more details. 17 18 You should have received a copy of the GNU Affero General Public License 19 along with this program. If not, see <http://www.gnu.org/licenses/>. 20 */ 21 22 package configmanager 23 24 import ( 25 "os" 26 "syscall" 27 28 appsv1alpha1 "github.com/1aal/kubeblocks/apis/apps/v1alpha1" 29 ) 30 31 var allUnixSignals = map[appsv1alpha1.SignalType]os.Signal{ 32 appsv1alpha1.SIGHUP: syscall.SIGHUP, 33 appsv1alpha1.SIGINT: syscall.SIGINT, 34 appsv1alpha1.SIGQUIT: syscall.SIGQUIT, 35 appsv1alpha1.SIGILL: syscall.SIGILL, 36 appsv1alpha1.SIGTRAP: syscall.SIGTRAP, 37 appsv1alpha1.SIGABRT: syscall.SIGABRT, 38 appsv1alpha1.SIGBUS: syscall.SIGBUS, 39 appsv1alpha1.SIGFPE: syscall.SIGFPE, 40 appsv1alpha1.SIGKILL: syscall.SIGKILL, 41 appsv1alpha1.SIGSEGV: syscall.SIGSEGV, 42 appsv1alpha1.SIGPIPE: syscall.SIGPIPE, 43 appsv1alpha1.SIGALRM: syscall.SIGALRM, 44 appsv1alpha1.SIGTERM: syscall.SIGTERM, 45 }