github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/cmd/authn/const.go (about) 1 // Package authn is authentication server for AIStore. 2 /* 3 * Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved. 4 */ 5 package main 6 7 import "time" 8 9 const ( 10 ClusterOwnerRole = "ClusterOwner" 11 BucketOwnerRole = "BucketOwner" 12 GuestRole = "Guest" 13 ) 14 15 const ( 16 usersCollection = "user" 17 rolesCollection = "role" 18 revokedCollection = "revoked" 19 clustersCollection = "cluster" 20 21 adminUserID = "admin" 22 adminUserPass = "admin" 23 24 foreverTokenTime = 24 * 365 * 20 * time.Hour // kind of never-expired token 25 )