identifier

package
v0.0.0-...-94d1468 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MPL-2.0 Imports: 0 Imported by: 9

Documentation

Overview

The identifier package defines types for RFC 8555 ACME identifiers.

Index

Constants

View Source
const (
	// DNS is specified in RFC 8555 for DNS type identifiers.
	DNS = IdentifierType("dns")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ACMEIdentifier

type ACMEIdentifier struct {
	// Type is the registered IdentifierType of the identifier.
	Type IdentifierType `json:"type"`
	// Value is the value of the identifier. For a DNS type identifier it is
	// a domain name.
	Value string `json:"value"`
}

ACMEIdentifier is a struct encoding an identifier that can be validated. The protocol allows for different types of identifier to be supported (DNS names, IP addresses, etc.), but currently we only support RFC 8555 DNS type identifiers for domain names.

func DNSIdentifier

func DNSIdentifier(domain string) ACMEIdentifier

DNSIdentifier is a convenience function for creating an ACMEIdentifier with Type DNS for a given domain name.

type IdentifierType

type IdentifierType string

IdentifierType is a named string type for registered ACME identifier types. See https://tools.ietf.org/html/rfc8555#section-9.7.7

Jump to

Keyboard shortcuts

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