From b308c3dc2e1e42e271aaac0458b2a3ab156021de Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sat, 6 Jun 2026 13:00:59 -0500 Subject: [PATCH] move to codeberg --- README.md | 6 +++--- agent.go | 2 +- agent_test.go | 2 +- checks.go | 2 +- checks_test.go | 2 +- docker-compose.example.yml | 2 +- go.mod | 2 +- lldp.go | 2 +- mikrotik.go | 2 +- pb/agent.pb.go | 4 ++-- proto/agent.proto | 2 +- snmp.go | 2 +- snmp_test.go | 2 +- ssh.go | 2 +- ssh_test.go | 2 +- 15 files changed, 18 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 46d5288..9553585 100644 --- a/README.md +++ b/README.md @@ -21,10 +21,10 @@ The Towerops agent enables customers to deploy SNMP polling infrastructure on th ### Using Pre-built Image -Pull the latest image from Docker Hub: +Pull the latest image from Codeberg's container registry: ```bash -docker pull ghcr.io/towerops-app/towerops-agent:latest +docker pull codeberg.org/towerops-agent/towerops-agent:latest ``` ### Using Docker Compose @@ -36,7 +36,7 @@ version: '3.8' services: towerops-agent: - image: ghcr.io/towerops-app/towerops-agent:latest + image: codeberg.org/towerops-agent/towerops-agent:latest restart: unless-stopped environment: - TOWEROPS_AGENT_TOKEN=your-agent-token-here diff --git a/agent.go b/agent.go index 4f6af1d..c6c8084 100644 --- a/agent.go +++ b/agent.go @@ -15,7 +15,7 @@ import ( "sync/atomic" "time" - "github.com/towerops-app/towerops-agent/pb" + "codeberg.org/towerops-agent/towerops-agent/pb" "google.golang.org/protobuf/proto" ) diff --git a/agent_test.go b/agent_test.go index 62dac8e..e1be18d 100644 --- a/agent_test.go +++ b/agent_test.go @@ -15,7 +15,7 @@ import ( "time" "github.com/gosnmp/gosnmp" - "github.com/towerops-app/towerops-agent/pb" + "codeberg.org/towerops-agent/towerops-agent/pb" "google.golang.org/protobuf/proto" ) diff --git a/checks.go b/checks.go index f95a606..6f9975b 100644 --- a/checks.go +++ b/checks.go @@ -13,7 +13,7 @@ import ( "strings" "time" - "github.com/towerops-app/towerops-agent/pb" + "codeberg.org/towerops-agent/towerops-agent/pb" ) var ( diff --git a/checks_test.go b/checks_test.go index b1bd442..55b3da5 100644 --- a/checks_test.go +++ b/checks_test.go @@ -13,7 +13,7 @@ import ( "testing" "time" - "github.com/towerops-app/towerops-agent/pb" + "codeberg.org/towerops-agent/towerops-agent/pb" ) // --------------------------------------------------------------------------- diff --git a/docker-compose.example.yml b/docker-compose.example.yml index a6aa17b..50ba42d 100644 --- a/docker-compose.example.yml +++ b/docker-compose.example.yml @@ -1,6 +1,6 @@ services: towerops-agent: - image: ghcr.io/towerops-app/towerops-agent:latest + image: codeberg.org/towerops-agent/towerops-agent:latest pull_policy: always container_name: towerops-agent restart: unless-stopped diff --git a/go.mod b/go.mod index 516bf24..6dc4af5 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/towerops-app/towerops-agent +module codeberg.org/towerops-agent/towerops-agent go 1.25.6 diff --git a/lldp.go b/lldp.go index 7655176..457728c 100644 --- a/lldp.go +++ b/lldp.go @@ -10,7 +10,7 @@ import ( "time" "github.com/gosnmp/gosnmp" - "github.com/towerops-app/towerops-agent/pb" + "codeberg.org/towerops-agent/towerops-agent/pb" ) // LLDP-MIB OIDs (IEEE 802.1AB) diff --git a/mikrotik.go b/mikrotik.go index bd95052..93278bb 100644 --- a/mikrotik.go +++ b/mikrotik.go @@ -10,7 +10,7 @@ import ( "strings" "time" - "github.com/towerops-app/towerops-agent/pb" + "codeberg.org/towerops-agent/towerops-agent/pb" ) const ( diff --git a/pb/agent.pb.go b/pb/agent.pb.go index f70ea11..e9943fc 100644 --- a/pb/agent.pb.go +++ b/pb/agent.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 -// protoc v7.34.0 +// protoc v6.32.1 // source: proto/agent.proto package pb @@ -2993,7 +2993,7 @@ const file_proto_agent_proto_rawDesc = "" + "\rLLDP_TOPOLOGY\x10\x05*\x1e\n" + "\tQueryType\x12\a\n" + "\x03GET\x10\x00\x12\b\n" + - "\x04WALK\x10\x01B+Z)github.com/towerops-app/towerops-agent/pbb\x06proto3" + "\x04WALK\x10\x01B/Z-codeberg.org/towerops-agent/towerops-agent/pbb\x06proto3" var ( file_proto_agent_proto_rawDescOnce sync.Once diff --git a/proto/agent.proto b/proto/agent.proto index d5b8574..c7cb68e 100644 --- a/proto/agent.proto +++ b/proto/agent.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package towerops.agent; -option go_package = "github.com/towerops-app/towerops-agent/pb"; +option go_package = "codeberg.org/towerops-agent/towerops-agent/pb"; // Configuration received from the API message AgentConfig { diff --git a/snmp.go b/snmp.go index b3a75fb..a842e34 100644 --- a/snmp.go +++ b/snmp.go @@ -11,7 +11,7 @@ import ( "unicode/utf8" "github.com/gosnmp/gosnmp" - "github.com/towerops-app/towerops-agent/pb" + "codeberg.org/towerops-agent/towerops-agent/pb" ) const snmpMaxOIDsPerGet = 60 diff --git a/snmp_test.go b/snmp_test.go index 209c3c6..3ad7c94 100644 --- a/snmp_test.go +++ b/snmp_test.go @@ -7,7 +7,7 @@ import ( "testing" "github.com/gosnmp/gosnmp" - "github.com/towerops-app/towerops-agent/pb" + "codeberg.org/towerops-agent/towerops-agent/pb" ) func TestSnmpValueToString(t *testing.T) { diff --git a/ssh.go b/ssh.go index ea9b53d..04ef0d0 100644 --- a/ssh.go +++ b/ssh.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "github.com/towerops-app/towerops-agent/pb" + "codeberg.org/towerops-agent/towerops-agent/pb" "golang.org/x/crypto/ssh" ) diff --git a/ssh_test.go b/ssh_test.go index 795ebbc..0346a08 100644 --- a/ssh_test.go +++ b/ssh_test.go @@ -11,7 +11,7 @@ import ( "testing" "time" - "github.com/towerops-app/towerops-agent/pb" + "codeberg.org/towerops-agent/towerops-agent/pb" "golang.org/x/crypto/ssh" )