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 ¶
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".
Click to show internal directories.
Click to hide internal directories.