Documentation ¶
Index ¶
- type Apisix
- type Certificate
- func (c *Certificate) Cert() string
- func (c *Certificate) Chain() string
- func (c *Certificate) Invalidate(chain string) (invalidate bool, err error)
- func (c *Certificate) Key() string
- func (c *Certificate) Load(loader Loader) (err error)
- func (c *Certificate) Match(check *Domain) (matched bool)
- func (c *Certificate) SniKey() key.Sni
- type Chuangcache
- type Domain
- type DomainType
- type Loader
- type Record
- type ServerCertificate
- type Setter
- type StatusCoder
- type Tencent
- type Token
- type TokenSetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Apisix ¶
type Certificate ¶
type Certificate struct { // 标题 Title string `json:"title,omitempty" validate:"required"` // 域名 Domain string `json:"domain,omitempty" validate:"required_without=Domains"` // 域名列表 Domains []string `json:"domains,omitempty" validate:"required_without=Domain"` // 类型 Type string `default:"dp" json:"type,omitempty"` // 用于内部使用,确定一个证书的后续操作标识 Id string }
func (*Certificate) Cert ¶
func (c *Certificate) Cert() string
func (*Certificate) Chain ¶
func (c *Certificate) Chain() string
func (*Certificate) Invalidate ¶
func (c *Certificate) Invalidate(chain string) (invalidate bool, err error)
func (*Certificate) Key ¶
func (c *Certificate) Key() string
func (*Certificate) Load ¶
func (c *Certificate) Load(loader Loader) (err error)
func (*Certificate) Match ¶
func (c *Certificate) Match(check *Domain) (matched bool)
func (*Certificate) SniKey ¶
func (c *Certificate) SniKey() key.Sni
type Chuangcache ¶
type Domain ¶
type Domain struct { Id string Name string Type DomainType }
func (*Domain) TencentType ¶
type DomainType ¶
type DomainType uint8
const ( DomainTypeCdn DomainType = iota + 1 DomainTypeGateway )
type ServerCertificate ¶
type StatusCoder ¶
type TokenSetter ¶
type TokenSetter interface {
Token(token string) TokenSetter
}
Click to show internal directories.
Click to hide internal directories.