Documentation
¶
Index ¶
- func NewBarrel(barrelSize, keyBits int) *barrel
- type Parcel
- func (p *Parcel) AuthorityKeyID() string
- func (ca *Parcel) DERCRL(revoked []int64) (io.Reader, error)
- func (p *Parcel) DERCertificate() io.Reader
- func (p *Parcel) DERPrivateKey() io.Reader
- func (p *Parcel) Host() string
- func (ca *Parcel) PEMCRL(revoked []int64) (io.Reader, error)
- func (p *Parcel) PEMCertificate() io.Reader
- func (p *Parcel) PEMPrivateKey() io.Reader
- func (p *Parcel) PublicKey() *rsa.PublicKey
- func (p *Parcel) SerialNumber() int64
- func (p *Parcel) SubjectKeyID() string
- type Store
- func (s *Store) Add(visible bool, parentId int64, host string) (int64, error)
- func (s *Store) AddCA(visible bool, name string) (int64, error)
- func (s *Store) AddExistingCA(visible bool, pemCertificate []byte, pemPrivateKey []byte, pemPassword []byte) (int64, error)
- func (s *Store) DumpStore(dest io.Writer)
- func (s *Store) Get(id int64) (*Parcel, bool)
- func (s *Store) GetCAs() []int64
- func (s *Store) GetChildren(id int64) ([]int64, bool)
- func (s *Store) GetParent(id int64) (int64, bool)
- func (s *Store) GetRevokedChildren(id int64) []int64
- func (s *Store) IsRevoked(id int64) bool
- func (s *Store) SetRevoked(id int64, revoked bool)
- func (s *Store) Updates(c chan<- struct{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Parcel ¶
type Parcel struct { Visible bool Certificate *x509.Certificate PrivateKey *rsa.PrivateKey DERCertificateBytes []byte }
func (*Parcel) AuthorityKeyID ¶
func (*Parcel) DERCertificate ¶
func (*Parcel) DERPrivateKey ¶
func (*Parcel) PEMCertificate ¶
func (*Parcel) PEMPrivateKey ¶
func (*Parcel) SerialNumber ¶
func (*Parcel) SubjectKeyID ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AddExistingCA ¶
func (*Store) GetRevokedChildren ¶
func (*Store) SetRevoked ¶
Click to show internal directories.
Click to hide internal directories.