Documentation ¶
Index ¶
- Variables
- func AuthzToPB(authz core.Authorization) (*corepb.Authorization, error)
- func CertStatusToPB(certStatus core.CertificateStatus) *corepb.CertificateStatus
- func CertToPB(cert core.Certificate) *corepb.Certificate
- func ChallengeToPB(challenge core.Challenge) (*corepb.Challenge, error)
- func ClientSetup(c *cmd.GRPCClientConfig, tlsConfig *tls.Config, ...) (*grpc.ClientConn, error)
- func NewServer(c *cmd.GRPCServerConfig, logger blog.Logger) *serverBuilder
- func PBToAuthz(pb *corepb.Authorization) (core.Authorization, error)
- func PBToAuthzMap(pb *sapb.Authorizations) (map[identifier.ACMEIdentifier]*core.Authorization, error)
- func PBToCert(pb *corepb.Certificate) core.Certificate
- func PBToCertStatus(pb *corepb.CertificateStatus) core.CertificateStatus
- func PBToChallenge(in *corepb.Challenge) (challenge core.Challenge, err error)
- func PBToProblemDetails(in *corepb.ProblemDetails) (*probs.ProblemDetails, error)
- func PBToValidationRecord(in *corepb.ValidationRecord) (record core.ValidationRecord, err error)
- func PbToRegistration(pb *corepb.Registration) (core.Registration, error)
- func ProblemDetailsToPB(prob *probs.ProblemDetails) (*corepb.ProblemDetails, error)
- func RegistrationToPB(reg core.Registration) (*corepb.Registration, error)
- func ValidationRecordToPB(record core.ValidationRecord) (*corepb.ValidationRecord, error)
- func ValidationResultToPB(records []core.ValidationRecord, prob *probs.ProblemDetails, ...) (*vapb.ValidationResult, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var CodedError = status.Errorf
CodedError is a alias required to appease go vet
View Source
var ErrMissingParameters = CodedError(codes.FailedPrecondition, "required RPC parameter was missing")
Functions ¶
func AuthzToPB ¶
func AuthzToPB(authz core.Authorization) (*corepb.Authorization, error)
func CertStatusToPB ¶
func CertStatusToPB(certStatus core.CertificateStatus) *corepb.CertificateStatus
func CertToPB ¶
func CertToPB(cert core.Certificate) *corepb.Certificate
func ClientSetup ¶
func ClientSetup(c *cmd.GRPCClientConfig, tlsConfig *tls.Config, statsRegistry prometheus.Registerer, clk clock.Clock) (*grpc.ClientConn, error)
ClientSetup creates a gRPC TransportCredentials that presents a client certificate and validates the server certificate based on the provided *tls.Config. It dials the remote service and returns a grpc.ClientConn if successful.
func NewServer ¶
func NewServer(c *cmd.GRPCServerConfig, logger blog.Logger) *serverBuilder
NewServer returns an object which can be used to build gRPC servers. It takes the server's configuration to perform initialization and a logger for deep health checks.
func PBToAuthz ¶
func PBToAuthz(pb *corepb.Authorization) (core.Authorization, error)
func PBToAuthzMap ¶
func PBToAuthzMap(pb *sapb.Authorizations) (map[identifier.ACMEIdentifier]*core.Authorization, error)
PBToAuthzMap converts a protobuf map of domains mapped to protobuf authorizations to a golang map[string]*core.Authorization.
func PBToCert ¶
func PBToCert(pb *corepb.Certificate) core.Certificate
func PBToCertStatus ¶
func PBToCertStatus(pb *corepb.CertificateStatus) core.CertificateStatus
func PBToProblemDetails ¶
func PBToProblemDetails(in *corepb.ProblemDetails) (*probs.ProblemDetails, error)
func PBToValidationRecord ¶
func PBToValidationRecord(in *corepb.ValidationRecord) (record core.ValidationRecord, err error)
func PbToRegistration ¶
func PbToRegistration(pb *corepb.Registration) (core.Registration, error)
func ProblemDetailsToPB ¶
func ProblemDetailsToPB(prob *probs.ProblemDetails) (*corepb.ProblemDetails, error)
func RegistrationToPB ¶
func RegistrationToPB(reg core.Registration) (*corepb.Registration, error)
func ValidationRecordToPB ¶
func ValidationRecordToPB(record core.ValidationRecord) (*corepb.ValidationRecord, error)
func ValidationResultToPB ¶
func ValidationResultToPB(records []core.ValidationRecord, prob *probs.ProblemDetails, perspective, rir string) (*vapb.ValidationResult, error)
Types ¶
This section is empty.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
backoff
Package backoff implement the backoff strategy for gRPC.
|
Package backoff implement the backoff strategy for gRPC. |
grpcrand
Package grpcrand implements math/rand functions in a concurrent-safe way with a global random source, independent of math/rand's global source.
|
Package grpcrand implements math/rand functions in a concurrent-safe way with a global random source, independent of math/rand's global source. |
leakcheck
Package leakcheck contains functions to check leaked goroutines.
|
Package leakcheck contains functions to check leaked goroutines. |
Click to show internal directories.
Click to hide internal directories.