mockfilesystem

package
v0.0.0-...-2263012 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertDirectoryContents

func AssertDirectoryContents(fs afero.Fs, path string, want []string) (string, bool)

func MakeDirectories

func MakeDirectories(names []string, fs afero.Fs) error

func MakeFiles

func MakeFiles(files []VirtualFile, fs afero.Fs) error

func SetupBundle

func SetupBundle(rootDir string, fs afero.Fs) error

func SetupBundleTemplate

func SetupBundleTemplate(rootTemplateDir string, fs afero.Fs) error

Sets up a mock bundle in the location specified by rootTemplateDir. Includes a parsable massdriver.yaml template, and an empty src/main.tf

func WithFilesToIgnore

func WithFilesToIgnore(rootDir string, fs afero.Fs) error

func WithOperatorGuide

func WithOperatorGuide(rootDir string, guideType string, fs afero.Fs) error

Types

type VirtualFile

type VirtualFile struct {
	Path    string
	Content []byte
}

Jump to

Keyboard shortcuts

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