forked from openshift/hive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
query.go
22 lines (17 loc) · 854 Bytes
/
query.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package nameserver
import (
"k8s.io/apimachinery/pkg/util/sets"
)
//go:generate mockgen -source=./query.go -destination=./mock/query_generated.go -package=mock
// Query is used to perform queries for name servers.
type Query interface {
// Get the name servers under the specified root domain.
Get(rootDomain string) (map[string]sets.String, error)
// Create name servers for the specified domain under the specified root domain.
Create(rootDomain string, domain string, values sets.String) error
// Delete the name servers for the specified domain under the specified root domain.
// If specified values of the name servers only serve as guidance for what to delete.
// If there are other name servers for the specified domain server, those will be
// deleted as well.
Delete(rootDomain string, domain string, values sets.String) error
}