config

package
v0.0.0-...-a618dbc Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoRepository = errors.New("no repository specified")
)

Functions

This section is empty.

Types

type Error

type Error struct {
	Step   string
	Repo   string
	Branch string
	Commit string
	File   string
	Err    error
}

func (Error) Error

func (e Error) Error() string

type Runtime

type Runtime struct {
	RepositoryPath     string
	StoresFile         string
	OutputDirectory    string
	PeriodicStackDump  bool
	StackDumpFrequency time.Duration
	DryRun             bool
	ShopifyAPIVersion  string
	HTTPTimeout        time.Duration
	HTTPRetryCount     int
	HTTPRetryDelay     time.Duration
	HTTPRetryJitter    time.Duration
	HTTPUserAgent      string
}

func (*Runtime) LoadStores

func (r *Runtime) LoadStores() (<-chan *Store, error)

func (*Runtime) ParseArgs

func (r *Runtime) ParseArgs(args []string) error

func (*Runtime) PeriodicallyPrintStackDump

func (r *Runtime) PeriodicallyPrintStackDump(ctx context.Context)

func (*Runtime) ScanRepository

func (r *Runtime) ScanRepository() ([]*Store, error)

type Store

type Store struct {
	File     string `json:"file"`
	ID       string `json:"id"`
	StoreID  string `json:"store_id"`
	Username string `json:"username"`
	Password string `json:"password"`
	Commit   string `json:"commit,omitempty"`
}

func ReadStores

func ReadStores(path, hash string, r io.Reader, resolver secrets.Resolver) ([]*Store, error)

Jump to

Keyboard shortcuts

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