Documentation ¶
Index ¶
- type Client
- func (c *Client) AffiliationCreate(ctx context.Context, name string, opts ...ca.AffiliationOpt) error
- func (c *Client) AffiliationDelete(ctx context.Context, name string, opts ...ca.AffiliationOpt) ([]ca.Identity, []ca.Affiliation, error)
- func (c *Client) AffiliationList(ctx context.Context, rootAffiliation ...string) ([]ca.Identity, []ca.Affiliation, error)
- func (c *Client) CAInfo(ctx context.Context) (*ca.ResponseCAInfo, error)
- func (c *Client) CertificateList(ctx context.Context, opts ...ca.CertificateListOpt) ([]*x509.Certificate, error)
- func (c *Client) Enroll(ctx context.Context, name, secret string, req *x509.CertificateRequest, ...) (*x509.Certificate, interface{}, error)
- func (c *Client) IdentityGet(ctx context.Context, enrollId string) (*ca.Identity, error)
- func (c *Client) IdentityList(ctx context.Context) ([]ca.Identity, error)
- func (c *Client) Register(ctx context.Context, req ca.RegistrationRequest) (string, error)
- func (c *Client) Revoke(ctx context.Context, req ca.RevocationRequest) (*pkix.CertificateList, error)
- type Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AffiliationCreate ¶
func (*Client) AffiliationDelete ¶
func (*Client) AffiliationList ¶
func (*Client) CertificateList ¶
func (c *Client) CertificateList(ctx context.Context, opts ...ca.CertificateListOpt) ([]*x509.Certificate, error)
func (*Client) IdentityGet ¶
func (*Client) IdentityList ¶
func (*Client) Revoke ¶
func (c *Client) Revoke(ctx context.Context, req ca.RevocationRequest) (*pkix.CertificateList, error)
type Opt ¶
func WithBytesConfig ¶
func WithHTTPClient ¶
func WithRawConfig ¶
func WithYamlConfig ¶
WithYamlConfig allows using YAML config from file
Click to show internal directories.
Click to hide internal directories.