src/server/pkg/obj/obj.go
func NewMicrosoftClientFromEnv() (Client, error) {
	container, ok := os.LookupEnv(MicrosoftContainerEnvVar)
	if !ok {
		return nil, fmt.Errorf("%s not found", MicrosoftContainerEnvVar)
	}
	id, ok := os.LookupEnv(MicrosoftIDEnvVar)
	if !ok {
		return nil, fmt.Errorf("%s not found", MicrosoftIDEnvVar)
	}
	secret, ok := os.LookupEnv(MicrosoftSecretEnvVar)
	if !ok {
		return nil, fmt.Errorf("%s not found", MicrosoftSecretEnvVar)
	}
	return NewMicrosoftClient(container, id, secret)
}
func NewMicrosoftClientFromEnv() (Client, error) {
	container, ok := os.LookupEnv(MicrosoftContainerEnvVar)
	if !ok {
		return nil, fmt.Errorf("%s not found", MicrosoftContainerEnvVar)
	}
	id, ok := os.LookupEnv(MicrosoftIDEnvVar)
	if !ok {
		return nil, fmt.Errorf("%s not found", MicrosoftIDEnvVar)
	}
	secret, ok := os.LookupEnv(MicrosoftSecretEnvVar)
	if !ok {
		return nil, fmt.Errorf("%s not found", MicrosoftSecretEnvVar)
	}
	return NewMicrosoftClient(container, id, secret)
}
func NewMicrosoftClientFromEnv ( ) ( Client , error ) { container , ok := os . LookupEnv ( MicrosoftContainerEnvVar ) if ! ok { return nil , fmt . Errorf ( " " , MicrosoftContainerEnvVar ) } id , ok := os . LookupEnv ( MicrosoftIDEnvVar ) if ! ok { return nil , fmt . Errorf ( " " , MicrosoftIDEnvVar ) } secret , ok := os . LookupEnv ( MicrosoftSecretEnvVar ) if ! ok { return nil , fmt . Errorf ( " " , MicrosoftSecretEnvVar ) } return NewMicrosoftClient ( container , id , secret ) }
// NewMicrosoftClientFromEnv creates a Microsoft client based on environment variables.
NewMicrosoftClientFromEnv creates a Microsoft client based on environment variables .