blob: 078a7e7cefbf8e9338ea70bbc6e78025d8db90af (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.dns;
import java.util.Optional;
/**
* A managed DNS service.
*
* @author mpolden
*/
public interface NameService {
/**
* Create a new CNAME record
*
* @param alias The alias to create
* @param canonicalName The canonical name which the alias should point to. This must be a FQDN.
*/
RecordId createCname(RecordName alias, RecordData canonicalName);
/** Find record by type and name */
Optional<Record> findRecord(Record.Type type, RecordName name);
/** Find record by type and data */
Optional<Record> findRecord(Record.Type type, RecordData data);
/** Update existing record */
void updateRecord(RecordId id, RecordData newData);
/** Remove record by ID */
void removeRecord(RecordId id);
}
|