ca

package
v1.5.10 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	XML_VERSION_RFC8181 = 4
	XML_VERSION_RFC8183 = 1
)

Variables

This section is empty.

Functions

func DecodeXMLCRFull

func DecodeXMLCRFull(message []byte) (*XMLMessageChildRequest, []Content, error)

func DecodeXMLFull

func DecodeXMLFull(message []byte) (*XMLMessage, []Content, error)

func DecodeXMLPRFull

func DecodeXMLPRFull(message []byte) (*XMLMessageParentResponse, []Content, error)

Types

type Content

type Content struct {
	XMLName   xml.Name
	Hash      string `xml:"hash,attr"`
	ErrorCode string `xml:"error_code,attr"`
	Tag       string `xml:"tag,attr"`
	URI       string `xml:"uri,attr"`
	Inner     string `xml:",innerxml"`
}

func DecodeInner

func DecodeInner(inner []byte) ([]Content, error)

type XMLMessage

type XMLMessage struct {
	XMLName xml.Name `xml:"http://www.hactrn.net/uris/rpki/publication-spec/ msg"`
	Version int      `xml:"version,attr"`
	Type    string   `xml:"type,attr"`
	Inner   string   `xml:",innerxml"`
}

func DecodeXML

func DecodeXML(message []byte) (*XMLMessage, error)

func NewXMLList

func NewXMLList() *XMLMessage

type XMLMessageChildRequest

type XMLMessageChildRequest struct {
	XMLName     xml.Name `xml:"http://www.hactrn.net/uris/rpki/rpki-setup/ child_request"`
	Version     int      `xml:"version,attr"`
	ChildHandle string   `xml:"child_handle,attr"`
	Tag         string   `xml:"tag,attr"`
	Inner       string   `xml:",innerxml"`
}

type XMLMessageParentResponse

type XMLMessageParentResponse struct {
	XMLName      xml.Name `xml:"http://www.hactrn.net/uris/rpki/rpki-setup/ parent_response"`
	Version      int      `xml:"version,attr"`
	Tag          string   `xml:"tag,attr"`
	ServiceURI   string   `xml:"service_uri,attr"`
	ChildHandle  string   `xml:"child_handle,attr"`
	ParentHandle string   `xml:"parent_handle,attr"`
	Inner        string   `xml:",innerxml"`
}

type XMLMessagePublisherRequest

type XMLMessagePublisherRequest struct {
	XMLName         xml.Name `xml:"http://www.hactrn.net/uris/rpki/rpki-setup/ publisher_request"`
	Version         int      `xml:"version,attr"`
	Tag             string   `xml:"tag,attr"`
	PublisherHandle string   `xml:"publisher_handle,attr"`
	Inner           string   `xml:",innerxml"`
}

type XMLMessageRepositoryResponse

type XMLMessageRepositoryResponse struct {
	XMLName             xml.Name `xml:"http://www.hactrn.net/uris/rpki/rpki-setup/ repository_response"`
	Version             int      `xml:"version,attr"`
	Tag                 string   `xml:"tag,attr"`
	ServiceURI          string   `xml:"service_uri,attr"`
	SIABase             string   `xml:"sia_base,attr"`
	RRDPNotificationURI string   `xml:"rrdp_notification_uri,attr"`
	PublisherHandle     string   `xml:"publisher_handle,attr"`
	Inner               string   `xml:",innerxml"`
}

Jump to

Keyboard shortcuts

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