auth

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// AuthDirectory default directory used to store files
	// to authenticate request
	AuthDirectory = "/etc/ingress-controller/auth"
)

Functions

func NewParser

func NewParser(authDirectory string, r resolver.Resolver) parser.IngressAnnotation

NewParser creates a new authentication annotation parser

Types

type Config

type Config struct {
	Type    string `json:"type"`
	Realm   string `json:"realm"`
	File    string `json:"file"`
	Secured bool   `json:"secured"`
	FileSHA string `json:"fileSha"`
	Secret  string `json:"secret"`
}

Config returns authentication configuration for an Ingress rule

func (*Config) Equal

func (bd1 *Config) Equal(bd2 *Config) bool

Equal tests for equality between two Config types

Jump to

Keyboard shortcuts

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