x

package
v0.8.16 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	AppDescription string = "Welcome to modern authorization!"

	// AppName -- application name
	AppName = "aserto"
	// AppVersionTag -- version tag
	AppVersionTag = ""
)

Variables

View Source
var (
	UnknownSvcErr = errors.New("unknown service")

	AllServices = []Service{AuthorizerService, DecisionLogsService, TenantService, ControlPlaneService}
)

Functions

This section is empty.

Types

type Service added in v0.8.0

type Service int
const (
	AuthorizerService Service = iota
	DecisionLogsService
	TenantService
	ControlPlaneService
)

func (Service) Name added in v0.8.0

func (s Service) Name() string

type ServiceOptions added in v0.8.4

type ServiceOptions struct {
	Address   string `json:"address"`
	APIKey    string `json:"api_key,omitempty"`
	Anonymous bool   `json:"anonymous,omitempty"`
	Insecure  bool   `json:"insecure,omitempty"`
}

type Services added in v0.8.0

type Services struct {
	AuthorizerService   ServiceOptions `json:"authorizer"`
	DecisionLogsService ServiceOptions `json:"decision_logs"`
	TenantService       ServiceOptions `json:"tenant"`
	ControlPlaneService ServiceOptions `json:"control_plane"`
}

func DefaultEnvironment added in v0.8.4

func DefaultEnvironment() *Services

func (*Services) Get added in v0.8.8

func (s *Services) Get(svc Service) *ServiceOptions

func (*Services) SetAddress added in v0.8.4

func (s *Services) SetAddress(svc Service, address string) error

Jump to

Keyboard shortcuts

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