releasegithub

package
v0.4.6-preview.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package releasegithub reads release evidence using the authenticated gh CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	ID          int64
	Name        string
	Expired     *bool
	Digest      string
	CreatedAt   string `json:"created_at"`
	WorkflowRun struct {
		ID         int64
		HeadSHA    string `json:"head_sha"`
		HeadBranch string `json:"head_branch"`
	} `json:"workflow_run"`
}

type Client

type Client struct {
	Repository string
	// contains filtered or unexported fields
}

func New

func New(repository, token string) (*Client, error)

func (*Client) API

func (c *Client) API(method, path string, input, output any, allowMissing bool) (bool, error)

API returns false only for an allowed 404. Authentication and transport errors propagate.

func (*Client) CandidateEvidence

func (c *Client) CandidateEvidence(tag, prefix string, allowAbsent bool) (*Evidence, error)

func (*Client) Releases

func (c *Client) Releases() ([]json.RawMessage, error)

func (*Client) TagSHA

func (c *Client) TagSHA(tag string) (string, error)

type Evidence

type Evidence struct {
	Artifact    Artifact        `json:"artifact"`
	WorkflowRun json.RawMessage `json:"workflow_run"`
	Manifest    json.RawMessage `json:"manifest"`
}

Jump to

Keyboard shortcuts

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