20 lines
675 B
Go
20 lines
675 B
Go
package port
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/maximotejeda/ddns/internal/application/core/domain/cf"
|
|
)
|
|
|
|
type Provider interface {
|
|
List() (result *cf.ResponseBody, err error)
|
|
Export() ([]byte, error)
|
|
Import(file io.Reader) (err error)
|
|
Update(id string, reqBody *cf.RequestBody) (result *cf.DetailsResult, err error)
|
|
Create(reqBody *cf.RequestBody) (result *cf.DetailsResult, err error)
|
|
Delete(id string) (result *cf.DetailsResult, err error)
|
|
Overwrite(reqBody cf.RequestBody, id string) (result *cf.DetailsResult, err error)
|
|
Details(id string) (result *cf.DetailsResult, err error)
|
|
Selector(subDomain, domain, comment, tipe string) (selRecord []*cf.Result, err error)
|
|
}
|