tags

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Latest

func Latest(ref string) *repos.File

func New

func New(name, ref string) *repos.File

func ReadMap

func ReadMap(ctx context.Context, repo repos.Repo) (map[string][]*Tag, error)

Types

type Tag added in v0.1.2

type Tag struct {
	Name    string
	Commits []string
}

func Read added in v0.1.2

func Read(ctx context.Context, repo repos.Repo, name string) (*Tag, error)

Read a tag by name

func ReadAll added in v0.1.2

func ReadAll(ctx context.Context, repo repos.Repo) (tags []*Tag, err error)

ReadAll reads all tags

func (*Tag) File added in v0.1.3

func (t *Tag) File() *repos.File

File returns a repo file for uploading

func (*Tag) Newest added in v0.1.2

func (t *Tag) Newest() string

func (*Tag) Tree added in v0.1.2

func (t *Tag) Tree() repos.Tree

Tree returns a virtual filesystem tree for uploading

Jump to

Keyboard shortcuts

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