Documentation ¶
Index ¶
- func NewAccessTokenCommand(global *GlobalAction) *cli.Command
- func NewAssertionCommand(global *GlobalAction) *cli.Command
- func NewGetCommand(global *GlobalAction) *cli.Command
- func NewPostCommand(global *GlobalAction) *cli.Command
- func NewServeCommand(global *GlobalAction) *cli.Command
- func NewTrustedListCommand(global *GlobalAction) *cli.Command
- func NewVerifyCommand(global *GlobalAction) *cli.Command
- func NewVersionCommand() *cli.Command
- type AccessTokenAction
- type App
- type AssertionAction
- type GetAction
- type GlobalAction
- func (g *GlobalAction) Action(appCtx *cli.Context) error
- func (g *GlobalAction) Flags() []cli.Flag
- func (g *GlobalAction) LoadCertsAndKeys() error
- func (g *GlobalAction) LogStartupKV() []interface{}
- func (g *GlobalAction) Logger() logr.Logger
- func (g *GlobalAction) SetLogger(env string) error
- func (g *GlobalAction) String() string
- type HTTPRequestAction
- type PostAction
- type ServeAction
- type TrustedListAction
- type VerifyAction
- type VersionAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAccessTokenCommand ¶
func NewAccessTokenCommand(global *GlobalAction) *cli.Command
func NewAssertionCommand ¶
func NewAssertionCommand(global *GlobalAction) *cli.Command
func NewGetCommand ¶
func NewGetCommand(global *GlobalAction) *cli.Command
NewGetCommand create a GetAction command.
GetAction retrieves the data for the given url and sends the payload to stdout. Parameters are:
- server-eori
- server uri
- service endpoint, full uri
func NewPostCommand ¶
func NewPostCommand(global *GlobalAction) *cli.Command
NewGetCommand create a PostAction command.
PostAction retrieves the data for the given url and sends the payload to stdout. Parameters are:
- server-eori
- server uri
- service endpoint, full uri
- data
func NewServeCommand ¶
func NewServeCommand(global *GlobalAction) *cli.Command
func NewTrustedListCommand ¶
func NewTrustedListCommand(global *GlobalAction) *cli.Command
func NewVerifyCommand ¶
func NewVerifyCommand(global *GlobalAction) *cli.Command
func NewVersionCommand ¶
func NewVersionCommand() *cli.Command
Types ¶
type AccessTokenAction ¶
type AccessTokenAction struct { *GlobalAction // contains filtered or unexported fields }
func (*AccessTokenAction) Action ¶
func (a *AccessTokenAction) Action(appCtx *cli.Context) error
type AssertionAction ¶
type AssertionAction struct { *GlobalAction // contains filtered or unexported fields }
func (*AssertionAction) Action ¶
func (a *AssertionAction) Action(appCtx *cli.Context) error
type GetAction ¶
type GetAction struct {
*HTTPRequestAction
}
type GlobalAction ¶
type GlobalAction struct {
// contains filtered or unexported fields
}
func (*GlobalAction) Action ¶
func (g *GlobalAction) Action(appCtx *cli.Context) error
Action performs the GlobalAction initialization.
func (*GlobalAction) Flags ¶
func (g *GlobalAction) Flags() []cli.Flag
func (*GlobalAction) LoadCertsAndKeys ¶
func (g *GlobalAction) LoadCertsAndKeys() error
func (*GlobalAction) LogStartupKV ¶
func (g *GlobalAction) LogStartupKV() []interface{}
func (*GlobalAction) Logger ¶
func (g *GlobalAction) Logger() logr.Logger
func (*GlobalAction) SetLogger ¶
func (g *GlobalAction) SetLogger(env string) error
func (*GlobalAction) String ¶
func (g *GlobalAction) String() string
type HTTPRequestAction ¶
type HTTPRequestAction struct { *GlobalAction // contains filtered or unexported fields }
func (*HTTPRequestAction) DoRequest ¶
func (a *HTTPRequestAction) DoRequest(req *http.Request) error
func (*HTTPRequestAction) Flags ¶
func (a *HTTPRequestAction) Flags() []cli.Flag
type PostAction ¶
type PostAction struct { *HTTPRequestAction // contains filtered or unexported fields }
func (*PostAction) Action ¶
func (a *PostAction) Action(appCtx *cli.Context) error
type ServeAction ¶
type ServeAction struct { *GlobalAction // contains filtered or unexported fields }
ServeAction is filled by cli.
It allows for easy testing.
func (*ServeAction) Action ¶
func (a *ServeAction) Action(appCtx *cli.Context) error
func (*ServeAction) Before ¶
func (s *ServeAction) Before(ctx *cli.Context) error
func (*ServeAction) LoadCertsAndKeys ¶
func (a *ServeAction) LoadCertsAndKeys() error
func (*ServeAction) LogStartupKV ¶
func (a *ServeAction) LogStartupKV() []interface{}
func (*ServeAction) String ¶
func (a *ServeAction) String() string
type TrustedListAction ¶
type TrustedListAction struct { *GlobalAction // contains filtered or unexported fields }
func (*TrustedListAction) Action ¶
func (a *TrustedListAction) Action(appCtx *cli.Context) error
type VerifyAction ¶
type VerifyAction struct {
*GlobalAction
}
func (*VerifyAction) Action ¶
func (a *VerifyAction) Action(appCtx *cli.Context) error
type VersionAction ¶
type VersionAction struct { }
func (*VersionAction) Action ¶
func (a *VersionAction) Action(ctx *cli.Context) error
Click to show internal directories.
Click to hide internal directories.