mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-19 00:36:38 +00:00
14 lines
538 B
Go
14 lines
538 B
Go
package records
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type Manager interface {
|
|
GetAllRecords(ctx context.Context, accountID, userID, zoneID string) ([]*Record, error)
|
|
GetRecord(ctx context.Context, accountID, userID, zoneID, recordID string) (*Record, error)
|
|
CreateRecord(ctx context.Context, accountID, userID, zoneID string, record *Record) (*Record, error)
|
|
UpdateRecord(ctx context.Context, accountID, userID, zoneID string, record *Record) (*Record, error)
|
|
DeleteRecord(ctx context.Context, accountID, userID, zoneID, recordID string) error
|
|
}
|