proxy

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: GPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

type Proxy struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *config.Config) (*Proxy, error)

func (*Proxy) Authenticate

func (p *Proxy) Authenticate()

func (*Proxy) RPCAdminReload

func (p *Proxy) RPCAdminReload(ctx *gin.Context)

RPCAdminReload makes the proxy to reload its configuration

func (*Proxy) RPCAlarmsList

func (p *Proxy) RPCAlarmsList(ctx *gin.Context)

RPCAlarmsList returns the list of alarms

func (*Proxy) RPCAlarmsOverview

func (p *Proxy) RPCAlarmsOverview(ctx *gin.Context)

RPCAlarmsOverview gives a high level overview of all cluster alarms

func (*Proxy) RPCAuthCheckHandler

func (p *Proxy) RPCAuthCheckHandler(ctx *gin.Context)

RPCCheckHandler checks if the user has logged in

func (*Proxy) RPCAuthLoginHandler

func (p *Proxy) RPCAuthLoginHandler(ctx *gin.Context)

RPCLoginHandler handlers the login requests

func (*Proxy) RPCAuthLogoutHandler

func (p *Proxy) RPCAuthLogoutHandler(ctx *gin.Context)

RPCLogoutHandler handlers the explicit logout requests

func (*Proxy) RPCAuthMiddleware

func (p *Proxy) RPCAuthMiddleware(ctx *gin.Context)

RPCAuthCheck is a middleware method

func (*Proxy) RPCAuthSetPasswordHandler

func (p *Proxy) RPCAuthSetPasswordHandler(ctx *gin.Context)

func (*Proxy) RPCAuthUpdateUserHandler

func (p *Proxy) RPCAuthUpdateUserHandler(ctx *gin.Context)

func (*Proxy) RPCBackupJobsList

func (p *Proxy) RPCBackupJobsList(ctx *gin.Context)

RPCBackupJobsList gives back a list of scheduled backup jobs

func (*Proxy) RPCBackupsList

func (p *Proxy) RPCBackupsList(ctx *gin.Context)

RPCClustersList gives back a list of clusters

func (*Proxy) RPCBackupsStatus

func (p *Proxy) RPCBackupsStatus(ctx *gin.Context)

RPCBackupsStatus returns the backup and backup schedule stats for each cluster

func (*Proxy) RPCClustersHostList

func (p *Proxy) RPCClustersHostList(ctx *gin.Context)

RPCClustersNodesList gives back a list of nodes

func (*Proxy) RPCClustersList

func (p *Proxy) RPCClustersList(ctx *gin.Context)

RPCClustersList gives back a list of clusters

func (*Proxy) RPCClustersStatus

func (p *Proxy) RPCClustersStatus(ctx *gin.Context)

RPCClustersStatus constructs a high level reply of the cluster statuees

func (*Proxy) RPCControllerAdd

func (p *Proxy) RPCControllerAdd(ctx *gin.Context)

func (*Proxy) RPCControllerRemove

func (p *Proxy) RPCControllerRemove(ctx *gin.Context)

func (*Proxy) RPCControllerStatus

func (p *Proxy) RPCControllerStatus(ctx *gin.Context)

func (*Proxy) RPCControllerTest

func (p *Proxy) RPCControllerTest(ctx *gin.Context)

func (*Proxy) RPCJobsList

func (p *Proxy) RPCJobsList(ctx *gin.Context)

RPCJobsList gives back a list of clusters

func (*Proxy) RPCJobsStatus

func (p *Proxy) RPCJobsStatus(ctx *gin.Context)

type SessionData

type SessionData struct {
	User  *config.ProxyUser
	Login time.Time
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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