trdlexec

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseRepoTable

func ParseRepoTable(text []byte) []map[string]string

func TryExecTrdl

func TryExecTrdl(cmd TrdlCommand, autoInstallTrdl bool) (bool, error)

Types

type TrdlCommand

type TrdlCommand interface {
	Exec(isTrdlEnabled bool) error
	GetLogWriter() io.Writer
	ConstructCommandError(error) error
	LogCommandError(error)
	GetGroup() string
	GetChannel() string
}

type TrdlCommandCommonParams

type TrdlCommandCommonParams struct {
	Group     string
	Channel   string
	Stdout    io.Writer
	LogWriter io.Writer
}

func (*TrdlCommandCommonParams) GetChannel

func (command *TrdlCommandCommonParams) GetChannel() string

func (*TrdlCommandCommonParams) GetGroup

func (command *TrdlCommandCommonParams) GetGroup() string

type TrdlWerfBinPathCommand

type TrdlWerfBinPathCommand struct {
	TrdlCommandCommonParams
	// contains filtered or unexported fields
}

func NewTrdlWerfBinPathCommand

func NewTrdlWerfBinPathCommand(group, channel string, stdout, logWriter io.Writer) *TrdlWerfBinPathCommand

func (*TrdlWerfBinPathCommand) ConstructCommandError

func (command *TrdlWerfBinPathCommand) ConstructCommandError(err error) error

func (*TrdlWerfBinPathCommand) Exec

func (command *TrdlWerfBinPathCommand) Exec(isTrdlEnabled bool) error

func (*TrdlWerfBinPathCommand) GetLogWriter

func (command *TrdlWerfBinPathCommand) GetLogWriter() io.Writer

func (*TrdlWerfBinPathCommand) LogCommandError

func (command *TrdlWerfBinPathCommand) LogCommandError(err error)

func (*TrdlWerfBinPathCommand) Write

func (command *TrdlWerfBinPathCommand) Write(p []byte) (int, error)

type TrdlWerfExecCommand

type TrdlWerfExecCommand struct {
	TrdlCommandCommonParams

	WerfArgs []string
	// contains filtered or unexported fields
}

func NewTrdlWerfExecCommand

func NewTrdlWerfExecCommand(group, channel string, werfArgs []string, stdout, logWriter io.Writer) *TrdlWerfExecCommand

func (*TrdlWerfExecCommand) ConstructCommandError

func (command *TrdlWerfExecCommand) ConstructCommandError(err error) error

func (*TrdlWerfExecCommand) Exec

func (command *TrdlWerfExecCommand) Exec(isTrdlEnabled bool) error

func (*TrdlWerfExecCommand) GetLogWriter

func (command *TrdlWerfExecCommand) GetLogWriter() io.Writer

func (*TrdlWerfExecCommand) LogCommandError

func (command *TrdlWerfExecCommand) LogCommandError(err error)

func (*TrdlWerfExecCommand) Write

func (command *TrdlWerfExecCommand) Write(p []byte) (int, error)

type TrdlWerfUpdateCommand

type TrdlWerfUpdateCommand struct {
	TrdlCommandCommonParams
}

func NewTrdlWerfUpdateCommand

func NewTrdlWerfUpdateCommand(group, channel string, stdout, logWriter io.Writer) *TrdlWerfUpdateCommand

func (*TrdlWerfUpdateCommand) ConstructCommandError

func (command *TrdlWerfUpdateCommand) ConstructCommandError(err error) error

func (*TrdlWerfUpdateCommand) Exec

func (command *TrdlWerfUpdateCommand) Exec(isTrdlEnabled bool) error

func (*TrdlWerfUpdateCommand) GetLogWriter

func (command *TrdlWerfUpdateCommand) GetLogWriter() io.Writer

func (*TrdlWerfUpdateCommand) LogCommandError

func (command *TrdlWerfUpdateCommand) LogCommandError(err error)

func (*TrdlWerfUpdateCommand) Write

func (command *TrdlWerfUpdateCommand) Write(p []byte) (int, error)

type TrdlWerfUseCommand

type TrdlWerfUseCommand struct {
	TrdlCommandCommonParams
	AsFile bool
	// contains filtered or unexported fields
}

func NewTrdlWerfUseCommand

func NewTrdlWerfUseCommand(group, channel string, stdout, logWriter io.Writer, asFile bool) *TrdlWerfUseCommand

func (*TrdlWerfUseCommand) ConstructCommandError

func (command *TrdlWerfUseCommand) ConstructCommandError(err error) error

func (*TrdlWerfUseCommand) Exec

func (command *TrdlWerfUseCommand) Exec(isTrdlEnabled bool) error

func (*TrdlWerfUseCommand) GetLogWriter

func (command *TrdlWerfUseCommand) GetLogWriter() io.Writer

func (*TrdlWerfUseCommand) LogCommandError

func (command *TrdlWerfUseCommand) LogCommandError(err error)

func (*TrdlWerfUseCommand) Write

func (command *TrdlWerfUseCommand) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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