storage_service

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StorageService

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

Integrate storage management with internal permissions and kubernetes RBAC

func (*StorageService) CreatePVC

func (self *StorageService) CreatePVC(ctx context.Context, requesterUserID uuid.UUID, bearerToken string, input *models.CreatePVCInput) (*models.PVCInfo, error)

func (*StorageService) CreateS3StorageBackend

func (self *StorageService) CreateS3StorageBackend(ctx context.Context, requesterUserID uuid.UUID, bearerToken string, input *models.S3BackendCreateInput) (*models.S3Response, error)

func (*StorageService) DeletePVC

func (self *StorageService) DeletePVC(ctx context.Context, requesterUserID uuid.UUID, bearerToken string, input *models.DeletePVCInput) error

func (*StorageService) DeleteS3StorageByID

func (self *StorageService) DeleteS3StorageByID(ctx context.Context, requesterUserID uuid.UUID, bearerToken string, teamID, id uuid.UUID) error

Delete a specific storage backend by ID

func (*StorageService) GetPVC

func (self *StorageService) GetPVC(ctx context.Context, requesterUserID uuid.UUID, bearerToken string, input *models.GetPVCInput) (*models.PVCInfo, error)

func (*StorageService) GetS3StorageByID

func (self *StorageService) GetS3StorageByID(ctx context.Context, requesterUserID uuid.UUID, bearerToken string, teamID, id uuid.UUID, withBuckets bool) (*models.S3Response, error)

Get a specific storage backend by ID

func (*StorageService) ListPVCs

func (self *StorageService) ListPVCs(ctx context.Context, requesterUserID uuid.UUID, bearerToken string, input *models.ListPVCInput) ([]*models.PVCInfo, error)

func (*StorageService) ListS3StorageBackends

func (self *StorageService) ListS3StorageBackends(ctx context.Context, requesterUserID uuid.UUID, bearerToken string, teamID uuid.UUID, withBuckets bool) ([]*models.S3Response, error)

ListS3StorageBackends lists all S3 storage backends for a given team.

func (*StorageService) UpdatePVC

func (self *StorageService) UpdatePVC(ctx context.Context, requesterUserID uuid.UUID, bearerToken string, input *models.UpdatePVCInput) (*models.PVCInfo, error)

func (*StorageService) UpdateS3Storage

func (self *StorageService) UpdateS3Storage(ctx context.Context, requesterUserID uuid.UUID, bearerToken string, teamID, id uuid.UUID, name, accessKeyID, secretKey *string) (*models.S3Response, error)

Delete a specific storage backend by ID

Jump to

Keyboard shortcuts

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