Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateRegToken(clusterRegInfo mc.ClusterRegistrationInfo) (string, error)
- func GetAPIKey(client http.ClientI, token string) (string, error)
- func GetClusterRegInfo(admInfo madmin.InfoMessage) mc.ClusterRegistrationInfo
- func GetLicenseInfoFromJWT(license string, publicKeys []string) (*licverifier.LicenseInfo, error)
- type LicenseTokenConfig
- type LoginResp
- type MfaReq
Constants ¶
View Source
const (
// SubnetURL url
SubnetURL = "CONSOLE_SUBNET_URL"
)
Variables ¶
View Source
var OfflinePublicKeys = []string{
`-----BEGIN PUBLIC KEY-----
MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEaK31xujr6/rZ7ZfXZh3SlwovjC+X8wGq
qkltaKyTLRENd4w3IRktYYCRgzpDLPn/nrf7snV/ERO5qcI7fkEES34IVEr+2Uff
JkO2PfyyAYEO/5dBlPh1Undu9WQl6J7B
-----END PUBLIC KEY-----`,
}
OfflinePublicKeys is the public key for subnet
Functions ¶
func GenerateRegToken ¶
func GenerateRegToken(clusterRegInfo mc.ClusterRegistrationInfo) (string, error)
GenerateRegToken generate a token
func GetClusterRegInfo ¶
func GetClusterRegInfo(admInfo madmin.InfoMessage) mc.ClusterRegistrationInfo
GetClusterRegInfo returns cluster info
func GetLicenseInfoFromJWT ¶
func GetLicenseInfoFromJWT(license string, publicKeys []string) (*licverifier.LicenseInfo, error)
GetLicenseInfoFromJWT will return license metadata from a jwt string license
Types ¶
type LicenseTokenConfig ¶
LicenseTokenConfig holds registration cfg
Click to show internal directories.
Click to hide internal directories.