commands

package
v0.0.0-...-2b8758d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientCmd

type ClientCmd struct {
	Endpoint  string `help:"endpoint to call" default:"http://localhost:8080"`
	Token     string `help:"token to use" required:""`
	Action    string `help:"action to perform" enum:"save,restore" required:""`
	CacheFile string `help:"file to save"`
}

func (*ClientCmd) Run

func (c *ClientCmd) Run(ctx context.Context, globals *Globals) error

type Globals

type Globals struct {
	Debug   bool
	Version string
}

type LambdaServerCmd

type LambdaServerCmd struct {
	JWKSURL     string `help:"jwks url" default:"https://token.actions.githubusercontent.com/.well-known/jwks" env:"JWKS_URL"`
	CacheBucket string `help:"bucket to store cache" env:"CACHE_BUCKET"`
}

func (*LambdaServerCmd) Run

func (s *LambdaServerCmd) Run(ctx context.Context, globals *Globals) error

type ServerCmd

type ServerCmd struct {
	Listen      string `help:"listen address" default:":8080"`
	JWKSURL     string `help:"jwks url" default:"https://token.actions.githubusercontent.com/.well-known/jwks"`
	CacheBucket string `help:"bucket to store cache" env:"CACHE_BUCKET"`
	Local       bool   `help:"run in local mode"`
}

func (*ServerCmd) Run

func (s *ServerCmd) Run(ctx context.Context, globals *Globals) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL