mirror of
https://github.com/OpenMaxIO/openmaxio-object-browser
synced 2026-07-01 07:41:18 -07:00
Fix Module (#32)
This commit is contained in:
@@ -22,7 +22,7 @@ import (
|
||||
"path/filepath"
|
||||
"sort"
|
||||
|
||||
"github.com/minio/m3/mcs/pkg"
|
||||
"github.com/minio/mcs/pkg"
|
||||
|
||||
"github.com/minio/minio/pkg/console"
|
||||
"github.com/minio/minio/pkg/trie"
|
||||
|
||||
@@ -24,8 +24,8 @@ import (
|
||||
"github.com/go-openapi/loads"
|
||||
"github.com/jessevdk/go-flags"
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/m3/mcs/restapi"
|
||||
"github.com/minio/m3/mcs/restapi/operations"
|
||||
"github.com/minio/mcs/restapi"
|
||||
"github.com/minio/mcs/restapi/operations"
|
||||
)
|
||||
|
||||
// starts the server
|
||||
|
||||
@@ -20,7 +20,7 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/m3/mcs/pkg"
|
||||
"github.com/minio/mcs/pkg"
|
||||
)
|
||||
|
||||
// starts the server
|
||||
|
||||
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
||||
module github.com/minio/m3/mcs
|
||||
module github.com/minio/mcs
|
||||
|
||||
go 1.14
|
||||
|
||||
|
||||
@@ -23,9 +23,9 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
"github.com/go-openapi/swag"
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/m3/mcs/restapi/operations"
|
||||
"github.com/minio/m3/mcs/restapi/operations/admin_api"
|
||||
"github.com/minio/mcs/models"
|
||||
"github.com/minio/mcs/restapi/operations"
|
||||
"github.com/minio/mcs/restapi/operations/admin_api"
|
||||
)
|
||||
|
||||
func registerAdminArnsHandlers(api *operations.McsAPI) {
|
||||
|
||||
@@ -24,10 +24,10 @@ import (
|
||||
"github.com/go-openapi/errors"
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
"github.com/go-openapi/swag"
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/m3/mcs/restapi/operations"
|
||||
"github.com/minio/mcs/models"
|
||||
"github.com/minio/mcs/restapi/operations"
|
||||
|
||||
"github.com/minio/m3/mcs/restapi/operations/admin_api"
|
||||
"github.com/minio/mcs/restapi/operations/admin_api"
|
||||
)
|
||||
|
||||
func registerConfigHandlers(api *operations.McsAPI) {
|
||||
|
||||
@@ -22,7 +22,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/go-openapi/swag"
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
"github.com/minio/minio/pkg/madmin"
|
||||
|
||||
"errors"
|
||||
|
||||
@@ -23,12 +23,12 @@ import (
|
||||
"github.com/go-openapi/errors"
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
"github.com/go-openapi/swag"
|
||||
"github.com/minio/m3/mcs/restapi/operations"
|
||||
"github.com/minio/mcs/restapi/operations"
|
||||
"github.com/minio/minio/pkg/madmin"
|
||||
|
||||
"github.com/minio/m3/mcs/restapi/operations/admin_api"
|
||||
"github.com/minio/mcs/restapi/operations/admin_api"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
func registerGroupsHandlers(api *operations.McsAPI) {
|
||||
|
||||
@@ -23,9 +23,9 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
"github.com/go-openapi/swag"
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/m3/mcs/restapi/operations"
|
||||
"github.com/minio/m3/mcs/restapi/operations/admin_api"
|
||||
"github.com/minio/mcs/models"
|
||||
"github.com/minio/mcs/restapi/operations"
|
||||
"github.com/minio/mcs/restapi/operations/admin_api"
|
||||
)
|
||||
|
||||
func registerAdminInfoHandlers(api *operations.McsAPI) {
|
||||
|
||||
@@ -25,9 +25,9 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
"github.com/go-openapi/swag"
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/m3/mcs/restapi/operations"
|
||||
"github.com/minio/m3/mcs/restapi/operations/admin_api"
|
||||
"github.com/minio/mcs/models"
|
||||
"github.com/minio/mcs/restapi/operations"
|
||||
"github.com/minio/mcs/restapi/operations/admin_api"
|
||||
)
|
||||
|
||||
func registersPoliciesHandler(api *operations.McsAPI) {
|
||||
|
||||
@@ -23,7 +23,7 @@ import (
|
||||
|
||||
"errors"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
||||
@@ -26,9 +26,9 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
"github.com/go-openapi/swag"
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/m3/mcs/restapi/operations"
|
||||
"github.com/minio/m3/mcs/restapi/operations/admin_api"
|
||||
"github.com/minio/mcs/models"
|
||||
"github.com/minio/mcs/restapi/operations"
|
||||
"github.com/minio/mcs/restapi/operations/admin_api"
|
||||
"github.com/minio/minio/pkg/madmin"
|
||||
)
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
|
||||
"errors"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
"github.com/minio/minio/pkg/madmin"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
@@ -23,10 +23,10 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
"github.com/go-openapi/swag"
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/m3/mcs/restapi/operations"
|
||||
"github.com/minio/mcs/models"
|
||||
"github.com/minio/mcs/restapi/operations"
|
||||
|
||||
"github.com/minio/m3/mcs/restapi/operations/admin_api"
|
||||
"github.com/minio/mcs/restapi/operations/admin_api"
|
||||
)
|
||||
|
||||
func registerServiceHandlers(api *operations.McsAPI) {
|
||||
|
||||
@@ -22,11 +22,11 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
"github.com/go-openapi/swag"
|
||||
"github.com/minio/m3/mcs/restapi/operations"
|
||||
"github.com/minio/mcs/restapi/operations"
|
||||
|
||||
"github.com/minio/m3/mcs/restapi/operations/admin_api"
|
||||
"github.com/minio/mcs/restapi/operations/admin_api"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
func registerUsersHandlers(api *operations.McsAPI) {
|
||||
|
||||
@@ -24,17 +24,17 @@ import (
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/minio/m3/mcs/restapi/sessions"
|
||||
"github.com/minio/mcs/restapi/sessions"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
|
||||
assetfs "github.com/elazarl/go-bindata-assetfs"
|
||||
|
||||
portalUI "github.com/minio/m3/mcs/portal-ui"
|
||||
portalUI "github.com/minio/mcs/portal-ui"
|
||||
|
||||
"github.com/go-openapi/errors"
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/minio/m3/mcs/restapi/operations"
|
||||
"github.com/minio/mcs/restapi/operations"
|
||||
)
|
||||
|
||||
//go:generate swagger generate server --target ../../mcs --name Mcs --spec ../swagger.yml
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// AddGroupHandlerFunc turns a function with the right signature into a add group handler
|
||||
|
||||
@@ -30,7 +30,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// NewAddGroupParams creates a new AddGroupParams object
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// AddGroupCreatedCode is the HTTP code returned for type AddGroupCreated
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// AddPolicyHandlerFunc turns a function with the right signature into a add policy handler
|
||||
|
||||
@@ -30,7 +30,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// NewAddPolicyParams creates a new AddPolicyParams object
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// AddPolicyCreatedCode is the HTTP code returned for type AddPolicyCreated
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// AddUserHandlerFunc turns a function with the right signature into a add user handler
|
||||
|
||||
@@ -30,7 +30,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// NewAddUserParams creates a new AddUserParams object
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// AddUserCreatedCode is the HTTP code returned for type AddUserCreated
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// AdminInfoHandlerFunc turns a function with the right signature into a admin info handler
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// AdminInfoOKCode is the HTTP code returned for type AdminInfoOK
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// ArnListHandlerFunc turns a function with the right signature into a arn list handler
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// ArnListOKCode is the HTTP code returned for type ArnListOK
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// ConfigInfoHandlerFunc turns a function with the right signature into a config info handler
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// ConfigInfoOKCode is the HTTP code returned for type ConfigInfoOK
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// GroupInfoHandlerFunc turns a function with the right signature into a group info handler
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// GroupInfoOKCode is the HTTP code returned for type GroupInfoOK
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// ListConfigHandlerFunc turns a function with the right signature into a list config handler
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// ListConfigOKCode is the HTTP code returned for type ListConfigOK
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// ListGroupsHandlerFunc turns a function with the right signature into a list groups handler
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// ListGroupsOKCode is the HTTP code returned for type ListGroupsOK
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// ListPoliciesHandlerFunc turns a function with the right signature into a list policies handler
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// ListPoliciesOKCode is the HTTP code returned for type ListPoliciesOK
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// ListUsersHandlerFunc turns a function with the right signature into a list users handler
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// ListUsersOKCode is the HTTP code returned for type ListUsersOK
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// PolicyInfoHandlerFunc turns a function with the right signature into a policy info handler
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// PolicyInfoOKCode is the HTTP code returned for type PolicyInfoOK
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// ProfilingStartHandlerFunc turns a function with the right signature into a profiling start handler
|
||||
|
||||
@@ -30,7 +30,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// NewProfilingStartParams creates a new ProfilingStartParams object
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// ProfilingStartCreatedCode is the HTTP code returned for type ProfilingStartCreated
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// ProfilingStopHandlerFunc turns a function with the right signature into a profiling stop handler
|
||||
|
||||
@@ -28,7 +28,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// ProfilingStopCreatedCode is the HTTP code returned for type ProfilingStopCreated
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// RemoveGroupHandlerFunc turns a function with the right signature into a remove group handler
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// RemoveGroupNoContentCode is the HTTP code returned for type RemoveGroupNoContent
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// RemovePolicyHandlerFunc turns a function with the right signature into a remove policy handler
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// RemovePolicyNoContentCode is the HTTP code returned for type RemovePolicyNoContent
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// RestartServiceHandlerFunc turns a function with the right signature into a restart service handler
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// RestartServiceNoContentCode is the HTTP code returned for type RestartServiceNoContent
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// SetConfigHandlerFunc turns a function with the right signature into a set config handler
|
||||
|
||||
@@ -31,7 +31,7 @@ import (
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// NewSetConfigParams creates a new SetConfigParams object
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// SetConfigNoContentCode is the HTTP code returned for type SetConfigNoContent
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// SetPolicyHandlerFunc turns a function with the right signature into a set policy handler
|
||||
|
||||
@@ -31,7 +31,7 @@ import (
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// NewSetPolicyParams creates a new SetPolicyParams object
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// SetPolicyNoContentCode is the HTTP code returned for type SetPolicyNoContent
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// UpdateGroupHandlerFunc turns a function with the right signature into a update group handler
|
||||
|
||||
@@ -31,7 +31,7 @@ import (
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// NewUpdateGroupParams creates a new UpdateGroupParams object
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// UpdateGroupOKCode is the HTTP code returned for type UpdateGroupOK
|
||||
|
||||
@@ -36,9 +36,9 @@ import (
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/m3/mcs/restapi/operations/admin_api"
|
||||
"github.com/minio/m3/mcs/restapi/operations/user_api"
|
||||
"github.com/minio/mcs/models"
|
||||
"github.com/minio/mcs/restapi/operations/admin_api"
|
||||
"github.com/minio/mcs/restapi/operations/user_api"
|
||||
)
|
||||
|
||||
// NewMcsAPI creates a new Mcs instance
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// BucketInfoHandlerFunc turns a function with the right signature into a bucket info handler
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// BucketInfoOKCode is the HTTP code returned for type BucketInfoOK
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// BucketSetPolicyHandlerFunc turns a function with the right signature into a bucket set policy handler
|
||||
|
||||
@@ -31,7 +31,7 @@ import (
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// NewBucketSetPolicyParams creates a new BucketSetPolicyParams object
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// BucketSetPolicyOKCode is the HTTP code returned for type BucketSetPolicyOK
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// CreateBucketEventHandlerFunc turns a function with the right signature into a create bucket event handler
|
||||
|
||||
@@ -31,7 +31,7 @@ import (
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// NewCreateBucketEventParams creates a new CreateBucketEventParams object
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// CreateBucketEventCreatedCode is the HTTP code returned for type CreateBucketEventCreated
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// DeleteBucketHandlerFunc turns a function with the right signature into a delete bucket handler
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// DeleteBucketNoContentCode is the HTTP code returned for type DeleteBucketNoContent
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// ListBucketEventsHandlerFunc turns a function with the right signature into a list bucket events handler
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// ListBucketEventsOKCode is the HTTP code returned for type ListBucketEventsOK
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// ListBucketsHandlerFunc turns a function with the right signature into a list buckets handler
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// ListBucketsOKCode is the HTTP code returned for type ListBucketsOK
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// LoginDetailOKCode is the HTTP code returned for type LoginDetailOK
|
||||
|
||||
@@ -30,7 +30,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// NewLoginParams creates a new LoginParams object
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// LoginCreatedCode is the HTTP code returned for type LoginCreated
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// MakeBucketHandlerFunc turns a function with the right signature into a make bucket handler
|
||||
|
||||
@@ -30,7 +30,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// NewMakeBucketParams creates a new MakeBucketParams object
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// MakeBucketCreatedCode is the HTTP code returned for type MakeBucketCreated
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// SessionCheckHandlerFunc turns a function with the right signature into a session check handler
|
||||
|
||||
@@ -27,7 +27,7 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
)
|
||||
|
||||
// SessionCheckOKCode is the HTTP code returned for type SessionCheckOK
|
||||
|
||||
@@ -42,7 +42,7 @@ import (
|
||||
flags "github.com/jessevdk/go-flags"
|
||||
"golang.org/x/net/netutil"
|
||||
|
||||
"github.com/minio/m3/mcs/restapi/operations"
|
||||
"github.com/minio/mcs/restapi/operations"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -27,9 +27,9 @@ import (
|
||||
"github.com/go-openapi/errors"
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
"github.com/go-openapi/swag"
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/m3/mcs/restapi/operations"
|
||||
"github.com/minio/m3/mcs/restapi/operations/user_api"
|
||||
"github.com/minio/mcs/models"
|
||||
"github.com/minio/mcs/restapi/operations"
|
||||
"github.com/minio/mcs/restapi/operations/user_api"
|
||||
"github.com/minio/minio-go/v6/pkg/policy"
|
||||
minioIAMPolicy "github.com/minio/minio/pkg/iam/policy"
|
||||
)
|
||||
|
||||
@@ -22,9 +22,9 @@ import (
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
"github.com/go-openapi/swag"
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/m3/mcs/restapi/operations"
|
||||
"github.com/minio/m3/mcs/restapi/operations/user_api"
|
||||
"github.com/minio/mcs/models"
|
||||
"github.com/minio/mcs/restapi/operations"
|
||||
"github.com/minio/mcs/restapi/operations/user_api"
|
||||
"github.com/minio/minio-go/v6"
|
||||
)
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ import (
|
||||
"errors"
|
||||
|
||||
"github.com/go-openapi/swag"
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
"github.com/minio/minio-go/v6"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/go-openapi/swag"
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/mcs/models"
|
||||
"github.com/minio/minio-go/v6"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
@@ -22,13 +22,13 @@ import (
|
||||
|
||||
"github.com/minio/mc/pkg/probe"
|
||||
|
||||
"github.com/minio/m3/mcs/restapi/sessions"
|
||||
"github.com/minio/mcs/restapi/sessions"
|
||||
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
"github.com/go-openapi/swag"
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/m3/mcs/restapi/operations"
|
||||
"github.com/minio/m3/mcs/restapi/operations/user_api"
|
||||
"github.com/minio/mcs/models"
|
||||
"github.com/minio/mcs/restapi/operations"
|
||||
"github.com/minio/mcs/restapi/operations/user_api"
|
||||
mcCmd "github.com/minio/mc/cmd"
|
||||
)
|
||||
|
||||
|
||||
@@ -18,9 +18,9 @@ package restapi
|
||||
|
||||
import (
|
||||
"github.com/go-openapi/runtime/middleware"
|
||||
"github.com/minio/m3/mcs/models"
|
||||
"github.com/minio/m3/mcs/restapi/operations"
|
||||
"github.com/minio/m3/mcs/restapi/operations/user_api"
|
||||
"github.com/minio/mcs/models"
|
||||
"github.com/minio/mcs/restapi/operations"
|
||||
"github.com/minio/mcs/restapi/operations/user_api"
|
||||
)
|
||||
|
||||
func registerSessionHandlers(api *operations.McsAPI) {
|
||||
|
||||
Reference in New Issue
Block a user