app

package
v0.0.0-...-ea7eeef Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(clientset kubernetes.Interface, client rest.Interface, authProvider security.AuthProvider, log logging.Logger) *Service

func (*Service) BackupConfigCreateHandler

func (srv *Service) BackupConfigCreateHandler(params apiService.BackupConfigCreateParams, principal *models.Principal) middleware.Responder

curl -v -H Content-Type:application/json -H "Authorization: Bearer" -X POST localhost:8001/api/v1/services/<service-id>/backup-config -d '{"aws_access_key_id":"SJ3MEX4WE7G2A5JLHJQC","aws_secret_access_key":"hTXfI4Gbv0SPSWGhnWQrINg6TPcWCCvLcB2DRFmp+Ok","bucket":"cloudmanaged","endpoint":"https://fra1.digitaloceanspaces.com","schedule":"* 1 * * *","type":"s3","enabled":false}'

func (*Service) BackupConfigDeleteHandler

func (srv *Service) BackupConfigDeleteHandler(params apiService.BackupConfigDeleteParams, principal *models.Principal) middleware.Responder

func (*Service) BackupConfigEditHandler

func (srv *Service) BackupConfigEditHandler(params apiService.BackupConfigEditParams, principal *models.Principal) middleware.Responder

curl -v -H Content-Type:application/json -H "Authorization: Bearer" -X PUT localhost:8001/api/v1/services/<service-id>/backup-config -d '{"aws_access_key_id":"","aws_secret_access_key":"","bucket":"cloudmanaged","endpoint":"https://fra1.digitaloceanspaces.com","schedule":"* 1 * * *","type":"s3","enabled":false}'

func (*Service) BackupConfigGetHandler

func (srv *Service) BackupConfigGetHandler(params apiService.BackupConfigGetParams, principal *models.Principal) middleware.Responder

curl -v -H Content-Type:application/json -H "Authorization: Bearer" -X GET localhost:8001/api/v1/services/<service-id>/backup-config

func (*Service) BackupListHandler

func (srv *Service) BackupListHandler(params apiService.BackupListParams, principal *models.Principal) middleware.Responder

func (*Service) BearerAuthentication

func (srv *Service) BearerAuthentication(token string) (*models.Principal, error)

func (*Service) DatabaseCreateHandler

func (srv *Service) DatabaseCreateHandler(params apiService.DatabaseCreateParams, principal *models.Principal) middleware.Responder

func (*Service) DatabaseDeleteHandler

func (srv *Service) DatabaseDeleteHandler(params apiService.DatabaseDeleteParams, principal *models.Principal) middleware.Responder

func (*Service) DatabaseListHandler

func (srv *Service) DatabaseListHandler(params apiService.DatabaseListParams, principal *models.Principal) middleware.Responder

func (*Service) DatabaseRestoreHandler

func (srv *Service) DatabaseRestoreHandler(params apiService.DatabaseRestoreParams, principal *models.Principal) middleware.Responder

func (*Service) GetAuthProvider

func (srv *Service) GetAuthProvider() security.AuthProvider

func (*Service) GetLogger

func (srv *Service) GetLogger() logging.Logger

func (*Service) LoginUserHandler

func (srv *Service) LoginUserHandler(params apiAuth.LoginUserParams) middleware.Responder

func (*Service) LogsGetHandler

func (srv *Service) LogsGetHandler(params apiService.LogsGetParams, principal *models.Principal) middleware.Responder

func (*Service) LookupService

func (srv *Service) LookupService(ns, name string) (*kuberlogicv1.KuberLogicService, bool, error)

func (*Service) OnShutdown

func (srv *Service) OnShutdown()

func (*Service) RestoreListHandler

func (srv *Service) RestoreListHandler(params apiService.RestoreListParams, principal *models.Principal) middleware.Responder

func (*Service) ServiceAddHandler

func (srv *Service) ServiceAddHandler(params apiService.ServiceAddParams, principal *models.Principal) middleware.Responder

func (*Service) ServiceDeleteHandler

func (srv *Service) ServiceDeleteHandler(params apiService.ServiceDeleteParams, principal *models.Principal) middleware.Responder

func (*Service) ServiceEditHandler

func (srv *Service) ServiceEditHandler(params apiService.ServiceEditParams, principal *models.Principal) middleware.Responder

func (*Service) ServiceGetHandler

func (srv *Service) ServiceGetHandler(params apiService.ServiceGetParams, principal *models.Principal) middleware.Responder

func (*Service) ServiceListHandler

func (srv *Service) ServiceListHandler(params apiService.ServiceListParams, principal *models.Principal) middleware.Responder

func (*Service) UserCreateHandler

func (srv *Service) UserCreateHandler(params apiService.UserCreateParams, principal *models.Principal) middleware.Responder

func (*Service) UserDeleteHandler

func (srv *Service) UserDeleteHandler(params apiService.UserDeleteParams, principal *models.Principal) middleware.Responder

func (*Service) UserEditHandler

func (srv *Service) UserEditHandler(params apiService.UserEditParams, principal *models.Principal) middleware.Responder

func (*Service) UserListHandler

func (srv *Service) UserListHandler(params apiService.UserListParams, principal *models.Principal) middleware.Responder

Jump to

Keyboard shortcuts

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