mirror of https://github.com/databricks/cli.git
Move and comment
This commit is contained in:
parent
354d765833
commit
e8e89b0cbf
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue