CaClient is the interface implemented by a client used to sign, renew, revoke certificates among other things.
| 27 | // CaClient is the interface implemented by a client used to sign, renew, revoke |
| 28 | // certificates among other things. |
| 29 | type CaClient interface { |
| 30 | Sign(req *api.SignRequest) (*api.SignResponse, error) |
| 31 | Renew(tr http.RoundTripper) (*api.SignResponse, error) |
| 32 | RenewWithToken(ott string) (*api.SignResponse, error) |
| 33 | Revoke(req *api.RevokeRequest, tr http.RoundTripper) (*api.RevokeResponse, error) |
| 34 | Rekey(req *api.RekeyRequest, tr http.RoundTripper) (*api.SignResponse, error) |
| 35 | SSHSign(req *api.SSHSignRequest) (*api.SSHSignResponse, error) |
| 36 | SSHRenew(req *api.SSHRenewRequest) (*api.SSHRenewResponse, error) |
| 37 | SSHRekey(req *api.SSHRekeyRequest) (*api.SSHRekeyResponse, error) |
| 38 | SSHRevoke(req *api.SSHRevokeRequest) (*api.SSHRevokeResponse, error) |
| 39 | SSHRoots() (*api.SSHRootsResponse, error) |
| 40 | SSHFederation() (*api.SSHRootsResponse, error) |
| 41 | SSHConfig(req *api.SSHConfigRequest) (*api.SSHConfigResponse, error) |
| 42 | SSHCheckHost(principal string, token string) (*api.SSHCheckPrincipalResponse, error) |
| 43 | SSHGetHosts() (*api.SSHGetHostsResponse, error) |
| 44 | SSHBastion(req *api.SSHBastionRequest) (*api.SSHBastionResponse, error) |
| 45 | Version() (*api.VersionResponse, error) |
| 46 | GetRootCAs() *x509.CertPool |
| 47 | GetCaURL() string |
| 48 | } |
| 49 | |
| 50 | // NewClient returns a client of an online or offline CA. Requires the flags |
| 51 | // `offline`, `ca-config`, `ca-url`, and `root`. |
no outgoing calls
no test coverage detected
searching dependent graphs…