functions

package
v1.11.34 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CsrSubjectFields

type CsrSubjectFields struct {
	Country          string
	State            string
	Locality         string
	Organization     string
	OrganizationUnit string
}

CsrSubjectFields are optional fields for the CSR: the fields will appear in the created certificate's "Subject".

type SiaCertData

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

SiaCertData response of GcfGetSiaCerts()

func GcfGetSiaCerts

func GcfGetSiaCerts(
	athenzDomain string,
	athenzService string,
	gcpProjectId string,
	athenzProvider string,
	ztsUrl string,
	certDomain string,
	optionalSubjectFields CsrSubjectFields,
) (*SiaCertData, error)

GcfGetSiaCerts this method can be called from within a GCF (Google Cloud Function) - to get an Athenz certificate from ZTS. See https://cloud.google.com/functions/docs/writing/write-http-functions#http-example-go

Jump to

Keyboard shortcuts

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