domain

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ApiHost = "https://api.qiniu.com"
)

Functions

This section is empty.

Types

type DomainCacheControl

type DomainCacheControl struct {
	Time     int    `json:"time,omitempty"`
	Timeunit int    `json:"timeunit,omitempty"`
	Type     string `json:"type,omitempty"`
	Rule     string `json:"rule,omitempty"`
}

type DomainCacheInfo

type DomainCacheInfo struct {
	IgnoreParam   bool                 `json:"ignoreParam"`
	CacheControls []DomainCacheControl `json:"cacheControls,omitempty"`
}

type DomainDescriber

type DomainDescriber struct {
	OperationType  string `json:"operationType"`
	OperatingState string `json:"operatingState"`
}

type DomainHttpsInfo

type DomainHttpsInfo struct {
	CertID      string `json:"certid,omitempty"`
	ForceHttps  bool   `json:"forceHttps,omitempty"`
	Http2Enable bool   `json:"http2Enable,omitempty"`
}

type DomainInfo

type DomainInfo struct {
	Name        string           `json:"name,omitempty"`
	CName       string           `json:"cname,omitempty"`
	Type        string           `json:"type,omitempty"`
	Platform    string           `json:"platform,omitempty"`
	GeoCover    string           `json:"geoCover,omitempty"`
	Protocol    string           `json:"protocol,omitempty"`
	TestURLPath string           `json:"testURLPath,omitempty"`
	Source      DomainSourceInfo `json:"source,omitempty"`
	Https       DomainHttpsInfo  `json:"https,omitempty"`
	Cache       DomainCacheInfo  `json:"cache,omitempty"`
}

type DomainManager

type DomainManager struct {
	Client *client.Client
	Mac    *auth.Credentials
}

func NewDomainManager

func NewDomainManager(mac *auth.Credentials) *DomainManager

func (*DomainManager) CreateDomain

func (m *DomainManager) CreateDomain(domain string, body DomainInfo) (domainInfo DomainInfo, err error)

func (*DomainManager) DeleteDomain

func (m *DomainManager) DeleteDomain(domain string) (err error)

func (*DomainManager) DescribeDomain

func (m *DomainManager) DescribeDomain(domain string) (response DomainDescriber, err error)

func (*DomainManager) GetDomainInfo

func (m *DomainManager) GetDomainInfo(domain string) (domainInfo DomainInfo, err error)

func (*DomainManager) GetDomainsInfo

func (m *DomainManager) GetDomainsInfo() (domainInfos []DomainInfo, err error)

func (*DomainManager) ModifyDomainCache added in v0.5.0

func (m *DomainManager) ModifyDomainCache(domain string, body DomainCacheInfo) (err error)

func (*DomainManager) ModifyDomainHttpsConf added in v0.4.0

func (m *DomainManager) ModifyDomainHttpsConf(domain string, body DomainHttpsInfo) (err error)

func (*DomainManager) OfflineDomain

func (m *DomainManager) OfflineDomain(domain string) (err error)

func (*DomainManager) SslizeDomain added in v0.4.0

func (m *DomainManager) SslizeDomain(domain string, body DomainHttpsInfo) (err error)

func (*DomainManager) UnsslizeDomain added in v0.4.0

func (m *DomainManager) UnsslizeDomain(domain string) (err error)

type DomainSourceInfo

type DomainSourceInfo struct {
	Type        string   `json:"sourceType,omitempty"`
	Host        string   `json:"sourceHost,omitempty"`
	IPs         []string `json:"sourceIPs,omitempty"`
	Domain      string   `json:"sourceDomain,omitempty"`
	QiniuBucket string   `json:"sourceQiniuBucket,omitempty"`
	URLScheme   string   `json:"sourceURLScheme,omitempty"`
	TestURLPath string   `json:"testURLPath,omitempty"`
	Advanced    []struct {
		Addr   string `json:"addr,omitempty"`
		Weight int    `json:"weight,omitempty"`
		Backup bool   `json:"backup,omitempty"`
	} `json:"advancedSources,omitempty"`
}

Jump to

Keyboard shortcuts

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