client

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsertoFactory

type AsertoFactory struct {
	SvcOptions map[x.Service]OptionsBuilder
}

func (*AsertoFactory) AuthorizerClient

func (c *AsertoFactory) AuthorizerClient(ctx context.Context) (*authorizer.Client, error)

func (*AsertoFactory) DecisionLogsClient

func (c *AsertoFactory) DecisionLogsClient(ctx context.Context) (dl.DecisionLogsClient, error)

func (*AsertoFactory) TenantClient

func (c *AsertoFactory) TenantClient(ctx context.Context) (*tenant.Client, error)

type Factory

type Factory interface {
	TenantClient(ctx context.Context) (*tenant.Client, error)
	AuthorizerClient(ctx context.Context) (*authorizer.Client, error)
	DecisionLogsClient(ctx context.Context) (dl.DecisionLogsClient, error)
}

type OptionsBuilder

type OptionsBuilder func() ([]aserto.ConnectionOption, error)

type Overrides

type Overrides interface {
	// Address overrides the default address used to connect to a service.
	Address() string

	// Key provides an API key to be used instead of the default access token.
	Key() string

	// IsAnonymous means no credentials are sent to the service.
	IsAnonymous() bool

	// IsInsecure indicates that no TLS verification is performed.
	IsInsecure() bool
}

Overrides are options that modify the default behavior of connections to aserto services.

Jump to

Keyboard shortcuts

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