subs

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFileNotExist = errors.New("file not exist")
)

Functions

This section is empty.

Types

type Chain

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

func NewSubsChain

func NewSubsChain(projectRootPath string, workerFactory WorkerFactory, opts ...Option) *Chain

func (Chain) Do

func (c Chain) Do(ctx context.Context) error

type Option added in v1.0.5

type Option func(o *options)

func WithConfigFilename added in v1.0.5

func WithConfigFilename(filename string) Option

func WithDomain added in v1.0.5

func WithDomain(domain string) Option

func WithName added in v1.0.5

func WithName(name string) Option

func WithParentVersion added in v1.0.5

func WithParentVersion(version string) Option

func WithVersion added in v1.0.5

func WithVersion(version string) Option

type Worker

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

func (Worker) Substitute added in v1.0.5

func (w Worker) Substitute(ctx context.Context) error

type WorkerFactory added in v1.0.5

type WorkerFactory interface {
	CreateWorker(file string, placeholder map[string]string) Worker
}

func NewDefaultWorkerFactory added in v1.0.5

func NewDefaultWorkerFactory() WorkerFactory

Jump to

Keyboard shortcuts

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