foulkon

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2017 License: Apache-2.0 Imports: 19 Imported by: 3

Documentation

Index

Constants

View Source
const (
	FOULKON_VERSION = "v0.4.0"
)

Variables

This section is empty.

Functions

func CloseProxy

func CloseProxy() int

func CloseWorker

func CloseWorker() int

Types

type Proxy

type Proxy struct {
	// Server config
	Host string
	Port string

	// Worker location
	WorkerHost string

	// TLS configuration
	CertFile string
	KeyFile  string

	// API
	ProxyApi api.InternalProxyAPI

	// Refresh time
	RefreshTime time.Duration
}

Proxy - Authorize resources using definitions in proxy config file

func NewProxy

func NewProxy(config *toml.TomlTree) (*Proxy, error)

type Worker

type Worker struct {
	// Server config
	Host string
	Port string

	// TLS configuration
	CertFile string
	KeyFile  string

	// APIs
	UserApi     api.UserAPI
	GroupApi    api.GroupAPI
	PolicyApi   api.PolicyAPI
	AuthzApi    api.AuthzAPI
	ProxyApi    api.ProxyResourcesAPI
	AuthOidcAPI api.AuthOidcAPI

	//  Middleware handler
	MiddlewareHandler *middleware.MiddlewareHandler

	// Current Foulkon configuration
	Config WorkerConfig
}

Worker is the Authorization server.

func NewWorker

func NewWorker(config *toml.TomlTree) (*Worker, error)

NewWorker creates a Worker using configuration values

type WorkerConfig added in v0.3.0

type WorkerConfig struct {
	// Logger Config
	LoggerType    string
	LoggerLevel   string
	FileDirectory string

	// Database Config
	DBType       string
	IdleConns    int
	MaxOpenConns int
	ConnTtl      int

	// Authenticator Config
	AuthType      string
	OidcProviders []api.OidcProvider

	Version string
}

WorkerConfig

Jump to

Keyboard shortcuts

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