consumer

package
v0.0.0-...-a423d60 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const ConsumerKey contextKey = "consumer"

ConsumerKey missing godoc

Variables

View Source
var NoConsumerError = apperrors.NewInternalError("cannot read consumer from context")

NoConsumerError missing godoc

Functions

func SaveToContext

func SaveToContext(ctx context.Context, consumer Consumer) context.Context

SaveToContext missing godoc

Types

type Consumer

type Consumer struct {
	ConsumerID    string `json:"ConsumerID"`
	Type          `json:"ConsumerType"`
	Flow          oathkeeper.AuthFlow `json:"Flow"`
	OnBehalfOf    string              `json:"onBehalfOf"`
	Region        string              `json:"region"`
	Subject       string              `json:"subject"`
	TokenClientID string              `json:"tokenClientID"`
}

Consumer missing godoc

func LoadFromContext

func LoadFromContext(ctx context.Context) (Consumer, error)

LoadFromContext missing godoc

type Type

type Type string

Type missing godoc

const (
	// Runtime represents a runtime consumer type
	Runtime Type = "Runtime"
	// ExternalCertificate missing godoc
	ExternalCertificate Type = "External Certificate"
	// Application represents an application consumer type
	Application Type = "Application"
	// IntegrationSystem represents an integration system consumer type
	IntegrationSystem Type = "Integration System"
	// User missing godoc
	User Type = "Static User"
	// SuperAdmin is a consumer type that is used only in our tests
	SuperAdmin Type = "Super Admin"
	// TechnicalClient is a consumer type that is used by Atom
	TechnicalClient Type = "Technical Client"
	// BusinessIntegration is a consumer type that is used by Business Integration operator
	BusinessIntegration Type = "Business Integration"
	// ManagedApplicationProviderOperator is a consumer type that is used by Managed Application Provider operator
	ManagedApplicationProviderOperator Type = "Managed Application Provider Operator"
	// ManagedApplicationConsumer is a consumer type that is used by Managed Application Provider operator
	// when creating Certificate Subject Mappings
	ManagedApplicationConsumer Type = "Managed Application Consumer"
	// ApplicationProvider is type that provides application templates and consumes ORD data
	ApplicationProvider Type = "Application Provider"
	// LandscapeResourceOperator is a consumer type that is used by Landscape Resource operator
	LandscapeResourceOperator Type = "Landscape Resource Operator"
	// TenantDiscoveryOperator is a consumer type that is used by Tenant Discovery operator
	TenantDiscoveryOperator Type = "Tenant Discovery Operator"
	// InstanceCreator is a consumer type that is used by Instance Creator operator
	InstanceCreator Type = "Instance Creator"
	// FormationViewer is a consumer type that is used by Instance Creator operator
	FormationViewer Type = "Formation Viewer"
)

func MapSystemAuthToConsumerType

func MapSystemAuthToConsumerType(refObj model.SystemAuthReferenceObjectType) (Type, error)

MapSystemAuthToConsumerType missing godoc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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