Move and comment

This commit is contained in:
Pieter Noordhuis 2024-11-20 23:24:03 +01:00
parent 354d765833
commit e8e89b0cbf
No known key found for this signature in database
GPG Key ID: 12ACCCC104CF2930
1 changed files with 8 additions and 6 deletions

View File

@ -7,12 +7,6 @@ import (
"github.com/databricks/databricks-sdk-go"
)
type resolver interface {
Resolve(ctx context.Context, w *databricks.WorkspaceClient) (string, error)
String() string
}
type Lookup struct {
Alert string `json:"alert,omitempty"`
@ -37,6 +31,14 @@ type Lookup struct {
Warehouse string `json:"warehouse,omitempty"`
}
type resolver interface {
// Resolve resolves the underlying entity's ID.
Resolve(ctx context.Context, w *databricks.WorkspaceClient) (string, error)
// String returns a human-readable representation of the resolver.
String() string
}
func (l *Lookup) constructResolver() (resolver, error) {
var resolvers []resolver