mock

package
v0.0.0-...-a56eff2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	ProjectName       string
	ExpectedSourceDir string
	ExpectedTargetDir string
}

func (*Builder) Build

func (b *Builder) Build(sourceDir, targetDir string) (gzipArchiveFilePath string, err error)

type Exec

type Exec struct {
	ExpectedName string
	ExpectedArg  []string

	ResponseMsg   string
	ResponseError bool
}

func (*Exec) Command

func (e *Exec) Command(name string, arg ...string) error

func (*Exec) Output

func (e *Exec) Output() ([]byte, error)

type FileInfo

type FileInfo struct {
	FName  string
	FSize  int64
	FMode  fs.FileMode
	FTime  time.Time
	FIsDir bool
	FSys   interface{}
}

func (*FileInfo) IsDir

func (f *FileInfo) IsDir() bool

func (*FileInfo) ModTime

func (f *FileInfo) ModTime() time.Time

func (*FileInfo) Mode

func (f *FileInfo) Mode() fs.FileMode

func (*FileInfo) Name

func (f *FileInfo) Name() string

func (*FileInfo) Size

func (f *FileInfo) Size() int64

func (*FileInfo) Sys

func (f *FileInfo) Sys() interface{}

type GetResponse

type GetResponse struct {
	RequestResponse *http.Response
	ErrResponse     bool
}

type Gunzip

type Gunzip struct {
	Fs             afero.Fs
	GunzipResponse []GunzipResponse
	// contains filtered or unexported fields
}

func (*Gunzip) Gunzip

func (g *Gunzip) Gunzip(source, target string) (string, error)

type GunzipResponse

type GunzipResponse struct {
	ErrResponse bool
	Fail        bool
	FilePath    string
}

type Gzip

type Gzip struct {
	ReturnedPath string
	ErrResponse  bool
}

func (*Gzip) Gzip

func (g *Gzip) Gzip(source, target string) (gzipFilePath string, err error)

type HTTPClient

type HTTPClient struct {
	RequestResponse *http.Response
	ErrResponse     bool
}

func (*HTTPClient) Get

func (h *HTTPClient) Get(url string) (*http.Response, error)

type InstallConfig

type InstallConfig struct {
	ExpectedConfigFile string
	Metadata           config_processor.ConfigMetadata
	ErrResponse        error
}

func (*InstallConfig) CheckConfig

func (ic *InstallConfig) CheckConfig(configFile string) error

func (*InstallConfig) GetConfigMetadata

func (ic *InstallConfig) GetConfigMetadata(configFile string) (metadata config_processor.ConfigMetadata, err error)

type OsUtil

type OsUtil struct {
	WD string
}

func (*OsUtil) Getwd

func (o *OsUtil) Getwd() (dir string, err error)

func (*OsUtil) Hostname

func (*OsUtil) Hostname() (name string, err error)

func (*OsUtil) WriteString

func (*OsUtil) WriteString(w io.Writer, s string) (n int, err error)

type PctInstaller

type PctInstaller struct {
	ExpectedTemplatePkg string
	ExpectedTargetDir   string
	ExpectedGitUri      string
}

func (*PctInstaller) Install

func (p *PctInstaller) Install(templatePkg, targetDir string, force bool) (string, error)

func (*PctInstaller) InstallClone

func (p *PctInstaller) InstallClone(gitUri, targetDir, tempDir string, force bool) (string, error)

type Tar

type Tar struct {
	ReturnedPath  string
	ErrResponse   bool
	UntarResponse []UntarResponse
	// contains filtered or unexported fields
}

func (*Tar) Tar

func (t *Tar) Tar(source, target string) (tarFilePath string, err error)

func (*Tar) Untar

func (t *Tar) Untar(source, target string) (tarFilePath string, err error)

type UntarResponse

type UntarResponse struct {
	ReturnPath  string
	ErrResponse bool
}

type UtilsHelper

type UtilsHelper struct {
	TestDir             string
	IsModuleRootErrResp error
	Home                string
	ReaderError         bool
}

func (*UtilsHelper) Dir

func (u *UtilsHelper) Dir() (string, error)

func (*UtilsHelper) IsModuleRoot

func (u *UtilsHelper) IsModuleRoot() (string, error)

Jump to

Keyboard shortcuts

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