server

package
v0.0.0-...-f28b7b0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, log *slog.Logger) error

Types

type CheckerConfig

type CheckerConfig struct {
	Rego *RegoConfig
}

type Config

type Config struct {
	Addr    string
	Issuers []string
	Checker CheckerConfig
	GitHub  map[string]github.Config
}

func NewConfig

func NewConfig() (*Config, error)

NewConfig loads config from the current directory.

type RegoConfig

type RegoConfig struct {
	// If non-empty, an authoritative `.github/tokens.rego` will be loaded from this named repository.
	OwnerRepo string `mapstructure:"owner_repo"`
	// If set, `.github/tokens.rego` will be loaded from every repository in a request.
	FromRepos bool
}

Jump to

Keyboard shortcuts

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