github

package
v0.0.1-pre3 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithOrg

func WithOrg(org string) fnOpt

func WithRepo

func WithRepo(repo string) fnOpt

Types

type Options

type Options struct {
	Repo string
	Org  string
}

type Publisher

type Publisher struct {
	Options Options
}

func New

func New(funcs ...fnOpt) (*Publisher, error)

func (*Publisher) PublishAttestation

func (p *Publisher) PublishAttestation(att ampel.Statement) (*api.StatementNotice, error)

PublishAttestation pushes an attestes VEX document to the GitHub attestations store configured in the uploader.

func (*Publisher) PublishDocument

func (p *Publisher) PublishDocument(doc *vex.VEX) (*api.StatementNotice, error)

func (*Publisher) ReadBranchVEX

func (p *Publisher) ReadBranchVEX(branch *api.Branch) ([]ampel.Envelope, error)

Jump to

Keyboard shortcuts

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