cas

package
v0.0.0-...-91af647 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL