cloudcas

package
v0.15.12-rc5 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: Apache-2.0 Imports: 24 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateAuthorityClient

type CertificateAuthorityClient interface {
	CreateCertificate(ctx context.Context, req *pb.CreateCertificateRequest, opts ...gax.CallOption) (*pb.Certificate, error)
	RevokeCertificate(ctx context.Context, req *pb.RevokeCertificateRequest, opts ...gax.CallOption) (*pb.Certificate, error)
	GetCertificateAuthority(ctx context.Context, req *pb.GetCertificateAuthorityRequest, opts ...gax.CallOption) (*pb.CertificateAuthority, error)
	CreateCertificateAuthority(ctx context.Context, req *pb.CreateCertificateAuthorityRequest, opts ...gax.CallOption) (*privateca.CreateCertificateAuthorityOperation, error)
	FetchCertificateAuthorityCsr(ctx context.Context, req *pb.FetchCertificateAuthorityCsrRequest, opts ...gax.CallOption) (*pb.FetchCertificateAuthorityCsrResponse, error)
	ActivateCertificateAuthority(ctx context.Context, req *pb.ActivateCertificateAuthorityRequest, opts ...gax.CallOption) (*privateca.ActivateCertificateAuthorityOperation, error)
}

CertificateAuthorityClient is the interface implemented by the Google CAS client.

type CloudCAS

type CloudCAS struct {
	// contains filtered or unexported fields
}

CloudCAS implements a Certificate Authority Service using Google Cloud CAS.

func New

func New(ctx context.Context, opts apiv1.Options) (*CloudCAS, error)

New creates a new CertificateAuthorityService implementation using Google Cloud CAS.

func (*CloudCAS) CreateCertificate

CreateCertificate signs a new certificate using Google Cloud CAS.

func (*CloudCAS) CreateCertificateAuthority added in v0.15.6

CreateCertificateAuthority creates a new root or intermediate certificate using Google Cloud CAS.

func (*CloudCAS) GetCertificateAuthority

GetCertificateAuthority returns the root certificate for the given certificate authority. It implements apiv1.CertificateAuthorityGetter interface.

func (*CloudCAS) RenewCertificate

RenewCertificate renews the given certificate using Google Cloud CAS. Google's CAS does not support the renew operation, so this method uses CreateCertificate.

func (*CloudCAS) RevokeCertificate

RevokeCertificate revokes a certificate using Google Cloud CAS.

Jump to

Keyboard shortcuts

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