-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an agent and config type and start of a CLI implementation
- Loading branch information
Showing
5 changed files
with
829 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package main | ||
|
||
import "context" | ||
|
||
type agent struct { | ||
} | ||
|
||
// newAgent constructs an agent from config or bails | ||
func newAgent(c config) (*agent, error) { | ||
return nil, ErrNotImplimented | ||
} | ||
|
||
// run starts off the agent. The call blocks or exits returning an error | ||
// if the agent hits a fatal error. | ||
func (a *agent) run() error { | ||
return ErrNotImplimented | ||
} | ||
|
||
// shutdown gracefully stops the agent. Shutdown can take an arbitrarily long time. Use | ||
// context cancellation to force shutdown. | ||
func (a *agent) shutdown(context.Context) error { | ||
return ErrNotImplimented | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package main | ||
|
||
type config struct { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
module github.com/nsmith5/rekorsidekick | ||
module github.com/nsmith5/rekor-sidekick | ||
|
||
go 1.17 | ||
|
||
require github.com/spf13/cobra v1.3.0 | ||
|
||
require ( | ||
github.com/inconshreveable/mousetrap v1.0.0 // indirect | ||
github.com/spf13/pflag v1.0.5 // indirect | ||
) |
Oops, something went wrong.