e2e

package
v0.0.0-...-8cfd559 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 74 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuiltInConfigSourceDir = "./var"

Functions

func CreatePortalConfigSource

func CreatePortalConfigSource(dbURL string, dbSchema string, resourceDir string) error

func CreatePortalDefaultDomain

func CreatePortalDefaultDomain(dbURL string, dbSchema string, defaultDomainSuffix string) error

func ExecCmd

func ExecCmd(cmd string) error

func ProvideEnd2EndHTTPHost

func ProvideEnd2EndHTTPHost() httputil.HTTPHost

func ProvideEnd2EndHTTPProto

func ProvideEnd2EndHTTPProto() httputil.HTTPProto

func ProvideEnd2EndHTTPRequest

func ProvideEnd2EndHTTPRequest() *http.Request

func ProvideEnd2EndRemoteIP

func ProvideEnd2EndRemoteIP() httputil.RemoteIP

func ProvideEnd2EndUserAgentString

func ProvideEnd2EndUserAgentString() httputil.UserAgentString

Types

type Config

type Config struct {
	// ConfigSource configures the source of app configurations
	ConfigSource *configsource.Config `envconfig:"CONFIG_SOURCE"`

	// BuiltinResourceDirectory sets the directory for built-in resource files
	BuiltinResourceDirectory string `envconfig:"BUILTIN_RESOURCE_DIRECTORY" default:"resources/authgear"`
	// CustomResourceDirectory sets the directory for customized resource files
	CustomResourceDirectory string `envconfig:"CUSTOM_RESOURCE_DIRECTORY"`

	*config.EnvironmentConfig
}

func LoadConfigFromEnv

func LoadConfigFromEnv() (*Config, error)

type End2End

type End2End struct {
	Context context.Context
}

func (*End2End) CreateApp

func (c *End2End) CreateApp(appID string, baseConfigSourceDir string, override string) error

func (*End2End) ExecuteCustomSQL

func (c *End2End) ExecuteCustomSQL(appID string, sqlPath string) error

func (*End2End) GetLinkOTPCode

func (c *End2End) GetLinkOTPCode(appID string, claimName string, claimValue string) (string, error)

func (*End2End) ImportUsers

func (c *End2End) ImportUsers(appID string, jsonPath string) error

type NoopTaskQueue

type NoopTaskQueue struct{}

func (NoopTaskQueue) Enqueue

func (q NoopTaskQueue) Enqueue(param task.Param)

Jump to

Keyboard shortcuts

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