tagger/internal/service/data.go
Matthew Rich 14fda44c41
Some checks failed
Lint / golangci-lint (push) Failing after 10m25s
Declarative Tests / test (push) Failing after 1m59s
add artifacts
2024-04-04 13:37:54 -07:00

16 lines
441 B
Go

// Copyright 2024 Matthew Rich <matthewrich.conf@gmail.com>. All rights reserved.
package service
import (
"context"
)
type DataConnector interface {
Connected(ctx context.Context) bool
Query(ctx context.Context, terms []string) ([]string, error)
Tags(ctx context.Context) []string
AddTag(ctx context.Context, TagName string, Resource string) error
ResourceHasTag(ctx context.Context, Resource string, TagName string) bool
}