Documentation ¶
Index ¶
- func WithCAChain(caCert string) func(*CA) error
- type CA
- func (c *CA) AffiliationCreate(ctx context.Context, name string, opts ...caapi.AffiliationOpt) error
- func (c *CA) AffiliationDelete(ctx context.Context, name string, opts ...caapi.AffiliationOpt) ([]caapi.Identity, []caapi.Affiliation, error)
- func (c *CA) AffiliationList(ctx context.Context, rootAffiliation ...string) ([]caapi.Identity, []caapi.Affiliation, error)
- func (c *CA) CAInfo(ctx context.Context) (*caapi.ResponseCAInfo, error)
- func (c *CA) CertificateList(ctx context.Context, opts ...caapi.CertificateListOpt) ([]*x509.Certificate, error)
- func (c *CA) Enroll(_ context.Context, name, _ string, req *x509.CertificateRequest, ...) (*x509.Certificate, interface{}, error)
- func (c *CA) IdentityGet(ctx context.Context, enrollId string) (*caapi.Identity, error)
- func (c *CA) IdentityList(ctx context.Context) ([]caapi.Identity, error)
- func (c *CA) Register(ctx context.Context, req caapi.RegistrationRequest) (string, error)
- func (c *CA) Revoke(ctx context.Context, req caapi.RevocationRequest) (*pkix.CertificateList, error)
- type Cert
- type Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithCAChain ¶
Types ¶
type CA ¶
type CA struct { PK interface{} Cert *x509.Certificate CAChain string Enrolled map[string][]*x509.Certificate // contains filtered or unexported fields }
func (*CA) AffiliationCreate ¶
func (*CA) AffiliationDelete ¶
func (*CA) AffiliationList ¶
func (*CA) CertificateList ¶
func (c *CA) CertificateList(ctx context.Context, opts ...caapi.CertificateListOpt) ([]*x509.Certificate, error)
func (*CA) IdentityGet ¶
func (*CA) Revoke ¶
func (c *CA) Revoke(ctx context.Context, req caapi.RevocationRequest) (*pkix.CertificateList, error)
type Cert ¶
type Cert struct { Cert *x509.Certificate PrivateKey interface{} }
Click to show internal directories.
Click to hide internal directories.