selfregmanager

package
v0.0.0-...-6d13c91 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const RegionLabel = "region"

RegionLabel label for the label repository indicating region

Variables

This section is empty.

Functions

func NewSelfRegisterManager

func NewSelfRegisterManager(cfg config.SelfRegConfig, provider ExternalSvcCallerProvider, appTemplateProductLabel string) (*selfRegisterManager, error)

NewSelfRegisterManager creates a new SelfRegisterManager which is responsible for doing preparation/clean-up during self-registration of runtimes configured with values from cfg.

Types

type CallerProvider

type CallerProvider struct{}

CallerProvider is used to provide ExternalSvcCaller to call external services with given authentication

func (*CallerProvider) GetCaller

func (c *CallerProvider) GetCaller(config config.SelfRegConfig, region string) (ExternalSvcCaller, error)

GetCaller provides ExternalSvcCaller to call external services with given authentication

type ExternalSvcCaller

type ExternalSvcCaller interface {
	Call(*http.Request) (*http.Response, error)
}

ExternalSvcCaller is used to call external services with given authentication

type ExternalSvcCallerProvider

type ExternalSvcCallerProvider interface {
	GetCaller(config.SelfRegConfig, string) (ExternalSvcCaller, error)
}

ExternalSvcCallerProvider provides ExternalSvcCaller based on the provided SelfRegConfig and region

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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