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)
- func GetOrganizations(client http.ClientI, token string) ([]*models.SubnetOrganization, error)
- func LogWebhookURL() string
- func ParseLicense(client http.ClientI, license string) (*licverifier.LicenseInfo, error)
- func UploadAuthHeaders(apiKey string) map[string]string
- func UploadFileToSubnet(info interface{}, client *xhttp.Client, filename string, reqURL string, ...) (string, error)
- func UploadURL(uploadType string, filename string) string
- type LicenseTokenConfig
- type LoginResp
- type MfaReq
Constants ¶
View Source
const (
// Constants for subnet configuration
ConsoleSubnetURL = "CONSOLE_SUBNET_URL"
)
Variables ¶
View Source
var OfflinePublicKeys = []string{
`-----BEGIN PUBLIC KEY-----
MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEaK31xujr6/rZ7ZfXZh3SlwovjC+X8wGq
qkltaKyTLRENd4w3IRktYYCRgzpDLPn/nrf7snV/ERO5qcI7fkEES34IVEr+2Uff
JkO2PfyyAYEO/5dBlPh1Undu9WQl6J7B
-----END PUBLIC KEY-----`,
}
Functions ¶
func GenerateRegToken ¶ added in v0.14.0
func GenerateRegToken(clusterRegInfo mc.ClusterRegistrationInfo) (string, error)
func GetClusterRegInfo ¶ added in v0.14.0
func GetClusterRegInfo(admInfo madmin.InfoMessage) mc.ClusterRegistrationInfo
func GetLicenseInfoFromJWT ¶
func GetLicenseInfoFromJWT(license string, publicKeys []string) (*licverifier.LicenseInfo, error)
GetLicenseInfoFromJWT will return license metadata from a jwt string license
func GetOrganizations ¶ added in v0.14.0
func LogWebhookURL ¶ added in v0.24.0
func LogWebhookURL() string
func ParseLicense ¶ added in v0.14.0
func ParseLicense(client http.ClientI, license string) (*licverifier.LicenseInfo, error)
ParseLicense parses the license with the bundle public key and return it's information
func UploadAuthHeaders ¶ added in v0.26.0
func UploadFileToSubnet ¶ added in v0.26.0
Types ¶
type LicenseTokenConfig ¶ added in v0.14.0
Click to show internal directories.
Click to hide internal directories.