Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CASServer ¶
CASServer is the mocked Google CAS server.
func CreateServer ¶
func CreateServer(service *CASService) (*CASServer, *bufconn.Listener, error)
CreateServer creates a mocked local Google CAS server and runs it in a separate goroutine.
type CASService ¶
type CASService struct { privatecapb.UnimplementedCertificateAuthorityServiceServer CertPEM string CertChainPEM []string CaCertBundle [][]string }
CASService is a mock Google CAS Service.
func (CASService) CreateCertificate ¶
func (ca CASService) CreateCertificate(ctx context.Context, req *privatecapb.CreateCertificateRequest) (*privatecapb.Certificate, error)
CreateCertificate is a mocked function for the Google CAS CA API.
func (CASService) FetchCaCerts ¶
func (ca CASService) FetchCaCerts(ctx context.Context, req *privatecapb.FetchCaCertsRequest) (*privatecapb.FetchCaCertsResponse, error)
type ContextDialer ¶
func ContextDialerCreate ¶
func ContextDialerCreate(listener *bufconn.Listener) ContextDialer
Click to show internal directories.
Click to hide internal directories.