identity

package
v1.7.0-preview.4 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: AGPL-3.0 Imports: 1 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)
	Type() deployment.Type
}

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

func (*NOOP) Type added in v1.3.0

func (*NOOP) Type() deployment.Type

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

func (*Namespace) Type added in v1.3.0

func (*Namespace) Type() deployment.Type

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

func (*Workspace) Type added in v1.3.0

func (*Workspace) Type() deployment.Type

Jump to

Keyboard shortcuts

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