identity

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Identifier

type Identifier interface {
	ID() string
	BasicAuth() (string, string)
}

Identifier abstracts how data-plane can be identified to the control-plane.

Including both a unique identifier and the authentication method.

type IdentifierDecorator

type IdentifierDecorator struct {
	Identifier
	Id string
}

func (*IdentifierDecorator) ID

func (d *IdentifierDecorator) ID() string

type NOOP

type NOOP struct{}

NOOP is a no-op implementation of the Identifier interface. Used only for testing purposes.

func (*NOOP) BasicAuth

func (*NOOP) BasicAuth() (string, string)

func (*NOOP) ID

func (*NOOP) ID() string

type Namespace

type Namespace struct {
	Namespace    string
	HostedSecret string
}

Namespace identifier represents a group of workspaces that share a common resource.

Namespace is used but is not limited to implemented multi-tenancy.
It also allows for more complex entity relations.

func (*Namespace) BasicAuth

func (n *Namespace) BasicAuth() (string, string)

func (*Namespace) ID

func (n *Namespace) ID() string

type Workspace

type Workspace struct {
	WorkspaceID    string
	WorkspaceToken string
}

Workspace identifier represents a single customer's workspace. Less flexible than a namespace, it does not allow for multitenant.

func (*Workspace) BasicAuth

func (w *Workspace) BasicAuth() (string, string)

func (*Workspace) ID

func (w *Workspace) ID() string

Jump to

Keyboard shortcuts

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