sourcepin

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package sourcepin manages active source save point pins.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handle

type Handle struct {
	Pin model.Pin
	// contains filtered or unexported fields
}

func (*Handle) Release

func (h *Handle) Release() error

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(repoRoot string) *Manager

func (*Manager) Create

func (m *Manager) Create(snapshotID model.SnapshotID, reason string) (*Handle, error)

func (*Manager) CreateWithID

func (m *Manager) CreateWithID(snapshotID model.SnapshotID, pinID, reason string) (*Handle, error)

func (*Manager) List

func (m *Manager) List() ([]model.Pin, error)

func (*Manager) ProtectedSnapshotIDs

func (m *Manager) ProtectedSnapshotIDs() ([]model.SnapshotID, error)

func (*Manager) Read

func (m *Manager) Read(pinID string) (*model.Pin, error)

func (*Manager) Remove

func (m *Manager) Remove(pinID string) error

func (*Manager) RemoveIfMatches

func (m *Manager) RemoveIfMatches(expected model.Pin) error

Jump to

Keyboard shortcuts

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