msgs

package
v1.22.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package msgs defines the messages emitted by onboarding steps. These are the contracts between steps and the onboarding orchestrator.

Index

Constants

View Source
const (
	RolePlatform = "platform"
	RoleEngineer = "engineer"
)

Role constants.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountCreated

type AccountCreated struct {
	Org     domain.Organization
	Account domain.Account
}

AccountCreated is emitted when a new account is created.

type AccountSelected

type AccountSelected struct {
	Org     domain.Organization
	Account domain.Account
}

AccountSelected is emitted when user selects an account.

type AuthChecked

type AuthChecked struct {
	NeedsAuth bool
}

AuthChecked is emitted when the auth check completes.

type Authenticated

type Authenticated struct {
	User auth.User
}

Authenticated is emitted when authentication succeeds.

type DatadogAPIKeyEntered

type DatadogAPIKeyEntered struct {
	APIKey string
}

DatadogAPIKeyEntered is emitted when user enters API key.

type DatadogAccountCreated

type DatadogAccountCreated struct {
	DatadogAccountID domain.DatadogAccountID
}

DatadogAccountCreated is emitted when datadog account is created.

type DatadogDiscoveryComplete

type DatadogDiscoveryComplete struct{}

DatadogDiscoveryComplete is emitted when discovery finishes.

type DatadogNeeded

type DatadogNeeded struct{}

DatadogNeeded is emitted when datadog setup is required.

type DatadogReady

type DatadogReady struct{}

DatadogReady is emitted when datadog is already configured.

type DatadogRegionSelected

type DatadogRegionSelected struct {
	Site domain.DatadogSite
}

DatadogRegionSelected is emitted when user selects a datadog region.

type NoAccounts

type NoAccounts struct {
	Org domain.Organization
}

NoAccounts is emitted when no accounts exist for the org.

type NoOrgs

type NoOrgs struct{}

NoOrgs is emitted when no organizations exist.

type OnboardingComplete

type OnboardingComplete struct {
	User      *auth.User
	Org       domain.Organization
	Account   domain.Account
	Workspace domain.Workspace
}

OnboardingComplete is emitted to the root model when onboarding finishes.

type OrgCreated

type OrgCreated struct {
	Org domain.Organization
}

OrgCreated is emitted when a new organization is created.

type OrgSelected

type OrgSelected struct {
	Org domain.Organization
}

OrgSelected is emitted when user selects an organization.

type RoleSelected

type RoleSelected struct {
	Role string
}

RoleSelected is emitted when user selects their role.

type SyncComplete

type SyncComplete struct{}

SyncComplete is emitted when initial sync finishes.

type WorkspaceSelected

type WorkspaceSelected struct {
	Workspace domain.Workspace
}

WorkspaceSelected is emitted when user selects a workspace.

Jump to

Keyboard shortcuts

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