storage

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2025 License: ISC Imports: 5 Imported by: 0

Documentation

Overview

Package storage provides convenience functions related to the file system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(path string, store *Store) error

Write serializes and writes a Store object to a given file.

Types

type Store

type Store struct {
	Repositories map[string]gh.Repository `yaml:"repositories"`
}

Store represents a collection of GitHub repositories.

func Read

func Read(path string) (*Store, error)

Read returns a deserialized Store object from a given file.

func (*Store) UpdateRepositoriesFromSlice added in v0.0.4

func (s *Store) UpdateRepositoriesFromSlice(repos []*gh.Repository)

UpdateRepositoriesFromSlice updates the Store's Repositories map from a slice of *gh.Repository.

Jump to

Keyboard shortcuts

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