file

package
v0.0.0-...-cfb183a Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AuthDirectory default directory used to store files
	// to authenticate request
	AuthDirectory = "/etc/ingress-controller/auth"

	// DefaultSSLDirectory defines the location where the SSL certificates will be generated
	// This directory contains all the SSL certificates that are specified in Ingress rules.
	// The name of each file is <namespace>-<secret name>.pem. The content is the concatenated
	// certificate and key.
	DefaultSSLDirectory = "/etc/ingress-controller/ssl"
)
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

func SHA1

func SHA1(filename string) string

SHA1 returns the SHA1 of a file.

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