ostree

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: BSD-3-Clause-Clear Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

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

func NewRepo

func NewRepo(path string) *Repo

func (*Repo) ListHeads

func (r *Repo) ListHeads() ([]string, error)

ListHeads returns the names of all refs under refs/heads, including refs nested in subdirectories (reported with '/' separators, e.g. "foo/bar").

func (*Repo) ReadFile

func (r *Repo) ReadFile(ref, filePath string) ([]byte, error)

ReadFile returns the contents of filePath from the given ref in the repo. filePath should be an absolute path, e.g. "/usr/lib/sota/conf.d/40-hardware-id.toml".

func (*Repo) ReadRef

func (r *Repo) ReadRef(ref string) (string, error)

Jump to

Keyboard shortcuts

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