Documentation ¶
Index ¶
- Constants
- func HEXIFY(cert *x509.Certificate, b []byte) string
- func Join(errs ...error) error
- func MultiWriter(writers ...io.WriteCloser) io.WriteCloser
- func New(args []string, opts ...Option) http.Handler
- type Authenticator
- type BlobSeeker
- type Cache
- type HandleFuncE
- type HeaderData
- type Landing
- type Option
- type TitleData
Constants ¶
View Source
const (
CosignMediaType = `application/vnd.dev.cosign.simplesigning.v1+json`
)
Variables ¶
This section is empty.
Functions ¶
func MultiWriter ¶
func MultiWriter(writers ...io.WriteCloser) io.WriteCloser
Types ¶
type Authenticator ¶ added in v0.0.7
func NewChainguardIdentityAuth ¶ added in v0.0.7
func NewChainguardIdentityAuth(identity, issuer, audience string) Authenticator
NewChainguardIdentityAuth returns an Authenticator that authorizes requests as the given assumeable identity.
The identity is a UIDP of a Chainguard Identity. Issuer is usually https://issuer.enforce.dev. Audience is usually https://apk.cgr.dev.
type BlobSeeker ¶
type BlobSeeker struct { Body io.ReadCloser Status int Url string // contains filtered or unexported fields }
func (*BlobSeeker) Close ¶
func (b *BlobSeeker) Close() error
func (*BlobSeeker) Reader ¶
func (b *BlobSeeker) Reader(ctx context.Context, off int64, end int64) (io.ReadCloser, error)
func (*BlobSeeker) Size ¶
func (b *BlobSeeker) Size() int64
type HandleFuncE ¶
type HandleFuncE func(http.ResponseWriter, *http.Request) error
type HeaderData ¶
type Option ¶
type Option func(h *handler)
func WithAuth ¶ added in v0.0.7
func WithAuth(a Authenticator) Option
func WithExamples ¶ added in v0.0.7
func WithKeychain ¶
func WithUserAgent ¶
Click to show internal directories.
Click to hide internal directories.