security

package
v0.0.0-...-3a6b306 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth_HTTP

type Auth_HTTP struct {
	Scheme       string
	BearerFormat string
}

func (*Auth_HTTP) Spec

func (self *Auth_HTTP) Spec() *openapi.SecuritySchemeObject

func (*Auth_HTTP) Validate

func (self *Auth_HTTP) Validate(b []byte) error

type Auth_Key

type Auth_Key struct {
	In   string
	Name string
}

func (*Auth_Key) Spec

func (self *Auth_Key) Spec() *openapi.SecuritySchemeObject

func (*Auth_Key) Validate

func (self *Auth_Key) Validate(b []byte) error

type Auth_OAuth2

type Auth_OAuth2 struct {
	Flow             string
	AuthorizationUrl string
	TokenUrl         string
	Scopes           map[string]string
}

func (*Auth_OAuth2) Spec

func (*Auth_OAuth2) Validate

func (self *Auth_OAuth2) Validate(b []byte) error

type Authentication

type Authentication interface {
	Validate([]byte) error
	Spec() *openapi.SecuritySchemeObject
}

Jump to

Keyboard shortcuts

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