s3_repo

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Repository

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

S3Repository handles s3 database operations

func NewS3Repository

func NewS3Repository(db *ent.Client) *S3Repository

NewS3Repository creates a new repository

func (*S3Repository) Create

func (self *S3Repository) Create(ctx context.Context, tx repository.TxInterface, teamID uuid.UUID, name, endpoint, region, kubernetesSecret string) (*ent.S3, error)

func (*S3Repository) Delete

func (self *S3Repository) Delete(ctx context.Context, tx repository.TxInterface, id uuid.UUID) error

func (*S3Repository) GetByID

func (self *S3Repository) GetByID(ctx context.Context, id uuid.UUID) (*ent.S3, error)

func (*S3Repository) GetByTeam

func (self *S3Repository) GetByTeam(ctx context.Context, teamID uuid.UUID) ([]*ent.S3, error)

func (*S3Repository) Update

func (self *S3Repository) Update(ctx context.Context, id uuid.UUID, name string) (*ent.S3, error)

type S3RepositoryInterface

type S3RepositoryInterface interface {
	Create(ctx context.Context, tx repository.TxInterface, teamID uuid.UUID, name, endpoint, region, kubernetesSecret string) (*ent.S3, error)
	Delete(ctx context.Context, tx repository.TxInterface, id uuid.UUID) error
	Update(ctx context.Context, id uuid.UUID, name string) (*ent.S3, error)
	GetByID(ctx context.Context, id uuid.UUID) (*ent.S3, error)
	GetByTeam(ctx context.Context, teamID uuid.UUID) ([]*ent.S3, error)
}

S3RepositoryInterface ...

Jump to

Keyboard shortcuts

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