fulcio

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetCert(crypto.Signer) (*api.CertificateResponse, error)
}

type ClientImpl

type ClientImpl struct {
	api.LegacyClient
	// contains filtered or unexported fields
}

Client provides a fulcio client with helpful options for configuring OIDC flows.

func NewClient

func NewClient(fulcioURL string, opts OIDCOptions) (*ClientImpl, error)

func (*ClientImpl) GetCert

func (c *ClientImpl) GetCert(priv crypto.Signer) (*api.CertificateResponse, error)

GetCert exchanges the given private key for a Fulcio certificate.

type OIDCOptions

type OIDCOptions struct {
	Issuer       string
	ClientID     string
	ClientSecret string
	RedirectURL  string
	TokenGetter  oauthflow.TokenGetter
}

OIDCOptions contains settings for OIDC operations.

Jump to

Keyboard shortcuts

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