Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogleCASClient ¶
type GoogleCASClient struct {
// contains filtered or unexported fields
}
GoogleCASClient: Agent side plugin for Google CAS
func NewGoogleCASClient ¶
func NewGoogleCASClient(capool string, ol []grpc.DialOption) (*GoogleCASClient, error)
NewGoogleCASClient create a CA client for Google CAS. capool is in format: projects/*/locations/*/caPools/*
func (*GoogleCASClient) CSRSign ¶
func (r *GoogleCASClient) CSRSign(csrPEM []byte, certValidTTLInSec int64) ([]string, error)
CSR Sign calls Google CAS to sign a CSR.
func (*GoogleCASClient) Close ¶
func (r *GoogleCASClient) Close()
func (*GoogleCASClient) GetRootCertBundle ¶
func (r *GoogleCASClient) GetRootCertBundle() ([]string, error)
GetRootCertBundle: Get CA certs of the pool from Google CAS API endpoint
Click to show internal directories.
Click to hide internal directories.