Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllowedPrefix ¶
func (*AllowedPrefix) String ¶
func (p *AllowedPrefix) String() string
type Model ¶
type Model interface {
MigrateUp() error
RecordPeeringDBPeers(ctx context.Context, members []*pb.PeeringDBMember) error
RecordPeeringDBPeerRouters(ctx context.Context, members []*pb.PeeringDBMember) error
GetPeeringDBPeer(ctx context.Context, asn int64) (*pb.PeeringDBMember, error)
GetCheckablePeers(ctx context.Context) ([]*Peer, error)
SubmitPeerCheckResults(ctx context.Context, checkName string, res []*PeerCheckResult) error
GetPeerCheckResults(ctx context.Context, asn []int64) ([]*PeerCheckResult, error)
UpdatePGPKey(ctx context.Context, key *PeerPGPKey) error
GetPGPKeysRequiringAttention(ctx context.Context) ([]*PeerPGPKey, error)
ValidatePGPKeys(ctx context.Context, positive, negative []string) error
GetPeerPGPKey(ctx context.Context, asn int64) (*PeerPGPKey, error)
ConfigureMissingSessions(ctx context.Context, gen func() SessionConfig) error
GetPeerConfiguration(ctx context.Context) ([]*PeerConfiguration, error)
UpdateAllowedPrefixes(ctx context.Context, asn int64, prefixes []*AllowedPrefix) error
GetAllowedPrefixes(ctx context.Context, asn int64) ([]*AllowedPrefix, error)
}
type Peer ¶
type PeerCheckResult ¶
type PeerCheckResult struct {
PeerASN int64
CheckName string
Time time.Time
Status PeerCheckStatus
Message string
}
func (*PeerCheckResult) String ¶
func (p *PeerCheckResult) String() string
type PeerCheckStatus ¶
type PeerCheckStatus int
const ( PeerCheckStatus_Invalid PeerCheckStatus = iota PeerCheckStatus_Okay PeerCheckStatus_Failed PeerCheckStatus_SoftFailed )
type PeerConfiguration ¶
type PeerConfiguration struct {
Peer Peer
Key PeerPGPKey
}
func (*PeerConfiguration) String ¶
func (p *PeerConfiguration) String() string
type PeerPGPKey ¶
func (*PeerPGPKey) String ¶
func (p *PeerPGPKey) String() string
type SessionConfig ¶
type SessionConfig struct {
BGPSecret string
}
func (*SessionConfig) String ¶
func (p *SessionConfig) String() string
Source Files
¶
- allowed_prefixes.go
- checkable_peers.go
- config.go
- get_checks.go
- model.go
- peer_routers.go
- peers.go
- pgp.go
- schema.go
- submit_checks.go
Click to show internal directories.
Click to hide internal directories.