initialization

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: Apache-2.0 Imports: 50 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAllKeys

func GenerateAllKeys() (domain.CryptoKeys, error)

func GenerateExecutorName

func GenerateExecutorName() string

func GeneratePasscode

func GeneratePasscode() (string, error)

func GenerateX25519KeyPair

func GenerateX25519KeyPair() (privateKeyBase64, publicKeyBase64 string, err error)

func GetDefaultAPIURL

func GetDefaultAPIURL() string

func GetVerificationURL

func GetVerificationURL(apiURL string) string

func RegisterExecutor

func RegisterExecutor(executorName, address string, keys domain.CryptoKeys, apiBaseURL string) (string, error)

RegisterExecutor registers the executor with the API and returns verification code

func RunFirstTimeSetup

func RunFirstTimeSetup(ctx context.Context, params RunFirstTimeSetupParams) error

Types

type ExecutorContainer

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

func NewExecutorContainer

func NewExecutorContainer() (*ExecutorContainer, error)

func (*ExecutorContainer) BuildExecutorDependencies

func (c *ExecutorContainer) BuildExecutorDependencies(ctx context.Context, config ExecutorDependencyConfig) (*ExecutorDependencies, error)

func (*ExecutorContainer) GetConfigManager

func (c *ExecutorContainer) GetConfigManager() domain.ConfigManager

func (*ExecutorContainer) GetWorkspaceRegistrationManager

func (c *ExecutorContainer) GetWorkspaceRegistrationManager() domain.WorkspaceRegistrationManager

type ExecutorDependencies

type ExecutorDependencies struct {
	FlowbakerClient         *flowbaker.Client
	IntegrationSelector     domain.IntegrationSelector
	WorkflowExecutorService executor.WorkflowExecutorService
	ExecutorController      *controllers.ExecutorController
}

type ExecutorDependencyConfig

type ExecutorDependencyConfig struct {
	FlowbakerClient *flowbaker.Client
	ExecutorID      string
	Config          domain.ExecutorConfig
}

type RunFirstTimeSetupParams

type RunFirstTimeSetupParams struct {
	ConfigManager       domain.ConfigManager
	RegistrationManager domain.WorkspaceRegistrationManager
}

type WaitForVerificationParams

type WaitForVerificationParams struct {
	ExecutorName                 string
	VerificationCode             string
	Keys                         domain.CryptoKeys
	APIBaseURL                   string
	WorkspaceRegistrationManager domain.WorkspaceRegistrationManager
	EnableStaticPasscode         bool
	StaticPasscode               string
}

type WaitForVerificationResult

type WaitForVerificationResult struct {
	ExecutorID          string
	WorkspaceAssignment domain.WorkspaceAssignment
}

Jump to

Keyboard shortcuts

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