github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/libkb/uigroup.go (about) 1 // Copyright 2015 Keybase, Inc. All rights reserved. Use of 2 // this source code is governed by the included BSD license. 3 4 package libkb 5 6 import "fmt" 7 8 type UIKind int 9 10 const ( 11 GPGUIKind UIKind = iota 12 IdentifyUIKind 13 LogUIKind 14 LoginUIKind 15 ProveUIKind 16 SecretUIKind 17 ProvisionUIKind 18 PgpUIKind 19 UpdateUIKind 20 SaltpackUIKind 21 RekeyUIKind 22 HomeUIKind 23 Identify3UIKind 24 ChatUIKind 25 ) 26 27 func (u UIKind) String() string { 28 switch u { 29 case GPGUIKind: 30 return "GPGUI" 31 case IdentifyUIKind: 32 return "IdentifyUI" 33 case LogUIKind: 34 return "LogUI" 35 case LoginUIKind: 36 return "LoginUI" 37 case ProveUIKind: 38 return "ProveUI" 39 case SecretUIKind: 40 return "SecretUI" 41 case ProvisionUIKind: 42 return "ProvisionUI" 43 case PgpUIKind: 44 return "PgpUI" 45 case UpdateUIKind: 46 return "UpdateUI" 47 case SaltpackUIKind: 48 return "SaltpackUI" 49 case RekeyUIKind: 50 return "RekeyUI" 51 case HomeUIKind: 52 return "HomeUI" 53 case Identify3UIKind: 54 return "Identify3UIKind" 55 case ChatUIKind: 56 return "ChatUI" 57 } 58 panic(fmt.Sprintf("unhandled uikind: %d", u)) 59 }