Documentation ¶
Overview ¶
Schemes: http, https Host: localhost BasePath: /v2 Version: 0.0.1 License: MIT http://opensource.org/licenses/MIT Contact: John Doe<john.doe@example.com> http://john.doe.com Consumes: - application/json - application/xml Produces: - application/json - application/xml Security: - api_key: SecurityDefinitions: api_key: type: apiKey name: KEY in: header oauth2: type: oauth2 authorizationUrl: /oauth2/auth tokenUrl: /oauth2/token in: header scopes: bar: foo flow: accessCode Extensions: x-meta-value: value x-meta-array: - value1 - value2 x-meta-array-obj: - name: obj value: field
swagger:meta
Index ¶
- Variables
- func ClearApp()
- func ClearTestApp()
- func RunTests(t *testing.T, currentsuite suite.TestingSuite)
- func StoreCurrentApp(app *App)
- func TestHTTPResponse(t *testing.T, app *App, req *http.Request, ...)
- type AddLanguageHandler
- type AddLanguageHandlerOptions
- type AdminCommand
- type AdminStartServerOptions
- type App
- func (a *App) BaseAPIUrl() string
- func (a *App) ExecuteCommand()
- func (a *App) GetAuthAdapterRegistry() *core.AuthProviderRegistry
- func (a *App) GetBlueprintRegistry() core.IBlueprintRegistry
- func (a *App) GetCommandRegistry() *core.CommandRegistry
- func (a *App) GetConfig() *core.UadminConfig
- func (a *App) GetDashboardAdminPanel() *core.DashboardAdminPanel
- func (a *App) GetDatabase() *core.Database
- func (a *App) GetRouter() *gin.Engine
- func (a *App) Initialize()
- func (a *App) InitializeRouter()
- func (a *App) RegisterBaseBlueprints()
- func (a *App) RegisterBaseCommands()
- func (a *App) RegisterBlueprint(blueprint core.IBlueprint)
- func (a *App) RegisterCommand(name string, command core.ICommand)
- func (a *App) StartAPI()
- func (a *App) StartAdmin()
- func (a *App) TriggerCommandExecution(action string, subaction string, params []string)
- type BlueprintCommand
- type ContentTypeCommand
- type CreateBlueprint
- type CreateBlueprintOptions
- type CreateFakedDataCommand
- type CreateMigration
- type CreateMigrationOptions
- type CreateSuperadmin
- type DbShellCommand
- type DetermineConflictsMigration
- type DownMigration
- type DownMigrationOptions
- type GeneralError
- type LanguageCommand
- type MicroserviceExample
- type MicroserviceExampleCommand
- type MicroserviceExampleStartCommand
- type MicroserviceExampleStartOptions
- type MigrateCommand
- type Migration
- type OpenAPICommand
- type ServeAdminServer
- type ServeOpenAPIEditorCommand
- type ServeSwaggerServer
- type ServeSwaggerServerOptions
- type ShellCommand
- type SuperadminCommand
- type SuperadminCommandOptions
- type SwaggerCommand
- type SyncContentTypes
- type TestSuite
- type UpMigration
- type UpMigrationOptions
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
View Source
var CreatedDatabaseForTests bool
Functions ¶
func ClearTestApp ¶ added in v1.0.1
func ClearTestApp()
func StoreCurrentApp ¶ added in v1.0.1
func StoreCurrentApp(app *App)
func TestHTTPResponse ¶ added in v1.0.1
func TestHTTPResponse(t *testing.T, app *App, req *http.Request, f func(w *httptest.ResponseRecorder) bool)
Helper function to process a request and test its response
Types ¶
type AddLanguageHandler ¶ added in v1.0.1
type AddLanguageHandler struct { }
func (AddLanguageHandler) GetHelpText ¶ added in v1.0.1
func (command AddLanguageHandler) GetHelpText() string
type AddLanguageHandlerOptions ¶ added in v1.0.1
type AddLanguageHandlerOptions struct {
Code string `short:"c" required:"true" description:"Language you wanna add to the system'"`
}
type AdminCommand ¶ added in v1.0.1
type AdminCommand struct { }
func (AdminCommand) GetHelpText ¶ added in v1.0.1
func (c AdminCommand) GetHelpText() string
type AdminStartServerOptions ¶ added in v1.0.1
type AdminStartServerOptions struct { }
type App ¶ added in v1.0.1
type App struct { Config *core.UadminConfig Database *core.Database Router *gin.Engine CommandRegistry *core.CommandRegistry BlueprintRegistry core.IBlueprintRegistry DashboardAdminPanel *core.DashboardAdminPanel RouterInitialized bool }
func NewFullAppForTests ¶ added in v1.0.1
func NewFullAppForTests() *App
func (*App) BaseAPIUrl ¶ added in v1.0.1
func (*App) ExecuteCommand ¶ added in v1.0.1
func (a *App) ExecuteCommand()
func (*App) GetAuthAdapterRegistry ¶ added in v1.2.4
func (a *App) GetAuthAdapterRegistry() *core.AuthProviderRegistry
func (*App) GetBlueprintRegistry ¶ added in v1.1.7
func (a *App) GetBlueprintRegistry() core.IBlueprintRegistry
func (*App) GetCommandRegistry ¶ added in v1.1.7
func (a *App) GetCommandRegistry() *core.CommandRegistry
func (*App) GetConfig ¶ added in v1.1.7
func (a *App) GetConfig() *core.UadminConfig
func (*App) GetDashboardAdminPanel ¶ added in v1.1.7
func (a *App) GetDashboardAdminPanel() *core.DashboardAdminPanel
func (*App) GetDatabase ¶ added in v1.1.7
func (*App) Initialize ¶ added in v1.0.1
func (a *App) Initialize()
func (*App) InitializeRouter ¶ added in v1.0.1
func (a *App) InitializeRouter()
func (*App) RegisterBaseBlueprints ¶ added in v1.0.1
func (a *App) RegisterBaseBlueprints()
func (*App) RegisterBaseCommands ¶ added in v1.0.1
func (a *App) RegisterBaseCommands()
func (*App) RegisterBlueprint ¶ added in v1.0.1
func (a *App) RegisterBlueprint(blueprint core.IBlueprint)
func (*App) RegisterCommand ¶ added in v1.0.1
func (*App) StartAdmin ¶ added in v1.0.1
func (a *App) StartAdmin()
type BlueprintCommand ¶ added in v1.0.1
type BlueprintCommand struct { }
func (BlueprintCommand) GetHelpText ¶ added in v1.0.1
func (c BlueprintCommand) GetHelpText() string
type ContentTypeCommand ¶ added in v1.0.1
type ContentTypeCommand struct { }
func (ContentTypeCommand) GetHelpText ¶ added in v1.0.1
func (c ContentTypeCommand) GetHelpText() string
type CreateBlueprint ¶ added in v1.0.1
type CreateBlueprint struct { }
func (CreateBlueprint) GetHelpText ¶ added in v1.0.1
func (command CreateBlueprint) GetHelpText() string
type CreateBlueprintOptions ¶ added in v1.0.1
type CreateFakedDataCommand ¶ added in v1.0.1
type CreateFakedDataCommand struct { }
func (CreateFakedDataCommand) GetHelpText ¶ added in v1.0.1
func (c CreateFakedDataCommand) GetHelpText() string
type CreateMigration ¶ added in v1.0.1
type CreateMigration struct { }
func (CreateMigration) GetHelpText ¶ added in v1.0.1
func (command CreateMigration) GetHelpText() string
type CreateMigrationOptions ¶ added in v1.0.1
type CreateSuperadmin ¶ added in v1.0.1
type CreateSuperadmin struct { }
func (CreateSuperadmin) GetHelpText ¶ added in v1.0.1
func (command CreateSuperadmin) GetHelpText() string
type DbShellCommand ¶ added in v1.1.2
type DbShellCommand struct { }
func (DbShellCommand) GetHelpText ¶ added in v1.1.2
func (c DbShellCommand) GetHelpText() string
type DetermineConflictsMigration ¶ added in v1.0.1
type DetermineConflictsMigration struct { }
func (DetermineConflictsMigration) GetHelpText ¶ added in v1.0.1
func (command DetermineConflictsMigration) GetHelpText() string
type DownMigration ¶ added in v1.0.1
type DownMigration struct { }
func (DownMigration) GetHelpText ¶ added in v1.0.1
func (command DownMigration) GetHelpText() string
type DownMigrationOptions ¶ added in v1.0.1
type DownMigrationOptions struct {
ToMigrationID int64 `long:"--to-id" required:"false" default:"0" description:"Migration downgrade your database to"`
}
type GeneralError ¶ added in v1.2.5
type GeneralError struct {
Error string
}
A GeneralError is an error that is used when something strange happened swagger:response generalError
type LanguageCommand ¶ added in v1.0.1
type LanguageCommand struct { }
func (LanguageCommand) GetHelpText ¶ added in v1.0.1
func (c LanguageCommand) GetHelpText() string
type MicroserviceExample ¶ added in v1.2.4
type MicroserviceExample struct {
core.Microservice
}
type MicroserviceExampleCommand ¶ added in v1.2.4
type MicroserviceExampleCommand struct { }
func (MicroserviceExampleCommand) GetHelpText ¶ added in v1.2.4
func (c MicroserviceExampleCommand) GetHelpText() string
type MicroserviceExampleStartCommand ¶ added in v1.2.4
type MicroserviceExampleStartCommand struct { }
func (MicroserviceExampleStartCommand) GetHelpText ¶ added in v1.2.4
func (command MicroserviceExampleStartCommand) GetHelpText() string
type MicroserviceExampleStartOptions ¶ added in v1.2.4
type MicroserviceExampleStartOptions struct {
StartSwagger bool `long:"swagger" description:"Start swagger for your microservice"`
}
type MigrateCommand ¶ added in v1.0.1
type MigrateCommand struct { }
func (MigrateCommand) GetHelpText ¶ added in v1.0.1
func (c MigrateCommand) GetHelpText() string
type OpenAPICommand ¶ added in v1.0.1
type OpenAPICommand struct { }
func (OpenAPICommand) GetHelpText ¶ added in v1.0.1
func (c OpenAPICommand) GetHelpText() string
type ServeAdminServer ¶ added in v1.0.1
type ServeAdminServer struct { }
func (ServeAdminServer) GetHelpText ¶ added in v1.0.1
func (command ServeAdminServer) GetHelpText() string
type ServeOpenAPIEditorCommand ¶ added in v1.0.1
type ServeOpenAPIEditorCommand struct { }
func (ServeOpenAPIEditorCommand) GetHelpText ¶ added in v1.0.1
func (command ServeOpenAPIEditorCommand) GetHelpText() string
type ServeSwaggerServer ¶ added in v1.0.1
type ServeSwaggerServer struct { }
func (ServeSwaggerServer) GetHelpText ¶ added in v1.0.1
func (command ServeSwaggerServer) GetHelpText() string
type ServeSwaggerServerOptions ¶ added in v1.0.1
type ServeSwaggerServerOptions struct { }
type ShellCommand ¶ added in v1.1.2
type ShellCommand struct { }
func (ShellCommand) GetHelpText ¶ added in v1.1.2
func (c ShellCommand) GetHelpText() string
type SuperadminCommand ¶ added in v1.0.1
type SuperadminCommand struct { }
func (SuperadminCommand) GetHelpText ¶ added in v1.0.1
func (c SuperadminCommand) GetHelpText() string
type SuperadminCommandOptions ¶ added in v1.0.1
type SuperadminCommandOptions struct { Username string `short:"n" required:"true" description:"Username" valid:"username-uadmin,username-unique"` Email string `short:"e" required:"true" description:"Email'" valid:"email,email-unique"` FirstName string `short:"f" required:"false" description:"First name'"` LastName string `short:"l" required:"false" description:"Last name'"` }
type SwaggerCommand ¶ added in v1.0.1
type SwaggerCommand struct { }
func (SwaggerCommand) GetHelpText ¶ added in v1.0.1
func (c SwaggerCommand) GetHelpText() string
type SyncContentTypes ¶ added in v1.0.1
type SyncContentTypes struct { }
func (SyncContentTypes) GetHelpText ¶ added in v1.0.1
func (command SyncContentTypes) GetHelpText() string
type TestSuite ¶ added in v1.0.1
type TestSuite struct { suite.Suite App *App UadminDatabase *core.UadminDatabase }
func (*TestSuite) StoreDatabase ¶ added in v1.1.2
func (suite *TestSuite) StoreDatabase(uadminDatabase *core.UadminDatabase)
func (*TestSuite) TearDownSuite ¶ added in v1.0.1
func (suite *TestSuite) TearDownSuite()
type UpMigration ¶ added in v1.0.1
type UpMigration struct { }
func (UpMigration) GetHelpText ¶ added in v1.0.1
func (command UpMigration) GetHelpText() string
type UpMigrationOptions ¶ added in v1.0.1
type UpMigrationOptions struct { }
type ValidationError ¶ added in v1.2.4
A ValidationError is an error that is used when the required input fails validation. swagger:response validationError
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
blueprint
|
|
cmd
|
|
Package helper is a micro package with helper functions for uAdmin
|
Package helper is a micro package with helper functions for uAdmin |
Click to show internal directories.
Click to hide internal directories.