Skip to content

Commit 28c7dd1

Browse files
committed
Support command like kubectl
Signed-off-by: Shiming Zhang <[email protected]>
1 parent d2b3082 commit 28c7dd1

File tree

9 files changed

+1744
-0
lines changed

9 files changed

+1744
-0
lines changed

cmd/ctl/main.go

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
Copyright 2024 The Kubernetes Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
package main
18+
19+
import (
20+
"fmt"
21+
"os"
22+
23+
"github.com/etcd-io/auger/pkg/ctl"
24+
)
25+
26+
func main() {
27+
if err := ctl.RootCmd.Execute(); err != nil {
28+
fmt.Println(err)
29+
os.Exit(1)
30+
}
31+
}

go.mod

+44
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,75 @@ module github.com/etcd-io/auger
33
go 1.22.0
44

55
require (
6+
github.com/bgentry/speakeasy v0.1.0
67
github.com/coreos/bbolt v1.3.1-coreos.3
78
github.com/coreos/etcd v3.1.11+incompatible
89
github.com/google/safetext v0.0.0-20220914124124-e18e3fe012bf
910
github.com/spf13/cobra v1.8.0
11+
go.etcd.io/etcd/client/pkg/v3 v3.5.13
12+
go.etcd.io/etcd/client/v3 v3.5.13
13+
go.etcd.io/etcd/etcdctl/v3 v3.5.13
14+
go.etcd.io/etcd/pkg/v3 v3.5.13
1015
gopkg.in/yaml.v2 v2.4.0
1116
k8s.io/api v0.30.1
1217
k8s.io/apimachinery v0.30.1
1318
k8s.io/client-go v0.30.1
1419
)
1520

1621
require (
22+
github.com/beorn7/perks v1.0.1 // indirect
23+
github.com/cespare/xxhash/v2 v2.2.0 // indirect
24+
github.com/coreos/go-semver v0.3.0 // indirect
25+
github.com/coreos/go-systemd/v22 v22.3.2 // indirect
26+
github.com/dustin/go-humanize v1.0.0 // indirect
27+
github.com/fatih/color v1.17.0 // indirect
1728
github.com/go-logr/logr v1.4.1 // indirect
29+
github.com/go-logr/stdr v1.2.2 // indirect
1830
github.com/gogo/protobuf v1.3.2 // indirect
31+
github.com/golang-jwt/jwt/v4 v4.4.2 // indirect
1932
github.com/golang/protobuf v1.5.4 // indirect
33+
github.com/google/btree v1.0.1 // indirect
2034
github.com/google/gofuzz v1.2.0 // indirect
2135
github.com/inconshreveable/mousetrap v1.1.0 // indirect
36+
github.com/jonboulle/clockwork v0.2.2 // indirect
2237
github.com/json-iterator/go v1.1.12 // indirect
38+
github.com/mattn/go-colorable v0.1.13 // indirect
39+
github.com/mattn/go-runewidth v0.0.9 // indirect
40+
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
2341
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
2442
github.com/modern-go/reflect2 v1.0.2 // indirect
43+
github.com/olekukonko/tablewriter v0.0.5 // indirect
44+
github.com/prometheus/client_golang v1.11.1 // indirect
45+
github.com/prometheus/client_model v0.2.0 // indirect
46+
github.com/prometheus/common v0.26.0 // indirect
47+
github.com/prometheus/procfs v0.6.0 // indirect
2548
github.com/spf13/pflag v1.0.5 // indirect
2649
github.com/stretchr/testify v1.9.0 // indirect
50+
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 // indirect
51+
go.etcd.io/bbolt v1.3.9 // indirect
52+
go.etcd.io/etcd/api/v3 v3.5.13 // indirect
53+
go.etcd.io/etcd/client/v2 v2.305.13 // indirect
54+
go.etcd.io/etcd/etcdutl/v3 v3.5.13 // indirect
55+
go.etcd.io/etcd/raft/v3 v3.5.13 // indirect
56+
go.etcd.io/etcd/server/v3 v3.5.13 // indirect
57+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.0 // indirect
58+
go.opentelemetry.io/otel v1.20.0 // indirect
59+
go.opentelemetry.io/otel/metric v1.20.0 // indirect
60+
go.opentelemetry.io/otel/trace v1.20.0 // indirect
61+
go.uber.org/atomic v1.7.0 // indirect
62+
go.uber.org/multierr v1.6.0 // indirect
63+
go.uber.org/zap v1.17.0 // indirect
64+
golang.org/x/crypto v0.23.0 // indirect
2765
golang.org/x/net v0.25.0 // indirect
2866
golang.org/x/sys v0.20.0 // indirect
2967
golang.org/x/text v0.15.0 // indirect
68+
golang.org/x/time v0.3.0 // indirect
69+
google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d // indirect
70+
google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d // indirect
71+
google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect
72+
google.golang.org/grpc v1.59.0 // indirect
3073
google.golang.org/protobuf v1.34.1 // indirect
74+
gopkg.in/cheggaaa/pb.v1 v1.0.28 // indirect
3175
gopkg.in/inf.v0 v0.9.1 // indirect
3276
gopkg.in/yaml.v3 v3.0.1 // indirect
3377
k8s.io/klog/v2 v2.120.1 // indirect

go.sum

+217
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)