move to codeberg
This commit is contained in:
parent
d3f208aec6
commit
b308c3dc2e
15 changed files with 18 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
2
agent.go
2
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"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/towerops-app/towerops-agent/pb"
|
||||
"codeberg.org/towerops-agent/towerops-agent/pb"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/towerops-app/towerops-agent/pb"
|
||||
"codeberg.org/towerops-agent/towerops-agent/pb"
|
||||
)
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
2
go.mod
2
go.mod
|
|
@ -1,4 +1,4 @@
|
|||
module github.com/towerops-app/towerops-agent
|
||||
module codeberg.org/towerops-agent/towerops-agent
|
||||
|
||||
go 1.25.6
|
||||
|
||||
|
|
|
|||
2
lldp.go
2
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)
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/towerops-app/towerops-agent/pb"
|
||||
"codeberg.org/towerops-agent/towerops-agent/pb"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
2
snmp.go
2
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
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
2
ssh.go
2
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"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue