brew

package
v0.0.0-...-7ff12bf Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment struct {
	updateaction.Environment
	GPG bool `env:"INPUT_GPG" envDefault:"false"`
}

func (*Environment) NewUpdater

func (e *Environment) NewUpdater(root string) updater.Updater

type Updater

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

func NewUpdater

func NewUpdater(root string, opts ...UpdaterOpt) *Updater

func (Updater) ApplyUpdate

func (u Updater) ApplyUpdate(ctx context.Context, update updater.Update) error

func (Updater) Check

func (u Updater) Check(ctx context.Context, dep updater.Dependency, filter func(string) bool) (*updater.Update, error)

func (Updater) Dependencies

func (u Updater) Dependencies(context.Context) ([]updater.Dependency, error)

func (Updater) Name

func (u Updater) Name() string

type UpdaterOpt

type UpdaterOpt func(*Updater)

func WithGPG

func WithGPG(gpg bool) UpdaterOpt

Jump to

Keyboard shortcuts

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