x

package
v0.32.43 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 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

Functions

This section is empty.

Types

type Service added in v0.8.0

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

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,omitempty" yaml:"address,omitempty"`
	APIKey     string `json:"api_key,omitempty" yaml:"api_key,omitempty"`
	Anonymous  bool   `json:"anonymous,omitempty" yaml:"anonymous,omitempty"`
	Insecure   bool   `json:"insecure,omitempty" yaml:"insecure,omitempty"`
	CACertPath string `json:"ca_cert_path,omitempty" yaml:"ca_cert_path,omitempty"`
}

type Services added in v0.8.0

type Services struct {
	DecisionLogsService    ServiceOptions `json:"decision_logs" yaml:"decision_logs"`
	TenantService          ServiceOptions `json:"tenant" yaml:"tenant"`
	ControlPlaneService    ServiceOptions `json:"control_plane" yaml:"control_plane"`
	EMSService             ServiceOptions `json:"ems" yaml:"ems"`
	AuthorizerService      ServiceOptions `json:"authorizer" yaml:"authorizer"`
	DirectoryReaderService ServiceOptions `json:"directory_reader" yaml:"directory_reader"`
	DirectoryWriterService ServiceOptions `json:"directory_writer" yaml:"directory_writer"`
	DirectoryModelService  ServiceOptions `json:"directory_model" yaml:"directory_model"`
}

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