Documentation ¶
Index ¶
- func CreateDomainFailErrMocked(t *testing.T, domainIn *types.Domain) *types.Domain
- func CreateDomainFailJSONMocked(t *testing.T, domainIn *types.Domain) *types.Domain
- func CreateDomainFailStatusMocked(t *testing.T, domainIn *types.Domain) *types.Domain
- func CreateDomainMocked(t *testing.T, domainIn *types.Domain) *types.Domain
- func CreateDomainRecordFailErrMocked(t *testing.T, domainRecordIn *types.DomainRecord) *types.DomainRecord
- func CreateDomainRecordFailJSONMocked(t *testing.T, domainRecordIn *types.DomainRecord) *types.DomainRecord
- func CreateDomainRecordFailStatusMocked(t *testing.T, domainRecordIn *types.DomainRecord) *types.DomainRecord
- func CreateDomainRecordMocked(t *testing.T, dr *types.DomainRecord) *types.DomainRecord
- func DeleteDomainFailErrMocked(t *testing.T, domainIn *types.Domain)
- func DeleteDomainFailStatusMocked(t *testing.T, domainIn *types.Domain)
- func DeleteDomainMocked(t *testing.T, domainIn *types.Domain)
- func DeleteDomainRecordFailErrMocked(t *testing.T, domainRecordIn *types.DomainRecord)
- func DeleteDomainRecordFailStatusMocked(t *testing.T, domainRecordIn *types.DomainRecord)
- func DeleteDomainRecordMocked(t *testing.T, dr *types.DomainRecord)
- func GetDomainFailErrMocked(t *testing.T, domain *types.Domain) *types.Domain
- func GetDomainFailJSONMocked(t *testing.T, domain *types.Domain) *types.Domain
- func GetDomainFailStatusMocked(t *testing.T, domain *types.Domain) *types.Domain
- func GetDomainListFailErrMocked(t *testing.T, domainsIn *[]types.Domain) *[]types.Domain
- func GetDomainListFailJSONMocked(t *testing.T, domainsIn *[]types.Domain) *[]types.Domain
- func GetDomainListFailStatusMocked(t *testing.T, domainsIn *[]types.Domain) *[]types.Domain
- func GetDomainListMocked(t *testing.T, domainsIn *[]types.Domain) *[]types.Domain
- func GetDomainMocked(t *testing.T, domain *types.Domain) *types.Domain
- func GetDomainRecordFailErrMocked(t *testing.T, domainRecord *types.DomainRecord) *types.DomainRecord
- func GetDomainRecordFailJSONMocked(t *testing.T, domainRecord *types.DomainRecord) *types.DomainRecord
- func GetDomainRecordFailStatusMocked(t *testing.T, domainRecord *types.DomainRecord) *types.DomainRecord
- func GetDomainRecordListFailErrMocked(t *testing.T, domainRecordsIn *[]types.DomainRecord, domainID string) *[]types.DomainRecord
- func GetDomainRecordListFailJSONMocked(t *testing.T, domainRecordsIn *[]types.DomainRecord, domainID string) *[]types.DomainRecord
- func GetDomainRecordListFailStatusMocked(t *testing.T, domainRecordsIn *[]types.DomainRecord, domainID string) *[]types.DomainRecord
- func GetDomainRecordListMocked(t *testing.T, domainRecordsIn *[]types.DomainRecord, domainID string) *[]types.DomainRecord
- func GetDomainRecordMocked(t *testing.T, dr *types.DomainRecord) *types.DomainRecord
- func UpdateDomainFailErrMocked(t *testing.T, domainIn *types.Domain) *types.Domain
- func UpdateDomainFailJSONMocked(t *testing.T, domainIn *types.Domain) *types.Domain
- func UpdateDomainFailStatusMocked(t *testing.T, domainIn *types.Domain) *types.Domain
- func UpdateDomainMocked(t *testing.T, domainIn *types.Domain) *types.Domain
- func UpdateDomainRecordFailErrMocked(t *testing.T, domainRecordIn *types.DomainRecord) *types.DomainRecord
- func UpdateDomainRecordFailJSONMocked(t *testing.T, domainRecordIn *types.DomainRecord) *types.DomainRecord
- func UpdateDomainRecordFailStatusMocked(t *testing.T, domainRecordIn *types.DomainRecord) *types.DomainRecord
- func UpdateDomainRecordMocked(t *testing.T, dr *types.DomainRecord) *types.DomainRecord
- type DomainService
- func (dm *DomainService) CreateDomain(domainVector *map[string]interface{}) (domain *types.Domain, err error)
- func (dm *DomainService) CreateDomainRecord(domainRecordVector *map[string]interface{}, domID string) (domainRecord *types.DomainRecord, err error)
- func (dm *DomainService) DeleteDomain(ID string) (err error)
- func (dm *DomainService) DeleteDomainRecord(domID string, ID string) (err error)
- func (dm *DomainService) GetDomain(ID string) (domain *types.Domain, err error)
- func (dm *DomainService) GetDomainList() (domains []types.Domain, err error)
- func (dm *DomainService) GetDomainRecord(domID string, ID string) (domainRecord *types.DomainRecord, err error)
- func (dm *DomainService) GetDomainRecordList(domainID string) (domainRecord *[]types.DomainRecord, err error)
- func (dm *DomainService) UpdateDomain(domainVector *map[string]interface{}, ID string) (domain *types.Domain, err error)
- func (dm *DomainService) UpdateDomainRecord(domainRecordVector *map[string]interface{}, domID string, ID string) (domainRecord *types.DomainRecord, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDomainFailErrMocked ¶
CreateDomainFailErrMocked test mocked function
func CreateDomainFailJSONMocked ¶
CreateDomainFailJSONMocked test mocked function
func CreateDomainFailStatusMocked ¶
CreateDomainFailStatusMocked test mocked function
func CreateDomainMocked ¶
CreateDomainMocked test mocked function
func CreateDomainRecordFailErrMocked ¶
func CreateDomainRecordFailErrMocked(t *testing.T, domainRecordIn *types.DomainRecord) *types.DomainRecord
CreateDomainRecordFailErrMocked test mocked function
func CreateDomainRecordFailJSONMocked ¶
func CreateDomainRecordFailJSONMocked(t *testing.T, domainRecordIn *types.DomainRecord) *types.DomainRecord
CreateDomainRecordFailJSONMocked test mocked function
func CreateDomainRecordFailStatusMocked ¶
func CreateDomainRecordFailStatusMocked(t *testing.T, domainRecordIn *types.DomainRecord) *types.DomainRecord
CreateDomainRecordFailStatusMocked test mocked function
func CreateDomainRecordMocked ¶
func CreateDomainRecordMocked(t *testing.T, dr *types.DomainRecord) *types.DomainRecord
CreateDomainRecordMocked test mocked function
func DeleteDomainFailErrMocked ¶
DeleteDomainFailErrMocked test mocked function
func DeleteDomainFailStatusMocked ¶
DeleteDomainFailStatusMocked test mocked function
func DeleteDomainMocked ¶
DeleteDomainMocked test mocked function
func DeleteDomainRecordFailErrMocked ¶
func DeleteDomainRecordFailErrMocked(t *testing.T, domainRecordIn *types.DomainRecord)
DeleteDomainRecordFailErrMocked test mocked function
func DeleteDomainRecordFailStatusMocked ¶
func DeleteDomainRecordFailStatusMocked(t *testing.T, domainRecordIn *types.DomainRecord)
DeleteDomainRecordFailStatusMocked test mocked function
func DeleteDomainRecordMocked ¶
func DeleteDomainRecordMocked(t *testing.T, dr *types.DomainRecord)
DeleteDomainRecordMocked test mocked function
func GetDomainFailErrMocked ¶
GetDomainFailErrMocked test mocked function
func GetDomainFailJSONMocked ¶
GetDomainFailJSONMocked test mocked function
func GetDomainFailStatusMocked ¶
GetDomainFailStatusMocked test mocked function
func GetDomainListFailErrMocked ¶
GetDomainListFailErrMocked test mocked function
func GetDomainListFailJSONMocked ¶
GetDomainListFailJSONMocked test mocked function
func GetDomainListFailStatusMocked ¶
GetDomainListFailStatusMocked test mocked function
func GetDomainListMocked ¶
GetDomainListMocked test mocked function
func GetDomainMocked ¶
GetDomainMocked test mocked function
func GetDomainRecordFailErrMocked ¶
func GetDomainRecordFailErrMocked(t *testing.T, domainRecord *types.DomainRecord) *types.DomainRecord
GetDomainRecordFailErrMocked test mocked function
func GetDomainRecordFailJSONMocked ¶
func GetDomainRecordFailJSONMocked(t *testing.T, domainRecord *types.DomainRecord) *types.DomainRecord
GetDomainRecordFailJSONMocked test mocked function
func GetDomainRecordFailStatusMocked ¶
func GetDomainRecordFailStatusMocked(t *testing.T, domainRecord *types.DomainRecord) *types.DomainRecord
GetDomainRecordFailStatusMocked test mocked function
func GetDomainRecordListFailErrMocked ¶
func GetDomainRecordListFailErrMocked(t *testing.T, domainRecordsIn *[]types.DomainRecord, domainID string) *[]types.DomainRecord
GetDomainRecordListFailErrMocked test mocked function
func GetDomainRecordListFailJSONMocked ¶
func GetDomainRecordListFailJSONMocked(t *testing.T, domainRecordsIn *[]types.DomainRecord, domainID string) *[]types.DomainRecord
GetDomainRecordListFailJSONMocked test mocked function
func GetDomainRecordListFailStatusMocked ¶
func GetDomainRecordListFailStatusMocked(t *testing.T, domainRecordsIn *[]types.DomainRecord, domainID string) *[]types.DomainRecord
GetDomainRecordListFailStatusMocked test mocked function
func GetDomainRecordListMocked ¶
func GetDomainRecordListMocked(t *testing.T, domainRecordsIn *[]types.DomainRecord, domainID string) *[]types.DomainRecord
GetDomainRecordListMocked test mocked function
func GetDomainRecordMocked ¶
func GetDomainRecordMocked(t *testing.T, dr *types.DomainRecord) *types.DomainRecord
GetDomainRecordMocked test mocked function
func UpdateDomainFailErrMocked ¶
UpdateDomainFailErrMocked test mocked function
func UpdateDomainFailJSONMocked ¶
UpdateDomainFailJSONMocked test mocked function
func UpdateDomainFailStatusMocked ¶
UpdateDomainFailStatusMocked test mocked function
func UpdateDomainMocked ¶
UpdateDomainMocked test mocked function
func UpdateDomainRecordFailErrMocked ¶
func UpdateDomainRecordFailErrMocked(t *testing.T, domainRecordIn *types.DomainRecord) *types.DomainRecord
UpdateDomainRecordFailErrMocked test mocked function
func UpdateDomainRecordFailJSONMocked ¶
func UpdateDomainRecordFailJSONMocked(t *testing.T, domainRecordIn *types.DomainRecord) *types.DomainRecord
UpdateDomainRecordFailJSONMocked test mocked function
func UpdateDomainRecordFailStatusMocked ¶
func UpdateDomainRecordFailStatusMocked(t *testing.T, domainRecordIn *types.DomainRecord) *types.DomainRecord
UpdateDomainRecordFailStatusMocked test mocked function
func UpdateDomainRecordMocked ¶
func UpdateDomainRecordMocked(t *testing.T, dr *types.DomainRecord) *types.DomainRecord
UpdateDomainRecordMocked test mocked function
Types ¶
type DomainService ¶
type DomainService struct {
// contains filtered or unexported fields
}
DomainService manages domain operations
func NewDomainService ¶
func NewDomainService(concertoService utils.ConcertoService) (*DomainService, error)
NewDomainService returns a Concerto domain service
func (*DomainService) CreateDomain ¶
func (dm *DomainService) CreateDomain(domainVector *map[string]interface{}) (domain *types.Domain, err error)
CreateDomain creates a domain
func (*DomainService) CreateDomainRecord ¶
func (dm *DomainService) CreateDomainRecord(domainRecordVector *map[string]interface{}, domID string) (domainRecord *types.DomainRecord, err error)
CreateDomainRecord returns a list of domainRecord
func (*DomainService) DeleteDomain ¶
func (dm *DomainService) DeleteDomain(ID string) (err error)
DeleteDomain deletes a domain by its ID
func (*DomainService) DeleteDomainRecord ¶
func (dm *DomainService) DeleteDomainRecord(domID string, ID string) (err error)
DeleteDomainRecord deletes a domain record
func (*DomainService) GetDomain ¶
func (dm *DomainService) GetDomain(ID string) (domain *types.Domain, err error)
GetDomain returns a domain by its ID
func (*DomainService) GetDomainList ¶
func (dm *DomainService) GetDomainList() (domains []types.Domain, err error)
GetDomainList returns the list of domains as an array of Domain
func (*DomainService) GetDomainRecord ¶
func (dm *DomainService) GetDomainRecord(domID string, ID string) (domainRecord *types.DomainRecord, err error)
GetDomainRecord returns a domainRecord
func (*DomainService) GetDomainRecordList ¶
func (dm *DomainService) GetDomainRecordList(domainID string) (domainRecord *[]types.DomainRecord, err error)
GetDomainRecordList returns a list of domainRecord by domain ID
func (*DomainService) UpdateDomain ¶
func (dm *DomainService) UpdateDomain(domainVector *map[string]interface{}, ID string) (domain *types.Domain, err error)
UpdateDomain updates a domain by its ID
func (*DomainService) UpdateDomainRecord ¶
func (dm *DomainService) UpdateDomainRecord(domainRecordVector *map[string]interface{}, domID string, ID string) (domainRecord *types.DomainRecord, err error)
UpdateDomainRecord returns a list of domainRecord