updater

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Update

func Update(gitURL, repoDir string, infos []*types.UpgradeInfo, newCommit bool) error

Types

type Cache

type Cache struct {
	Files map[string][]byte
}

func NewCache

func NewCache() *Cache

func (*Cache) Commit

func (c *Cache) Commit() error

func (*Cache) Get

func (c *Cache) Get(path string) ([]byte, error)

func (*Cache) ListGoMod

func (c *Cache) ListGoMod() ([]string, error)

func (*Cache) Read

func (c *Cache) Read(path string) ([]byte, error)

func (*Cache) Set

func (c *Cache) Set(path string, data []byte)

type ReplaceItem

type ReplaceItem struct {
	Dir     string
	OldName string
	NewName string
}

type RuleGroup

type RuleGroup struct {
	Rule  types.Rule
	Infos []*types.UpgradeInfo
}

Jump to

Keyboard shortcuts

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