prefixfile

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: BSD-3-Clause Imports: 11 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetaData

type MetaData struct {
	Counts        int    `json:"counts"`
	Generated     int    `json:"generated"`
	Valid         int    `json:"valid,omitempty"`
	Signature     string `json:"signature,omitempty"`
	SignatureDate string `json:"signatureDate,omitempty"`
}

type ROAJson

type ROAJson struct {
	Prefix string `json:"prefix"`
	Length uint8  `json:"maxLength"`
	ASN    string `json:"asn"`
	TA     string `json:"ta,omitempty"`
}

func (*ROAJson) GetASN

func (roa *ROAJson) GetASN() uint32

func (*ROAJson) GetPrefix

func (roa *ROAJson) GetPrefix() *net.IPNet

func (*ROAJson) String

func (roa *ROAJson) String() string

type ROAList

type ROAList struct {
	Metadata MetaData  `json:"metadata,omitempty"`
	Data     []ROAJson `json:"roas"`
}

func (*ROAList) CheckFile

func (roalist *ROAList) CheckFile(key *ecdsa.PublicKey) (bool, bool, error)

func (*ROAList) GenerateDigest

func (roalist *ROAList) GenerateDigest() ([]byte, []byte, error)

func (*ROAList) Sign

func (roalist *ROAList) Sign(privkey *ecdsa.PrivateKey) (string, string, error)

Jump to

Keyboard shortcuts

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