Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BgpSecKeyJson ¶ added in v0.5.0
type BgpSecKeyJson struct { Asn uint32 `json:"asn"` Expires *int64 `json:"expires,omitempty"` Ta string `json:"ta,omitempty"` // Base32 encoded, but encoding/json handles this for us // Example: MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE4FxJr0n2bux1uX1Evl+QWwZYvIadPjLuFX2mxqKuAGUhKnr7VLLDgrE++l9p5eH2kWTNVAN22FUU3db/RKpE2w== Pubkey []byte `json:"pubkey"` // Base16 encoded, we need to decode this ourself // Example: 510F485D29A29DB7B515F9C478F8ED3CB7AA7D23 Ski string `json:"ski"` }
type MetaData ¶
type MetaData struct { Counts int `json:"vrps"` CountBgpSecKeys int `json:"bgpsec_pubkeys"` Buildtime string `json:"buildtime,omitempty"` GeneratedUnix *int64 `json:"generated,omitempty"` }
func (MetaData) GetBuildTime ¶ added in v0.4.0
type RPKIList ¶ added in v0.6.0
type RPKIList struct { Metadata MetaData `json:"metadata,omitempty"` ROA []VRPJson `json:"roas"` // for historical reasons this is called 'roas', but should've been called vrps BgpSecKeys []BgpSecKeyJson `json:"bgpsec_keys,omitempty"` }
type SlurmBGPsecAssertion ¶ added in v0.5.0
type SlurmBGPsecFilter ¶ added in v0.5.0
type SlurmConfig ¶
type SlurmConfig struct { SlurmVersion int ValidationOutputFilters SlurmValidationOutputFilters LocallyAddedAssertions SlurmLocallyAddedAssertions }
func DecodeJSONSlurm ¶
func DecodeJSONSlurm(buf io.Reader) (*SlurmConfig, error)
func (*SlurmConfig) FilterAssert ¶
func (s *SlurmConfig) FilterAssert(vrps []VRPJson, BRKs []BgpSecKeyJson, log Logger) ( ovrps []VRPJson, oBRKs []BgpSecKeyJson)
func (*SlurmConfig) GetAssertions ¶ added in v0.5.0
func (s *SlurmConfig) GetAssertions() (vrps []VRPJson, BRKs []BgpSecKeyJson)
type SlurmLocallyAddedAssertions ¶
type SlurmLocallyAddedAssertions struct { PrefixAssertions []SlurmPrefixAssertion BgpsecAssertions []SlurmBGPsecAssertion }
func (*SlurmLocallyAddedAssertions) AssertBRKs ¶ added in v0.5.0
func (s *SlurmLocallyAddedAssertions) AssertBRKs() []BgpSecKeyJson
func (*SlurmLocallyAddedAssertions) AssertVRPs ¶
func (s *SlurmLocallyAddedAssertions) AssertVRPs() []VRPJson
type SlurmPrefixAssertion ¶
func (*SlurmPrefixAssertion) GetASN ¶
func (pa *SlurmPrefixAssertion) GetASN() uint32
func (*SlurmPrefixAssertion) GetMaxLen ¶
func (pa *SlurmPrefixAssertion) GetMaxLen() int
func (*SlurmPrefixAssertion) GetPrefix ¶
func (pa *SlurmPrefixAssertion) GetPrefix() *net.IPNet
type SlurmPrefixFilter ¶
func (*SlurmPrefixFilter) GetASN ¶
func (pf *SlurmPrefixFilter) GetASN() (uint32, bool)
func (*SlurmPrefixFilter) GetPrefix ¶
func (pf *SlurmPrefixFilter) GetPrefix() netip.Prefix
type SlurmValidationOutputFilters ¶
type SlurmValidationOutputFilters struct { PrefixFilters []SlurmPrefixFilter BgpsecFilters []SlurmBGPsecFilter }
func (*SlurmValidationOutputFilters) FilterOnBRKs ¶ added in v0.5.0
func (s *SlurmValidationOutputFilters) FilterOnBRKs(brks []BgpSecKeyJson) (added, removed []BgpSecKeyJson)
func (*SlurmValidationOutputFilters) FilterOnVRPs ¶
func (s *SlurmValidationOutputFilters) FilterOnVRPs(vrps []VRPJson) (added, removed []VRPJson)
Click to show internal directories.
Click to hide internal directories.