config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	StorageFile     string
	PublicKey       string
	GRPCPort        int
	HTTPPort        int
	PodNamespace    string
	TokenSyncPeriod string
}

func (Config) TokenSyncPeriodDuration

func (cfg Config) TokenSyncPeriodDuration() time.Duration

type GithubOAuthConfig

type GithubOAuthConfig struct {
	ClientID     string   `yaml:"client_id" json:"clientId" envconfig:"CLIENT_ID"`
	ClientSecret string   `yaml:"client_secret" json:"clientSecret" envconfig:"CLIENT_SECRET"`
	Scopes       []string `yaml:"scopes" json:"scopes" envconfig:"SCOPES"`
	RedirectURL  string   `yaml:"redirect_url" json:"redirectUrl" envconfig:"REDIRECT_URL"`
}

func (*GithubOAuthConfig) GetConfig

func (cfg *GithubOAuthConfig) GetConfig() *oauth2.Config

Jump to

Keyboard shortcuts

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