x

package
v0.20.3 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 2 Imported by: 0

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, EMSService}
)

Functions

This section is empty.

Types

type Service added in v0.8.0

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

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"`
	EMSService          ServiceOptions `json:"ems"`
}

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