controller

package
v0.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StatusInitiated describe status "initiated"
	StatusInitiated = "initiated"
	// StatusPendingPull describe status "pending_pull"
	StatusPendingPull = "pending_pull"
	// StatusPulled describe status "pulled"
	StatusPulled = "pulled"
	// StatusPullFailed describe status "pull_failed"
	StatusPullFailed = "pull_failed"
	// StatusPendingPush describe status "pending_push"
	StatusPendingPush = "pending_push"
	// StatusPushed describe status "pushed"
	StatusPushed = "pushed"
	// StatusPushFailed describe status "push_failed"
	StatusPushFailed = "push_failed"
	// StatusPendingClean describe status "pending_clear"
	StatusPendingClean = "pending_clear"
	// StatusCleaned describe status "cleared"
	StatusCleaned = "cleared"
	// StatusCleanFailed describe status "clear_failed"
	StatusCleanFailed = "clear_failed"
	// StatusSynchronized describe status "synced"
	StatusSynchronized = "synced"
	// StatusFailed describe status "failed"
	StatusFailed = "failed"
)

Variables

This section is empty.

Functions

func BuildWsJSONError

func BuildWsJSONError(message string) string

BuildWsJSONError returns json formatted error response.

func BuildWsJSONSuccess

func BuildWsJSONSuccess(message string, data interface{}) string

BuildWsJSONSuccess returns json formatted success response.

func UpdateRepositoryState

func UpdateRepositoryState(uuid string, state string)

UpdateRepositoryState describes update repository state action.

func UpdateRepositoryStatus

func UpdateRepositoryStatus(uuid string, status string)

UpdateRepositoryStatus describes update repository status action.

Types

type AboutController

type AboutController struct{}

AboutController struct describes about section controller.

func (AboutController) Index

func (ctrl AboutController) Index(c *gin.Context)

Index describes about index page.

type ActionsController

type ActionsController struct{}

ActionsController struct describes main actions section controller.

func (ActionsController) Activate

func (ctrl ActionsController) Activate(c *gin.Context)

Activate describes activate repository action.

func (ActionsController) Block

func (ctrl ActionsController) Block(c *gin.Context)

Block describes block repository action.

func (ActionsController) Clear

func (ctrl ActionsController) Clear(c *gin.Context)

Clear describes clear repository data action.

func (ActionsController) Info

func (ctrl ActionsController) Info(c *gin.Context)

Info describes repository info action.

func (ActionsController) Pull

func (ctrl ActionsController) Pull(c *gin.Context)

Pull describes pull repository action.

func (ActionsController) Push

func (ctrl ActionsController) Push(c *gin.Context)

Push describes push repository action.

type DocsController

type DocsController struct{}

DocsController struct describes docs section controller.

func (DocsController) Index

func (ctrl DocsController) Index(c *gin.Context)

Index describes docs index page.

type IndexController

type IndexController struct{}

IndexController struct describes index section controller.

func (IndexController) Index

func (ctrl IndexController) Index(c *gin.Context)

Index describes index index page.

type LogsController

type LogsController struct{}

LogsController struct describes logs section controller.

func (LogsController) Index

func (ctrl LogsController) Index(c *gin.Context)

Index describes logs index page.

func (LogsController) RemoveAll

func (ctrl LogsController) RemoveAll(c *gin.Context)

RemoveAll describes remove all logs action.

func (LogsController) RemoveRuntime

func (ctrl LogsController) RemoveRuntime(c *gin.Context)

RemoveRuntime describes remove runtime logs action.

func (LogsController) Subscribe

func (ctrl LogsController) Subscribe(c *gin.Context)

Subscribe describes subscribe to log action.

type PlatformsController

type PlatformsController struct{}

PlatformsController struct describes platforms section controller.

func (PlatformsController) Add

func (ctrl PlatformsController) Add(c *gin.Context)

Add describes add platform action.

func (PlatformsController) Edit

func (ctrl PlatformsController) Edit(c *gin.Context)

Edit describes edit platform action.

func (PlatformsController) Index

func (ctrl PlatformsController) Index(c *gin.Context)

Index describes platforms index page.

func (PlatformsController) Remove

func (ctrl PlatformsController) Remove(c *gin.Context)

Remove describes remove platform action.

type RepositoriesController

type RepositoriesController struct{}

RepositoriesController struct describes repositories section controller.

func (RepositoriesController) Add

func (ctrl RepositoriesController) Add(c *gin.Context)

Add describes add repository action.

func (RepositoriesController) Edit

func (ctrl RepositoriesController) Edit(c *gin.Context)

Edit describes edit repository action.

func (RepositoriesController) Index

func (ctrl RepositoriesController) Index(c *gin.Context)

Index describes repositories index page.

func (RepositoriesController) Remove

func (ctrl RepositoriesController) Remove(c *gin.Context)

Remove describes remove repository action.

type SettingsController

type SettingsController struct{}

SettingsController struct describes settings section controller.

func (SettingsController) Index

func (ctrl SettingsController) Index(c *gin.Context)

Index describes settings index page.

func (SettingsController) Save

func (ctrl SettingsController) Save(c *gin.Context)

Save describes save settings action.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL