Documentation ¶
Index ¶
- Constants
- Variables
- func BoolP(value bool) *bool
- func CheckPasswordHash(hashVal, userPw string) bool
- func Contains(s []string, str string) bool
- func CreateJWT(accountId string, uId string, organizationId string) (string, error)
- func DeepCopy(src, dest interface{}) error
- func GenerateApplicaionGroupId() string
- func GenerateClusterId() string
- func GenerateEmailCode(ctx context.Context) (string, error)
- func GenerateOrganizationId() string
- func GenerateRandomString(length int) string
- func HashPassword(password string) (string, error)
- func IsDurationExpired(targetTime time.Time, duration time.Duration) bool
- func ModelToJson(in any) string
- func NilUUID() uuid.UUID
- func RetrieveClaims(token *jwt.Token) (map[string]interface{}, error)
- func SplitAddress(ctx context.Context, url string) (address string, port int)
- func StringP(value string) *string
- func StringToTokenWithoutVerification(tokenString string) (*jwt.Token, error)
- func ToSnakeCase(str string) string
- func UUIDP(value uuid.UUID) *uuid.UUID
- func ValidateApplicationGroupId(id string) bool
- func ValidateClusterId(id string) bool
- func ValidateOrganizationId(id string) bool
- func VerifyToken(tokenString string) (*jwt.Token, error)
- type LogicSshWsSession
Constants ¶
View Source
const LETTERS_FOR_ID = "abcdefghijklmnopqrstuvwxyz0123456789" // lowercase RFC 1123
Variables ¶
View Source
var ( TKS_ADMIN = "tks-admin" PREFIX_USER_ID = "u" PREFIX_CLUSTER_ID = "c" PREFIX_ORGANIZATION_ID = "o" PREFIX_APPLICATION_GROUP_ID = "a" ID_LENGTH = 9 )
Functions ¶
func CheckPasswordHash ¶
func GenerateApplicaionGroupId ¶
func GenerateApplicaionGroupId() string
func GenerateClusterId ¶
func GenerateClusterId() string
func GenerateOrganizationId ¶
func GenerateOrganizationId() string
func GenerateRandomString ¶
func HashPassword ¶
func ModelToJson ¶
func RetrieveClaims ¶
func ToSnakeCase ¶
func ValidateClusterId ¶
func ValidateOrganizationId ¶
func VerifyToken ¶
Types ¶
type LogicSshWsSession ¶
type LogicSshWsSession struct { IsFlagged bool // contains filtered or unexported fields }
func NewLogicSshWsSession ¶
func (*LogicSshWsSession) Close ¶
func (sws *LogicSshWsSession) Close()
func (*LogicSshWsSession) LogString ¶
func (sws *LogicSshWsSession) LogString() string
func (*LogicSshWsSession) Start ¶
func (sws *LogicSshWsSession) Start(quitChan chan bool)
func (*LogicSshWsSession) Wait ¶
func (sws *LogicSshWsSession) Wait(quitChan chan bool)
Click to show internal directories.
Click to hide internal directories.