controller

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewValidator

func NewValidator(model model.ModelInterface, auth auth.AuthInterface) apigen.Validator

Types

type Controller

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

func (*Controller) CancelDDLProgress

func (controller *Controller) CancelDDLProgress(c *fiber.Ctx, id int32, ddlID int64) error

func (*Controller) CreateCluster

func (controller *Controller) CreateCluster(c *fiber.Ctx) error

func (*Controller) CreateClusterDiagnostic

func (controller *Controller) CreateClusterDiagnostic(c *fiber.Ctx, id int32) error

func (*Controller) CreateClusterSnapshot

func (controller *Controller) CreateClusterSnapshot(c *fiber.Ctx, id int32) error

func (*Controller) DeleteCluster

func (controller *Controller) DeleteCluster(c *fiber.Ctx, id int32, params apigen.DeleteClusterParams) error

func (*Controller) DeleteClusterSnapshot

func (controller *Controller) DeleteClusterSnapshot(c *fiber.Ctx, id int32, snapshotId int64) error

func (*Controller) DeleteDatabase

func (controller *Controller) DeleteDatabase(c *fiber.Ctx, id int32) error

func (*Controller) DeleteMetricsStore

func (controller *Controller) DeleteMetricsStore(c *fiber.Ctx, id int32, params apigen.DeleteMetricsStoreParams) error

func (*Controller) GetCluster

func (controller *Controller) GetCluster(c *fiber.Ctx, id int32) error

func (*Controller) GetClusterAutoBackupConfig

func (controller *Controller) GetClusterAutoBackupConfig(c *fiber.Ctx, id int32) error

func (*Controller) GetClusterAutoDiagnosticConfig

func (controller *Controller) GetClusterAutoDiagnosticConfig(c *fiber.Ctx, id int32) error

func (*Controller) GetClusterDiagnostic

func (controller *Controller) GetClusterDiagnostic(c *fiber.Ctx, id int32, diagnosticId int32) error

func (*Controller) GetDDLProgress

func (controller *Controller) GetDDLProgress(c *fiber.Ctx, id int32) error

func (*Controller) GetDatabase

func (controller *Controller) GetDatabase(c *fiber.Ctx, id int32) error

func (*Controller) GetMaterializedViewThroughput

func (controller *Controller) GetMaterializedViewThroughput(c *fiber.Ctx, clusterID int32) error

func (*Controller) GetMetricsStore

func (controller *Controller) GetMetricsStore(c *fiber.Ctx, id int32) error

func (*Controller) ImportCluster

func (controller *Controller) ImportCluster(c *fiber.Ctx) error

func (*Controller) ImportDatabase

func (controller *Controller) ImportDatabase(c *fiber.Ctx) error

func (*Controller) ImportMetricsStore

func (controller *Controller) ImportMetricsStore(c *fiber.Ctx) error

func (*Controller) ListClusterDiagnostics

func (controller *Controller) ListClusterDiagnostics(c *fiber.Ctx, id int32, params apigen.ListClusterDiagnosticsParams) error

func (*Controller) ListClusterSnapshots

func (controller *Controller) ListClusterSnapshots(c *fiber.Ctx, id int32) error

func (*Controller) ListClusterVersions

func (controller *Controller) ListClusterVersions(c *fiber.Ctx) error

func (*Controller) ListClusters

func (controller *Controller) ListClusters(c *fiber.Ctx) error

func (*Controller) ListDatabases

func (controller *Controller) ListDatabases(c *fiber.Ctx) error

func (*Controller) ListEvents

func (controller *Controller) ListEvents(c *fiber.Ctx) error

func (*Controller) ListMetricsStores

func (controller *Controller) ListMetricsStores(c *fiber.Ctx) error

func (*Controller) ListTasks

func (controller *Controller) ListTasks(c *fiber.Ctx) error

func (*Controller) QueryDatabase

func (controller *Controller) QueryDatabase(c *fiber.Ctx, id int32) error

func (*Controller) RestoreClusterSnapshot

func (controller *Controller) RestoreClusterSnapshot(c *fiber.Ctx, id int32, snapshotId int64) error

func (*Controller) RunRisectlCommand

func (controller *Controller) RunRisectlCommand(c *fiber.Ctx, id int32) error

func (*Controller) TestClusterConnection

func (controller *Controller) TestClusterConnection(c *fiber.Ctx) error

func (*Controller) TestDatabaseConnection

func (controller *Controller) TestDatabaseConnection(c *fiber.Ctx) error

func (*Controller) UpdateCluster

func (controller *Controller) UpdateCluster(c *fiber.Ctx, id int32) error

func (*Controller) UpdateClusterAutoBackupConfig

func (controller *Controller) UpdateClusterAutoBackupConfig(c *fiber.Ctx, id int32) error

func (*Controller) UpdateClusterAutoDiagnosticConfig

func (controller *Controller) UpdateClusterAutoDiagnosticConfig(c *fiber.Ctx, id int32) error

func (*Controller) UpdateDatabase

func (controller *Controller) UpdateDatabase(c *fiber.Ctx, id int32) error

func (*Controller) UpdateMetricsStore

func (controller *Controller) UpdateMetricsStore(c *fiber.Ctx, id int32) error

type Validator

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

func (*Validator) AuthFunc

func (v *Validator) AuthFunc(c *fiber.Ctx) error

func (*Validator) GetOrgID

func (v *Validator) GetOrgID(c *fiber.Ctx) int32

func (*Validator) OwnDatabase

func (v *Validator) OwnDatabase(c *fiber.Ctx, orgID int32, databaseID int32) error

func (*Validator) PostValidate

func (v *Validator) PostValidate(c *fiber.Ctx) error

func (*Validator) PreValidate

func (v *Validator) PreValidate(c *fiber.Ctx) error

func (*Validator) PremiumAccess

func (v *Validator) PremiumAccess(c *fiber.Ctx) error

Jump to

Keyboard shortcuts

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