certapi

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Info        string = "info"
	Key         string = "key"
	Cert        string = "certificate"
	CertChain   string = "certificate-chain"
	PKCS12      string = "pkcs12"
	PKCS12Chain string = "pkcs12-chain"
)
View Source
const (
	MimeTypeInfo        string = "application/json"
	MimeTypeKey         string = "application/x-pem-file"
	MimeTypeCert        string = "application/x-pem-file"
	MimeTypeCertChain   string = "application/x-pem-file"
	MimeTypePKCS12      string = "application/x-pkcs12"
	MimeTypePKCS12Chain string = "application/x-pkcs12"
)
View Source
const (
	FilenameInfo        string = "certificate.json"
	FilenameKey         string = "certificate.key"
	FilenameCert        string = "certificate.crt"
	FilenameCertChain   string = "certificate-chain.crt"
	FilenamePKCS12      string = "certificate.pfx"
	FilenamePKCS12Chain string = "certificate-chain.pfx"
)
View Source
const APIKeySize = sha256.Size

Variables

This section is empty.

Functions

This section is empty.

Types

type APIKey

type APIKey [APIKeySize]byte

func (APIKey) MarshalText

func (k APIKey) MarshalText() (text []byte, err error)

func (APIKey) String added in v0.0.17

func (k APIKey) String() string

func (*APIKey) UnmarshalText

func (k *APIKey) UnmarshalText(text []byte) (err error)

type CertInfo

type CertInfo struct {
	StartDate     time.Time
	NextRenewTime time.Time
	Serial        string
}

type CertService added in v0.0.21

type CertService interface {
	GetSerial(domain string, apikey APIKey) (serial string, err error)
	GetItem(domain string, itemtype string, apikey APIKey) (item Item, err error)
	GetItemInfo(domain string, itemtype string, apikey APIKey) (info ItemInfo, err error)
}

type Item added in v0.0.21

type Item struct {
	ItemInfo
	Data []byte
}

type ItemInfo added in v0.0.21

type ItemInfo struct {
	ModTime time.Time
	Size    int64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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