proc

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

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

func NewProcChain added in v0.0.4

func NewProcChain(processors []Proc) *Chain

func (*Chain) Exec

func (c *Chain) Exec() error

type CommandProc added in v0.0.2

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

func NewCommandProc added in v0.0.2

func NewCommandProc(commands []entity.Command, logger entity.Logger) *CommandProc

func (*CommandProc) Exec added in v0.0.2

func (p *CommandProc) Exec() error

type DryRunCommandProc added in v0.0.2

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

func NewDryRunCommandProc added in v0.0.2

func NewDryRunCommandProc(commands []entity.Command, logger entity.Logger) *DryRunCommandProc

func (*DryRunCommandProc) Exec added in v0.0.2

func (p *DryRunCommandProc) Exec() error

type DryRunFileProc added in v0.0.2

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

func NewDryRunFileProc added in v0.0.2

func NewDryRunFileProc(producers []entity.FileProducer, templateData map[string]any, logger entity.Logger) *DryRunFileProc

func (*DryRunFileProc) Exec added in v0.0.2

func (p *DryRunFileProc) Exec() error

type DryRunMkdirAllProc added in v0.0.2

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

func NewDryRunMkdirAllProc added in v0.0.2

func NewDryRunMkdirAllProc(dirs []string, logger entity.Logger) *DryRunMkdirAllProc

func (*DryRunMkdirAllProc) Exec added in v0.0.2

func (p *DryRunMkdirAllProc) Exec() error

type FileProc

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

func NewFileProc

func NewFileProc(producers []entity.FileProducer, templateData, templateFns map[string]any, logger entity.Logger) *FileProc

func (*FileProc) Exec

func (p *FileProc) Exec() error

type LocalProducer added in v0.0.2

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

func NewLocalProducer added in v0.0.2

func NewLocalProducer(file entity.LocalFile) *LocalProducer

func (*LocalProducer) Get added in v0.0.2

func (p *LocalProducer) Get() (entity.DataFile, error)

type MkdirAllProc

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

func NewMkdirAllProc

func NewMkdirAllProc(dirs []string, logger entity.Logger) *MkdirAllProc

func (*MkdirAllProc) Exec

func (p *MkdirAllProc) Exec() error

type Proc

type Proc interface {
	Exec() error
}

type RemoteProducer

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

func NewRemoteProducer

func NewRemoteProducer(file entity.RemoteFile, client *resty.Client) *RemoteProducer

func (*RemoteProducer) Get

func (p *RemoteProducer) Get() (entity.DataFile, error)

type StoredProducer

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

func NewStoredProducer

func NewStoredProducer(file entity.DataFile) *StoredProducer

func (*StoredProducer) Get

func (p *StoredProducer) Get() (entity.DataFile, error)

Jump to

Keyboard shortcuts

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