wrappers

package
v0.0.0-...-035f276 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureAuthWrapper

type AzureAuthWrapper struct{}

AzureAuthWrapper Wrapper for azure/auth package used actions implements IAzureAuthWrapper interface

func (*AzureAuthWrapper) GetSettingsFromEnvironment

func (wrapper *AzureAuthWrapper) GetSettingsFromEnvironment() (IEnvironmentSettingsWrapper, error)

GetSettingsFromEnvironment get setting from auth.GetSettingsFromEnvironment and wraps it

func (*AzureAuthWrapper) NewAuthorizerFromCLIWithResource

func (wrapper *AzureAuthWrapper) NewAuthorizerFromCLIWithResource(resource string) (autorest.Authorizer, error)

NewAuthorizerFromCLIWithResource get authorizer from auth.NewAuthorizerFromCLIWithResource

type EnvironmentSettingsWrapper

type EnvironmentSettingsWrapper struct {
	// contains filtered or unexported fields
}

EnvironmentSettingsWrapper wraps auth.EnvironmentSettings implements wrapper.IEnvironmentSettingsWrapper interface

func NewEnvironmentSettingsWrapper

func NewEnvironmentSettingsWrapper(settings *auth.EnvironmentSettings) *EnvironmentSettingsWrapper

NewEnvironmentSettingsWrapper Constructor EnvironmentSettingsWrapper

func (*EnvironmentSettingsWrapper) GetEnvironment

func (wrapper *EnvironmentSettingsWrapper) GetEnvironment() *azure.Environment

GetEnvironment get auth GetEnvironment from wrapped settings

func (*EnvironmentSettingsWrapper) GetMSIAuthorizer

func (wrapper *EnvironmentSettingsWrapper) GetMSIAuthorizer() (autorest.Authorizer, error)

GetMSIAuthorizer get authorizer from MSI config from settings of wrapped settings

func (*EnvironmentSettingsWrapper) GetValues

func (wrapper *EnvironmentSettingsWrapper) GetValues() map[string]string

GetValues get settings value map from wrapped settings

type IAzureAuthWrapper

type IAzureAuthWrapper interface {
	GetSettingsFromEnvironment() (IEnvironmentSettingsWrapper, error)
	NewAuthorizerFromCLIWithResource(string) (autorest.Authorizer, error)
}

IAzureAuthWrapper Interfaces for auth wrappers

type IEnvironmentSettingsWrapper

type IEnvironmentSettingsWrapper interface {
	GetMSIAuthorizer() (autorest.Authorizer, error)
	GetValues() map[string]string
	GetEnvironment() *azure.Environment
}

IEnvironmentSettingsWrapper Interfaces for auth wrappers

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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