MCPcopy
hub / github.com/kubernetes/kops / ResourceRecordChangeset

Interface ResourceRecordChangeset

dnsprovider/pkg/dnsprovider/dns.go:72–89  ·  view source on GitHub ↗

ResourceRecordChangeset accumulates a set of changes, that can then be applied with Apply

Source from the content-addressed store, hash-verified

70
71// ResourceRecordChangeset accumulates a set of changes, that can then be applied with Apply
72type 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
91type ResourceRecordSet interface {
92 // Name returns the name of the ResourceRecordSet, e.g. "www.example.com".

Callers 24

updateRecordsMethod · 0.65
TestContractFunction · 0.65
runOnceMethod · 0.65
addRrsetOrFailFunction · 0.65

Implementers 6

resourceRecordChangesetdnsprovider/pkg/dnsprovider/providers/
ResourceRecordChangesetdnsprovider/pkg/dnsprovider/providers/
resourceRecordChangesetdnsprovider/pkg/dnsprovider/providers/
ResourceRecordChangesetdnsprovider/pkg/dnsprovider/providers/
ResourceRecordChangesetdnsprovider/pkg/dnsprovider/providers/
resourceRecordChangesetprotokube/pkg/gossip/dns/provider/chan

Calls

no outgoing calls

Tested by

no test coverage detected