config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IssuerTypeEmail  = "email"
	IssuerTypeSpiffe = "spiffe"
)

Variables

View Source
var DefaultConfig = FulcioConfig{
	OIDCIssuers: map[string]OIDCIssuer{
		"https://oauth2.sigstore.dev/auth": {
			IssuerURL: "https://oauth2.sigstore.dev/auth",
			ClientID:  "sigstore",
			Type:      IssuerTypeEmail,
		},
		"https://accounts.google.com": {
			IssuerURL: "https://accounts.google.com",
			ClientID:  "sigstore",
			Type:      IssuerTypeEmail,
		},
	},
}

Functions

func Load

func Load(configPath string) error

Load a config from disk, or use defaults

Types

type FulcioConfig

type FulcioConfig struct {
	OIDCIssuers map[string]OIDCIssuer
}

func Config

func Config() FulcioConfig

func ParseConfig

func ParseConfig(b []byte) (FulcioConfig, error)

type IssuerType

type IssuerType string

type OIDCIssuer

type OIDCIssuer struct {
	IssuerURL string
	ClientID  string
	Type      IssuerType
}

Jump to

Keyboard shortcuts

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