service

package
v5.13.8 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const RevokeCertificateRequest_Operation = `` /* 513-byte string literal not displayed */

The query or mutation executed by RevokeCertificateRequest.

Variables

This section is empty.

Functions

This section is empty.

Types

type CAOperationsServiceWrapper

type CAOperationsServiceWrapper interface {
	RevokeCertificateRequest(ctx context.Context, fingerprint string, certificateAuthorityAccountId *string, revocationReason RevocationReason, revocationComment *string) (*RevokeCertificateRequestResponse, error)
}

CAOperationsServiceWrapper provides functions to wrap the autogenerated code of CAOperations services for testing purposes.

type RevocationReason

type RevocationReason string
const (
	RevocationReasonUnspecified          RevocationReason = "UNSPECIFIED"
	RevocationReasonKeyCompromise        RevocationReason = "KEY_COMPROMISE"
	RevocationReasonAffiliationChanged   RevocationReason = "AFFILIATION_CHANGED"
	RevocationReasonSuperseded           RevocationReason = "SUPERSEDED"
	RevocationReasonCessationOfOperation RevocationReason = "CESSATION_OF_OPERATION"
)

type RevocationStatus

type RevocationStatus string

Indicates the revocation status of a certificate

const (
	RevocationStatusSubmitted            RevocationStatus = "SUBMITTED"
	RevocationStatusFailed               RevocationStatus = "FAILED"
	RevocationStatusPendingApproval      RevocationStatus = "PENDING_APPROVAL"
	RevocationStatusPendingFinalApproval RevocationStatus = "PENDING_FINAL_APPROVAL"
	RevocationStatusRejectedApproval     RevocationStatus = "REJECTED_APPROVAL"
)

type RevokeCertificateRequestResponse

type RevokeCertificateRequestResponse struct {
	// Revoke a certificate by SHA1 fingerprint
	RevokeCertificate *RevokeCertificateRequestRevokeCertificate `json:"revokeCertificate"`
}

RevokeCertificateRequestResponse is returned by RevokeCertificateRequest on success.

func RevokeCertificateRequest

func RevokeCertificateRequest(
	ctx_ context.Context,
	client_ graphql.Client,
	fingerprint string,
	certificateAuthorityAccountId *string,
	revocationReason RevocationReason,
	revocationComment *string,
) (*RevokeCertificateRequestResponse, error)

func (*RevokeCertificateRequestResponse) GetRevokeCertificate

GetRevokeCertificate returns RevokeCertificateRequestResponse.RevokeCertificate, and is useful for accessing the field via an interface.

type RevokeCertificateRequestRevokeCertificate

type RevokeCertificateRequestRevokeCertificate struct {
	Id string `json:"id"`
	// The SHA-1 digest of the entire raw certificate
	Fingerprint  string                                               `json:"fingerprint"`
	Revocation   *RevokeCertificateRequestRevokeCertificateRevocation `json:"revocation"`
	SerialNumber string                                               `json:"serialNumber"`
}

RevokeCertificateRequestRevokeCertificate includes the requested fields of the GraphQL type Certificate. The GraphQL type's documentation follows.

Certificate

func (*RevokeCertificateRequestRevokeCertificate) GetFingerprint

GetFingerprint returns RevokeCertificateRequestRevokeCertificate.Fingerprint, and is useful for accessing the field via an interface.

func (*RevokeCertificateRequestRevokeCertificate) GetId

GetId returns RevokeCertificateRequestRevokeCertificate.Id, and is useful for accessing the field via an interface.

func (*RevokeCertificateRequestRevokeCertificate) GetRevocation

GetRevocation returns RevokeCertificateRequestRevokeCertificate.Revocation, and is useful for accessing the field via an interface.

func (*RevokeCertificateRequestRevokeCertificate) GetSerialNumber

GetSerialNumber returns RevokeCertificateRequestRevokeCertificate.SerialNumber, and is useful for accessing the field via an interface.

type RevokeCertificateRequestRevokeCertificateRevocation

type RevokeCertificateRequestRevokeCertificateRevocation struct {
	Status          *RevocationStatus                                                         `json:"status"`
	Error           *RevokeCertificateRequestRevokeCertificateRevocationErrorErrorInformation `json:"error"`
	ApprovalDetails *RevokeCertificateRequestRevokeCertificateRevocationApprovalDetails       `json:"approvalDetails"`
}

RevokeCertificateRequestRevokeCertificateRevocation includes the requested fields of the GraphQL type Revocation.

func (*RevokeCertificateRequestRevokeCertificateRevocation) GetApprovalDetails

GetApprovalDetails returns RevokeCertificateRequestRevokeCertificateRevocation.ApprovalDetails, and is useful for accessing the field via an interface.

func (*RevokeCertificateRequestRevokeCertificateRevocation) GetError

GetError returns RevokeCertificateRequestRevokeCertificateRevocation.Error, and is useful for accessing the field via an interface.

func (*RevokeCertificateRequestRevokeCertificateRevocation) GetStatus

GetStatus returns RevokeCertificateRequestRevokeCertificateRevocation.Status, and is useful for accessing the field via an interface.

type RevokeCertificateRequestRevokeCertificateRevocationApprovalDetails

type RevokeCertificateRequestRevokeCertificateRevocationApprovalDetails struct {
	RejectionReason *string `json:"rejectionReason"`
}

RevokeCertificateRequestRevokeCertificateRevocationApprovalDetails includes the requested fields of the GraphQL type ApprovalDetails.

func (*RevokeCertificateRequestRevokeCertificateRevocationApprovalDetails) GetRejectionReason

GetRejectionReason returns RevokeCertificateRequestRevokeCertificateRevocationApprovalDetails.RejectionReason, and is useful for accessing the field via an interface.

type RevokeCertificateRequestRevokeCertificateRevocationErrorErrorInformation

type RevokeCertificateRequestRevokeCertificateRevocationErrorErrorInformation struct {
	Arguments []string `json:"arguments"`
	Code      *int     `json:"code"`
	Message   string   `json:"message"`
}

RevokeCertificateRequestRevokeCertificateRevocationErrorErrorInformation includes the requested fields of the GraphQL type ErrorInformation.

func (*RevokeCertificateRequestRevokeCertificateRevocationErrorErrorInformation) GetArguments

GetArguments returns RevokeCertificateRequestRevokeCertificateRevocationErrorErrorInformation.Arguments, and is useful for accessing the field via an interface.

func (*RevokeCertificateRequestRevokeCertificateRevocationErrorErrorInformation) GetCode

GetCode returns RevokeCertificateRequestRevokeCertificateRevocationErrorErrorInformation.Code, and is useful for accessing the field via an interface.

func (*RevokeCertificateRequestRevokeCertificateRevocationErrorErrorInformation) GetMessage

GetMessage returns RevokeCertificateRequestRevokeCertificateRevocationErrorErrorInformation.Message, and is useful for accessing the field via an interface.

Jump to

Keyboard shortcuts

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