Fix Module (#32)

This commit is contained in:
Daniel Valdivia
2020-04-06 11:58:34 -07:00
committed by GitHub
parent d57ec001f4
commit c8938dc131
93 changed files with 124 additions and 124 deletions

View File

@@ -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"

View File

@@ -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

View File

@@ -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
View File

@@ -1,4 +1,4 @@
module github.com/minio/m3/mcs
module github.com/minio/mcs
go 1.14

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -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"

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -23,7 +23,7 @@ import (
"errors"
"github.com/minio/m3/mcs/models"
"github.com/minio/mcs/models"
"github.com/stretchr/testify/assert"
)

View File

@@ -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"
)

View File

@@ -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"
)

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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 (

View File

@@ -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"
)

View File

@@ -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"
)

View File

@@ -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"

View File

@@ -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"
)

View File

@@ -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"
)

View File

@@ -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) {