file

package
v0.0.0-...-42351fe Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ReadByUserGroup = 0640

ReadByUserGroup defines linux permission to read files by the user and group owner/s

View Source
const ReadWriteByUser = 0660

ReadWriteByUser defines linux permission to read and write files for the owner user

Variables

This section is empty.

Functions

This section is empty.

Types

type Filesystem

type Filesystem interface {
	filesystem.Filesystem
}

Filesystem is an interface that we can use to mock various filesystem operations

func NewFakeFS

func NewFakeFS() (Filesystem, error)

NewFakeFS creates an in-memory filesystem with all the required paths used by the ingress controller. This allows running test without polluting the local machine.

func NewLocalFS

func NewLocalFS() (Filesystem, error)

NewLocalFS implements Filesystem using same-named functions from "os" and "io/ioutil".

Jump to

Keyboard shortcuts

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