storage

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTagNotFound               = errors.New("tag: not found")
	ErrTagUnexpectedAffectedRows = errors.New("tag: unexpected affected rows")
)

Functions

This section is empty.

Types

type TagStorage

type TagStorage interface {
	UpsertTag(ctx context.Context, tag *domain.Tag) error
	GetTag(ctx context.Context, id, environmentId string) (*domain.Tag, error)
	ListTags(
		ctx context.Context,
		whereParts []mysql.WherePart,
		orders []*mysql.Order,
		limit, offset int,
	) ([]*proto.Tag, int, int64, error)
	ListAllEnvironmentTags(ctx context.Context) ([]*proto.EnvironmentTag, error)
	DeleteTag(ctx context.Context, id, environmentId string) error
}

func NewTagStorage

func NewTagStorage(qe mysql.QueryExecer) TagStorage

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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