Documentation
¶
Index ¶
- func DecodePrivateKey(secret string) (ed25519.PrivateKey, error)
- type License
- type LicenseDomain
- func (c *LicenseDomain) Decode(cert []byte) error
- func (c *LicenseDomain) Encode(secret ed25519.PrivateKey) error
- func (c *LicenseDomain) GetCert() string
- func (c *LicenseDomain) GetDomain() string
- func (c *LicenseDomain) GetId() string
- func (c *LicenseDomain) GetIssuer() string
- func (c *LicenseDomain) GetTier() Tier
- func (c *LicenseDomain) GetType() Type
- func (c *LicenseDomain) Print()
- type Tier
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodePrivateKey ¶
func DecodePrivateKey(secret string) (ed25519.PrivateKey, error)
Types ¶
type License ¶
type LicenseDomain ¶
type LicenseDomain struct {
Tier Tier
Domain string
TS time.Time
Id []byte
Sign []byte
Issuer []byte
Cert []byte
}
func (*LicenseDomain) Decode ¶
func (c *LicenseDomain) Decode(cert []byte) error
func (*LicenseDomain) Encode ¶
func (c *LicenseDomain) Encode(secret ed25519.PrivateKey) error
func (*LicenseDomain) GetCert ¶
func (c *LicenseDomain) GetCert() string
func (*LicenseDomain) GetDomain ¶
func (c *LicenseDomain) GetDomain() string
func (*LicenseDomain) GetId ¶
func (c *LicenseDomain) GetId() string
func (*LicenseDomain) GetIssuer ¶
func (c *LicenseDomain) GetIssuer() string
func (*LicenseDomain) GetTier ¶
func (c *LicenseDomain) GetTier() Tier
func (*LicenseDomain) GetType ¶
func (c *LicenseDomain) GetType() Type
func (*LicenseDomain) Print ¶
func (c *LicenseDomain) Print()
Click to show internal directories.
Click to hide internal directories.