ResourceRecordChangeset accumulates a set of changes, that can then be applied with Apply
| 70 | |
| 71 | // ResourceRecordChangeset accumulates a set of changes, that can then be applied with Apply |
| 72 | type ResourceRecordChangeset interface { |
| 73 | // Add adds the creation of a ResourceRecordSet in the Zone to the changeset |
| 74 | Add(ResourceRecordSet) ResourceRecordChangeset |
| 75 | // Remove adds the removal of a ResourceRecordSet in the Zone to the changeset |
| 76 | // The supplied ResourceRecordSet must match one of the existing recordsets (obtained via List()) exactly. |
| 77 | Remove(ResourceRecordSet) ResourceRecordChangeset |
| 78 | // Upsert adds an "create or update" operation for the ResourceRecordSet in the Zone to the changeset |
| 79 | // Note: the implementation may translate this into a Remove followed by an Add operation. |
| 80 | // If you have the pre-image, it will likely be more efficient to call Remove and Add. |
| 81 | Upsert(ResourceRecordSet) ResourceRecordChangeset |
| 82 | // Apply applies the accumulated operations to the Zone. |
| 83 | // Implementations should tolerate an empty changeset, and be a relatively quick no-op. |
| 84 | Apply(ctx context.Context) error |
| 85 | // IsEmpty returns true if there are no accumulated operations. |
| 86 | IsEmpty() bool |
| 87 | // ResourceRecordSets returns the parent ResourceRecordSets |
| 88 | ResourceRecordSets() ResourceRecordSets |
| 89 | } |
| 90 | |
| 91 | type ResourceRecordSet interface { |
| 92 | // Name returns the name of the ResourceRecordSet, e.g. "www.example.com". |
no outgoing calls
no test coverage detected