![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
github.com/DNS-OARC/ripeatlas
Go bindings for the RIPE Atlas API to retrieve measurements and other data, can read from JSON files or use the REST API. Will decode the data into Go objects and have helper functions to easily access the data within.
Atlaser
is the interface to access RIPE Atlas and there are a few
different ways to do so:
examples/reader/main.go
.examples/reader/main.go
.examples/streamer/main.go
.Implementation status of API calls described by https://atlas.ripe.net/docs/api/v2/reference/ .
Call | Status | Func |
---|---|---|
/api/v2/measurements/ | HTTP only | Atlaser.Measurements() |
/api/v2/measurements/{pk} | HTTP only | Atlaser.Measurements() |
/api/v2/measurements/{pk}/latest/ | Done | Atlaser.MeasurementLatest() |
/api/v2/measurements/{pk}/results/ | Done | Atlaser.MeasurementResults() |
Call | Status | Func |
---|---|---|
/api/v2/probes/ | HTTP only | Atlaser.Probes() |
/api/v2/probes/{pk} | HTTP only | Atlaser.Probes() |
Implementation status of objects (by type) decribed by https://atlas.ripe.net/docs/data_struct/ .
Type | Fireware | Status |
---|---|---|
dns | 4610 to 4760 | Done |
ping | 4610 to 4760 | Done |
traceroute | 4610 to 4760 | Done |
http | 4610 to 4760 | Done |
ntp | 4610 to 4760 | Done |
sslcert | 4610 to 4760 | Done |
wifi | 4610 to 4760 | Done (undocumented by RIPE) |
See or test more complete examples in the examples directory.
import (
"fmt"
"github.com/DNS-OARC/ripeatlas"
)
// Read Atlas results from a file
a := ripeatlas.Atlaser(ripeatlas.NewFile())
c, err := a.MeasurementResults(ripeatlas.Params{"file": name})
if err != nil {
...
}
for r := range c {
if r.ParseError != nil {
...
}
fmt.Printf("%d %s\n", r.MsmId(), r.Type())
}
// Read Atlas results using REST API
a := ripeatlas.Atlaser(ripeatlas.NewHttp())
c, err := a.MeasurementResults(ripeatlas.Params{"pk": id})
if err != nil {
...
}
for r := range c {
if r.ParseError != nil {
...
}
fmt.Printf("%d %s\n", r.MsmId(), r.Type())
}
// Read DNS measurements using Streaming API
a := ripeatlas.Atlaser(ripeatlas.NewStream())
c, err := a.MeasurementResults(ripeatlas.Params{"type": "dns"})
if err != nil {
...
}
for r := range c {
if r.ParseError != nil {
...
}
fmt.Printf("%d %s\n", r.MsmId(), r.Type())
}
Jerry Lundström jerry@dns-oarc.net
MIT License
Copyright (c) 2022 OARC, Inc.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.