Documentation
¶
Index ¶
- type S3Repository
- func (self *S3Repository) Create(ctx context.Context, tx repository.TxInterface, teamID uuid.UUID, ...) (*ent.S3, error)
- func (self *S3Repository) Delete(ctx context.Context, tx repository.TxInterface, id uuid.UUID) error
- func (self *S3Repository) GetByID(ctx context.Context, id uuid.UUID) (*ent.S3, error)
- func (self *S3Repository) GetByTeam(ctx context.Context, teamID uuid.UUID) ([]*ent.S3, error)
- func (self *S3Repository) Update(ctx context.Context, id uuid.UUID, name string) (*ent.S3, error)
- type S3RepositoryInterface
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
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 ...
Click to show internal directories.
Click to hide internal directories.