api

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	GetLanguage() string
	SetLanguage(language string)

	GetEndpoint() string
	SetEndpoint(endpoint string)

	GetAPIKey() string
	SetAPIKey(APIKey string)

	GetSecret() string
	SetSecret(secret string)

	SaveEntity(identifer string, entity interface{}) error
	RemoveEntity(identifier string, entity interface{}) error
	CacheSettingList(domain string, search string) ([]vo.CacheSettingVO, error)
	DomainList(search string) ([]vo.DomainVO, error)
	DomainByName(name string) (*vo.DomainVO, error)
	IPFilterList(domain string, search string) ([]vo.IPFilterVO, error)
	RedirectList(domain string, filter string) ([]vo.RedirectVO, error)
	Settings(domain string) (vo.SettingsVO, error)

	GetStatistic(domain string,
		interval string,
		startDate *types.DateTime,
		endDate *types.DateTime,
		source []vo.DatasourceVO,
	) (*vo.StatisticVO, error)

	CacheClear(domain string,
		fqdn string,
		pattern string,
		recursive bool,
	) ([]vo.CacheClearVO, error)

	DNSRecordList(domain string,
		filter *string,
		types *[]string,
		activeOnly bool,
	) ([]vo.DNSRecordVO, error)

	ErrorPage(domain string, search string) ([]vo.ErrorPageVOList, error)
	SslCertList(domain string, search string) ([]vo.SslCertVO, error)
}

API ...

func NewMyraAPI

func NewMyraAPI(APIKey string, Secret string, BaseURI string, Language string) (API, error)

NewMyraAPI creates a new instance of API

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL