filemanager

package
v0.51.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package filemanager implement interfaces to run install-script tests

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Unix

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

Unix implement filemanager interface for Unix distributions

func NewUnixFileManager

func NewUnixFileManager(vmClient client.VM) *Unix

NewUnixFileManager create a new unix file manager

func (*Unix) FileExists

func (u *Unix) FileExists(path string) (string, error)

FileExists check if the file exists, return an error if it does not

func (*Unix) FindFileInFolder

func (u *Unix) FindFileInFolder(path string) (string, error)

FindFileInFolder search for files in the given folder return an error if no files are found

func (*Unix) ReadFile

func (u *Unix) ReadFile(path string) (string, error)

ReadFile read the content of the file, return error if the file do not exists

func (*Unix) WriteFile

func (u *Unix) WriteFile(path string, content string) (string, error)

WriteFile write content to the file

Jump to

Keyboard shortcuts

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