File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package bugout
22
33import (
4+ "time"
5+
46 "github.com/bugout-dev/bugout-go/pkg/brood"
57 "github.com/bugout-dev/bugout-go/pkg/spire"
68)
@@ -10,6 +12,16 @@ type BugoutClient struct {
1012 Spire spire.SpireCaller
1113}
1214
15+ func ClientBrood (broodURL string , timeout time.Duration ) BugoutClient {
16+ broodClient := brood .NewClient (broodURL , timeout )
17+ return BugoutClient {Brood : broodClient }
18+ }
19+
20+ func ClientSpire (spireURL string , timeout time.Duration ) BugoutClient {
21+ spireClient := spire .NewClient (spireURL , timeout )
22+ return BugoutClient {Spire : spireClient }
23+ }
24+
1325func ClientFromEnv () (BugoutClient , error ) {
1426 broodClient , err := brood .ClientFromEnv ()
1527 if err != nil {
Original file line number Diff line number Diff line change 11package bugout
22
3- const Version string = "0.4.2 "
3+ const Version string = "0.4.3 "
You can’t perform that action at this time.
0 commit comments