auth

package
v0.0.0-...-39e769a Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupTLSConfig

func SetupTLSConfig(cfg TLSConfig) (*tls.Config, error)

Types

type Authorizer

type Authorizer struct {
	// contains filtered or unexported fields
}

func New

func New(model, policy string) *Authorizer

func (*Authorizer) Authorize

func (a *Authorizer) Authorize(subject, object, action string) error

type TLSConfig

type TLSConfig struct {
	CertFile      string
	KeyFile       string
	CAFile        string
	ServerAddress string
	Type          Type
}

type Type

type Type int
const (
	TypeUnspecified Type = iota
	TypeServer
	TypeClient
)

Jump to

Keyboard shortcuts

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