auth

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 13 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, cfg resolver.Configuration, sr resolver.Secret) parser.IngressAnnotation

NewParser creates a new authentication annotation parser

Types

type BasicDigest

type BasicDigest struct {
	Type     string `json:"type"`
	Realm    string `json:"realm"`
	ListName string `json:"listName"`
	File     string `json:"file"`
	Secured  bool   `json:"secured"`
	FileSHA  string `json:"fileSha"`
}

BasicDigest returns authentication configuration for an Ingress rule

func (*BasicDigest) Equal

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

Equal tests for equality between two BasicDigest types

Jump to

Keyboard shortcuts

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