v2

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAutoOpsRuleAlreadyExists          = errors.New("autoOpsRule: already exists")
	ErrAutoOpsRuleNotFound               = errors.New("autoOpsRule: not found")
	ErrAutoOpsRuleUnexpectedAffectedRows = errors.New("autoOpsRule: unexpected affected rows")
)
View Source
var (
	ErrWebhookAlreadyExists          = errors.New("webhook: already exists")
	ErrWebhookNotFound               = errors.New("webhook: not found")
	ErrWebhookUnexpectedAffectedRows = errors.New("webhook: unexpected affected rows")
)

Functions

This section is empty.

Types

type AutoOpsRuleStorage

type AutoOpsRuleStorage interface {
	CreateAutoOpsRule(ctx context.Context, e *domain.AutoOpsRule, environmentNamespace string) error
	UpdateAutoOpsRule(ctx context.Context, e *domain.AutoOpsRule, environmentNamespace string) error
	GetAutoOpsRule(ctx context.Context, id, environmentNamespace string) (*domain.AutoOpsRule, error)
	ListAutoOpsRules(
		ctx context.Context,
		whereParts []mysql.WherePart,
		orders []*mysql.Order,
		limit, offset int,
	) ([]*proto.AutoOpsRule, int, error)
}

func NewAutoOpsRuleStorage

func NewAutoOpsRuleStorage(qe mysql.QueryExecer) AutoOpsRuleStorage

type WebhookStorage

type WebhookStorage interface {
	CreateWebhook(ctx context.Context, webhook *domain.Webhook, environmentNamespace string) error
	UpdateWebhook(ctx context.Context, webhook *domain.Webhook, environmentNamespace string) error
	DeleteWebhook(ctx context.Context, id, environmentNamespace string) error
	GetWebhook(ctx context.Context, id, environmentNamespace string) (*domain.Webhook, error)
	ListWebhooks(
		ctx context.Context,
		whereParts []mysql.WherePart,
		orders []*mysql.Order,
		limit, offset int,
	) ([]*proto.Webhook, int, int64, error)
}

func NewWebhookStorage

func NewWebhookStorage(
	qe mysql.QueryExecer,
) WebhookStorage

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