job

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseJob

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

func NewBaseJob

func NewBaseJob(file string) BaseJob

func (*BaseJob) Errors

func (j *BaseJob) Errors() IErrors

func (*BaseJob) GetExitError

func (j *BaseJob) GetExitError(err error, commandOutput string) error

func (*BaseJob) GetFile

func (j *BaseJob) GetFile() string

func (*BaseJob) ReceiveStatus

func (j *BaseJob) ReceiveStatus() chan string

func (*BaseJob) SendStatus

func (j *BaseJob) SendStatus(status string)

type BaseJobError added in v1.7.0

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

func NewBaseJobError added in v1.7.0

func NewBaseJobError(err string) *BaseJobError

func (BaseJobError) Command added in v1.7.0

func (e BaseJobError) Command() string

func (BaseJobError) Documentation added in v1.7.0

func (e BaseJobError) Documentation() string

func (BaseJobError) Error added in v1.7.0

func (e BaseJobError) Error() string

func (BaseJobError) IsCritical added in v1.7.0

func (e BaseJobError) IsCritical() bool

func (*BaseJobError) SetCommand added in v1.7.0

func (e *BaseJobError) SetCommand(command string)

func (*BaseJobError) SetDocumentation added in v1.7.0

func (e *BaseJobError) SetDocumentation(doc string)

func (*BaseJobError) SetIsCritical added in v1.7.0

func (e *BaseJobError) SetIsCritical(isCritical bool)

func (*BaseJobError) SetStatus added in v1.7.0

func (e *BaseJobError) SetStatus(status string)

func (BaseJobError) Status added in v1.7.0

func (e BaseJobError) Status() string

type Errors

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

func NewErrors

func NewErrors(title string) *Errors

func (*Errors) Append added in v1.7.0

func (errors *Errors) Append(err IError)

func (*Errors) Critical

func (errors *Errors) Critical(err IError)

func (*Errors) GetAll

func (errors *Errors) GetAll() []IError

func (*Errors) GetCriticalErrors

func (errors *Errors) GetCriticalErrors() []IError

func (*Errors) GetWarningErrors

func (errors *Errors) GetWarningErrors() []IError

func (*Errors) HasError

func (errors *Errors) HasError() bool

func (*Errors) Warning

func (errors *Errors) Warning(err IError)

type IError

type IError interface {
	Error() string
	Command() string
	Documentation() string
	Status() string
	IsCritical() bool
	SetStatus(string)
	SetDocumentation(string)
	SetCommand(string)
	SetIsCritical(bool)
}

type IErrors

type IErrors interface {
	Warning(err IError)
	Critical(err IError)
	Append(err IError)
	GetWarningErrors() []IError
	GetCriticalErrors() []IError
	GetAll() []IError
	HasError() bool
}

type IJob

type IJob interface {
	GetFile() string
	Errors() IErrors
	Run()
	ReceiveStatus() chan string
}

Jump to

Keyboard shortcuts

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