chore: Add dockerfile and interface and files for support firewalls
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
|||||||
|
FROM golang:1.26.1 AS Builder
|
||||||
|
|
||||||
|
COPY go.mod go.sum ./
|
||||||
|
|
||||||
|
RUN go mod download
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
ENV CGO_ENABLED=0
|
||||||
|
|
||||||
|
RUN go build -o /bin/agent .
|
||||||
|
|
||||||
|
|
||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
COPY --from=Builder /bin/agent /bin/agent
|
||||||
|
|
||||||
|
ENTRYPOINT ["/bin/agent"]
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
module gitea.d3m0k1d.ru/HellreigN/Agent
|
module gitea.d3m0k1d.ru/HellreigN/Agent
|
||||||
|
|
||||||
go 1.26.4
|
go 1.26.1
|
||||||
|
|
||||||
|
require github.com/spf13/cobra v1.10.2
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
||||||
github.com/spf13/cobra v1.10.2 // indirect
|
|
||||||
github.com/spf13/pflag v1.0.10 // indirect
|
github.com/spf13/pflag v1.0.10 // indirect
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
package firewall
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
package firewall
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
package firewall
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
package firewall
|
||||||
|
|
||||||
|
type Firewall interface {
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user