authreq

package
v0.0.0-...-ca852fc Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrMissingAnnotations is returned when the ingress rule
	// does not contain annotations related with authentication
	ErrMissingAnnotations = errors.New("missing authentication annotations")
)

Functions

This section is empty.

Types

type Auth

type Auth struct {
	URL      string
	Method   string
	SendBody bool
}

Auth returns external authentication configuration for an Ingress rule

func ParseAnnotations

func ParseAnnotations(ing *extensions.Ingress) (Auth, error)

ParseAnnotations parses the annotations contained in the ingress rule used to use an external URL as source for authentication

Jump to

Keyboard shortcuts

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