apk

package
v0.0.0-...-e039b74 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CosignMediaType = `application/vnd.dev.cosign.simplesigning.v1+json`
)

Variables

This section is empty.

Functions

func HEXIFY

func HEXIFY(cert *x509.Certificate, b []byte) string

func Join

func Join(errs ...error) error

TODO: 1.20 errors.Join

func MultiWriter

func MultiWriter(writers ...io.WriteCloser) io.WriteCloser

func New

func New(args []string, opts ...Option) http.Handler

Types

type BlobSeeker

type BlobSeeker struct {
	Body   io.ReadCloser
	Status int

	Url string
	// contains filtered or unexported fields
}

func LazyBlob

func LazyBlob(cachedUrl string, size int64, keychain authn.Keychain) *BlobSeeker

func (*BlobSeeker) Close

func (b *BlobSeeker) Close() error

func (*BlobSeeker) Read

func (b *BlobSeeker) Read(p []byte) (n int, err error)

func (*BlobSeeker) ReadAt

func (b *BlobSeeker) ReadAt(p []byte, off int64) (n int, err 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 Cache

type Cache interface {
	Get(context.Context, string) (*soci.TOC, error)
	Put(context.Context, string, *soci.TOC) error
}

type CosignTag

type CosignTag struct {
	Tag   string
	Short string
}

type HandleFuncE

type HandleFuncE func(http.ResponseWriter, *http.Request) error

type HeaderData

type HeaderData struct {
	ShowSearch       bool
	Expanded         bool
	Full             bool
	Search           string
	Depend           string
	Provide          string
	Repo             string
	CosignTags       []CosignTag
	Message          string
	JQ               string
	PAXRecords       map[string]string
	Reference        string
	Up               *RepoParent
	Descriptor       *v1.Descriptor
	Handler          string
	EscapedMediaType string
	MediaTypeLink    string
	SizeLink         string
	Referrers        bool
	Subject          string
}

type Landing

type Landing struct {
	Indices []string
	Apks    []string
}

type OauthData

type OauthData struct {
	Error    string
	Redirect string
}

type Option

type Option func(h *handler)

func WithKeychain

func WithKeychain(keychain authn.Keychain) Option

func WithUserAgent

func WithUserAgent(ua string) Option

type RepoParent

type RepoParent struct {
	Parent    string
	Child     string
	Separator string
}

type TitleData

type TitleData struct {
	Title string
}

Jump to

Keyboard shortcuts

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