dto

package
v0.0.0-...-ec430c0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACME

type ACME struct {
	Interval lang.Milliseconds `json:"interval"`
}

ACME ...

type AccountDTO

type AccountDTO struct {
	Name    AccountName `json:"name"`
	KeyPair KeyPairName `json:"keypair"`
	Email   string      `json:"email"`
	URL     string      `json:"url"`
}

AccountDTO ...

type AccountName

type AccountName string

AccountName ...

type CertChain

type CertChain []*x509.Certificate

CertChain 表示一个证书链

func (CertChain) Chain

func (cc CertChain) Chain() []*x509.Certificate

Chain ...

func (CertChain) Leaf

func (cc CertChain) Leaf() *x509.Certificate

Leaf ...

type DirectoryDTO

type DirectoryDTO struct {
	Name DirectoryName `json:"name"`
	Path string        `json:"path"`
}

DirectoryDTO ...

type DirectoryName

type DirectoryName string

DirectoryName ...

type Domain

type Domain struct {
	ID   string     // id of segment
	Name DomainName // 域名
	Ref  string     // 域配置文件('domain.config')的相对路径
}

Domain ...

type DomainDTO

type DomainDTO struct {
	Name    DomainName  `json:"name"`
	KeyPair KeyPairName `json:"keypair"`
	Enabled bool        `json:"enabled"`
}

DomainDTO ...

type DomainName

type DomainName string

DomainName ...

func (DomainName) String

func (dn DomainName) String() string

type KeyPairDTO

type KeyPairDTO struct {
	Name      KeyPairName   `json:"name"`
	Algorithm string        `json:"algorithm"`
	FileName  string        `json:"file"`
	Directory DirectoryName `json:"directory"`
}

KeyPairDTO ...

type KeyPairName

type KeyPairName string

KeyPairName ...

type User

type User struct {
	Name  string
	Email string
	Key   dxo.Fingerprint
}

User ...

Jump to

Keyboard shortcuts

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