mirror of
https://github.com/OpenMaxIO/openmaxio-object-browser
synced 2026-07-01 07:41:18 -07:00
Renamed Subnet strings to SUBNET (#3026)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
@@ -83,7 +83,7 @@ func ProcessUploadInfo(info interface{}, uploadType string, filename string) ([]
|
|||||||
if uploadType == "health" {
|
if uploadType == "health" {
|
||||||
return processHealthReport(info, filename)
|
return processHealthReport(info, filename)
|
||||||
}
|
}
|
||||||
return nil, "", errors.New("invalid Subnet upload type")
|
return nil, "", errors.New("invalid SUBNET upload type")
|
||||||
}
|
}
|
||||||
|
|
||||||
func UploadFileToSubnet(info []byte, client *xhttp.Client, reqURL string, headers map[string]string, formDataType string) (string, error) {
|
func UploadFileToSubnet(info []byte, client *xhttp.Client, reqURL string, headers map[string]string, formDataType string) (string, error) {
|
||||||
|
|||||||
@@ -1711,9 +1711,10 @@ export class HttpClient<SecurityDataType = unknown> {
|
|||||||
? { "Content-Type": type }
|
? { "Content-Type": type }
|
||||||
: {}),
|
: {}),
|
||||||
},
|
},
|
||||||
signal: cancelToken
|
signal:
|
||||||
? this.createAbortSignal(cancelToken)
|
(cancelToken
|
||||||
: requestParams.signal,
|
? this.createAbortSignal(cancelToken)
|
||||||
|
: requestParams.signal) || null,
|
||||||
body:
|
body:
|
||||||
typeof body === "undefined" || body === null
|
typeof body === "undefined" || body === null
|
||||||
? null
|
? null
|
||||||
@@ -4001,7 +4002,7 @@ export class Api<
|
|||||||
*
|
*
|
||||||
* @tags Subnet
|
* @tags Subnet
|
||||||
* @name SubnetRegToken
|
* @name SubnetRegToken
|
||||||
* @summary Subnet registraton token
|
* @summary SUBNET registraton token
|
||||||
* @request GET:/subnet/registration-token
|
* @request GET:/subnet/registration-token
|
||||||
* @secure
|
* @secure
|
||||||
*/
|
*/
|
||||||
@@ -4080,7 +4081,7 @@ export class Api<
|
|||||||
*
|
*
|
||||||
* @tags Subnet
|
* @tags Subnet
|
||||||
* @name SubnetLogin
|
* @name SubnetLogin
|
||||||
* @summary Login to subnet
|
* @summary Login to SUBNET
|
||||||
* @request POST:/subnet/login
|
* @request POST:/subnet/login
|
||||||
* @secure
|
* @secure
|
||||||
*/
|
*/
|
||||||
@@ -4100,7 +4101,7 @@ export class Api<
|
|||||||
*
|
*
|
||||||
* @tags Subnet
|
* @tags Subnet
|
||||||
* @name SubnetLoginMfa
|
* @name SubnetLoginMfa
|
||||||
* @summary Login to subnet using mfa
|
* @summary Login to SUBNET using mfa
|
||||||
* @request POST:/subnet/login/mfa
|
* @request POST:/subnet/login/mfa
|
||||||
* @secure
|
* @secure
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -248,12 +248,12 @@ const HealthInfo = () => {
|
|||||||
!subnetResponse.toLowerCase().includes("error") && (
|
!subnetResponse.toLowerCase().includes("error") && (
|
||||||
<Grid item xs={12}>
|
<Grid item xs={12}>
|
||||||
<strong>
|
<strong>
|
||||||
Health report uploaded to Subnet successfully!
|
Health report uploaded to SUBNET successfully!
|
||||||
</strong>
|
</strong>
|
||||||
{" "}
|
{" "}
|
||||||
<strong>
|
<strong>
|
||||||
See the results on your{" "}
|
See the results on your{" "}
|
||||||
<a href={subnetResponse}>Subnet Dashboard</a>{" "}
|
<a href={subnetResponse}>SUBNET Dashboard</a>{" "}
|
||||||
</strong>
|
</strong>
|
||||||
</Grid>
|
</Grid>
|
||||||
)}
|
)}
|
||||||
@@ -263,12 +263,12 @@ const HealthInfo = () => {
|
|||||||
<Grid item xs={12}>
|
<Grid item xs={12}>
|
||||||
<strong>
|
<strong>
|
||||||
Something went wrong uploading your Health report to
|
Something went wrong uploading your Health report to
|
||||||
Subnet.
|
SUBNET.
|
||||||
</strong>
|
</strong>
|
||||||
{" "}
|
{" "}
|
||||||
<strong>
|
<strong>
|
||||||
Log into your{" "}
|
Log into your{" "}
|
||||||
<a href="https://subnet.min.io">Subnet Account</a> to
|
<a href="https://subnet.min.io">SUBNET Account</a> to
|
||||||
manually upload your Health report.
|
manually upload your Health report.
|
||||||
</strong>
|
</strong>
|
||||||
</Grid>
|
</Grid>
|
||||||
@@ -330,7 +330,7 @@ const HealthInfo = () => {
|
|||||||
<br />
|
<br />
|
||||||
<HelpBox
|
<HelpBox
|
||||||
title={
|
title={
|
||||||
"Cluster Health Report will be uploaded to Subnet, and is viewable from your Subnet Diagnostics dashboard."
|
"Cluster Health Report will be uploaded to SUBNET, and is viewable from your SUBNET Diagnostics dashboard."
|
||||||
}
|
}
|
||||||
iconComponent={<InfoIcon />}
|
iconComponent={<InfoIcon />}
|
||||||
help={
|
help={
|
||||||
|
|||||||
@@ -4753,7 +4753,7 @@ func init() {
|
|||||||
"tags": [
|
"tags": [
|
||||||
"Subnet"
|
"Subnet"
|
||||||
],
|
],
|
||||||
"summary": "Login to subnet",
|
"summary": "Login to SUBNET",
|
||||||
"operationId": "SubnetLogin",
|
"operationId": "SubnetLogin",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
@@ -4786,7 +4786,7 @@ func init() {
|
|||||||
"tags": [
|
"tags": [
|
||||||
"Subnet"
|
"Subnet"
|
||||||
],
|
],
|
||||||
"summary": "Login to subnet using mfa",
|
"summary": "Login to SUBNET using mfa",
|
||||||
"operationId": "SubnetLoginMFA",
|
"operationId": "SubnetLoginMFA",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
@@ -4849,7 +4849,7 @@ func init() {
|
|||||||
"tags": [
|
"tags": [
|
||||||
"Subnet"
|
"Subnet"
|
||||||
],
|
],
|
||||||
"summary": "Subnet registraton token",
|
"summary": "SUBNET registraton token",
|
||||||
"operationId": "SubnetRegToken",
|
"operationId": "SubnetRegToken",
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
@@ -13829,7 +13829,7 @@ func init() {
|
|||||||
"tags": [
|
"tags": [
|
||||||
"Subnet"
|
"Subnet"
|
||||||
],
|
],
|
||||||
"summary": "Login to subnet",
|
"summary": "Login to SUBNET",
|
||||||
"operationId": "SubnetLogin",
|
"operationId": "SubnetLogin",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
@@ -13862,7 +13862,7 @@ func init() {
|
|||||||
"tags": [
|
"tags": [
|
||||||
"Subnet"
|
"Subnet"
|
||||||
],
|
],
|
||||||
"summary": "Login to subnet using mfa",
|
"summary": "Login to SUBNET using mfa",
|
||||||
"operationId": "SubnetLoginMFA",
|
"operationId": "SubnetLoginMFA",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
@@ -13925,7 +13925,7 @@ func init() {
|
|||||||
"tags": [
|
"tags": [
|
||||||
"Subnet"
|
"Subnet"
|
||||||
],
|
],
|
||||||
"summary": "Subnet registraton token",
|
"summary": "SUBNET registraton token",
|
||||||
"operationId": "SubnetRegToken",
|
"operationId": "SubnetRegToken",
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ var (
|
|||||||
ErrEncryptionConfigNotFound = errors.New("encryption configuration not found")
|
ErrEncryptionConfigNotFound = errors.New("encryption configuration not found")
|
||||||
ErrPolicyNotFound = errors.New("policy does not exist")
|
ErrPolicyNotFound = errors.New("policy does not exist")
|
||||||
ErrLoginNotAllowed = errors.New("login not allowed")
|
ErrLoginNotAllowed = errors.New("login not allowed")
|
||||||
ErrSubnetUploadFail = errors.New("Subnet upload failed")
|
ErrSubnetUploadFail = errors.New("SUBNET upload failed")
|
||||||
ErrHealthReportFail = errors.New("failure to generate Health report")
|
ErrHealthReportFail = errors.New("failure to generate Health report")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ func NewSubnetLogin(ctx *middleware.Context, handler SubnetLoginHandler) *Subnet
|
|||||||
/*
|
/*
|
||||||
SubnetLogin swagger:route POST /subnet/login Subnet subnetLogin
|
SubnetLogin swagger:route POST /subnet/login Subnet subnetLogin
|
||||||
|
|
||||||
Login to subnet
|
Login to SUBNET
|
||||||
*/
|
*/
|
||||||
type SubnetLogin struct {
|
type SubnetLogin struct {
|
||||||
Context *middleware.Context
|
Context *middleware.Context
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ func NewSubnetLoginMFA(ctx *middleware.Context, handler SubnetLoginMFAHandler) *
|
|||||||
/*
|
/*
|
||||||
SubnetLoginMFA swagger:route POST /subnet/login/mfa Subnet subnetLoginMFA
|
SubnetLoginMFA swagger:route POST /subnet/login/mfa Subnet subnetLoginMFA
|
||||||
|
|
||||||
Login to subnet using mfa
|
Login to SUBNET using mfa
|
||||||
*/
|
*/
|
||||||
type SubnetLoginMFA struct {
|
type SubnetLoginMFA struct {
|
||||||
Context *middleware.Context
|
Context *middleware.Context
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ func NewSubnetRegToken(ctx *middleware.Context, handler SubnetRegTokenHandler) *
|
|||||||
/*
|
/*
|
||||||
SubnetRegToken swagger:route GET /subnet/registration-token Subnet subnetRegToken
|
SubnetRegToken swagger:route GET /subnet/registration-token Subnet subnetRegToken
|
||||||
|
|
||||||
Subnet registraton token
|
SUBNET registraton token
|
||||||
*/
|
*/
|
||||||
type SubnetRegToken struct {
|
type SubnetRegToken struct {
|
||||||
Context *middleware.Context
|
Context *middleware.Context
|
||||||
|
|||||||
@@ -2394,7 +2394,7 @@ paths:
|
|||||||
- Profile
|
- Profile
|
||||||
/subnet/registration-token:
|
/subnet/registration-token:
|
||||||
get:
|
get:
|
||||||
summary: Subnet registraton token
|
summary: SUBNET registraton token
|
||||||
operationId: SubnetRegToken
|
operationId: SubnetRegToken
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
@@ -2466,7 +2466,7 @@ paths:
|
|||||||
|
|
||||||
/subnet/login:
|
/subnet/login:
|
||||||
post:
|
post:
|
||||||
summary: Login to subnet
|
summary: Login to SUBNET
|
||||||
operationId: SubnetLogin
|
operationId: SubnetLogin
|
||||||
parameters:
|
parameters:
|
||||||
- name: body
|
- name: body
|
||||||
@@ -2488,7 +2488,7 @@ paths:
|
|||||||
|
|
||||||
/subnet/login/mfa:
|
/subnet/login/mfa:
|
||||||
post:
|
post:
|
||||||
summary: Login to subnet using mfa
|
summary: Login to SUBNET using mfa
|
||||||
operationId: SubnetLoginMFA
|
operationId: SubnetLoginMFA
|
||||||
parameters:
|
parameters:
|
||||||
- name: body
|
- name: body
|
||||||
|
|||||||
Reference in New Issue
Block a user