models

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AuditHeader = ui.Section{
		Name: "AuditHeader",
		Model: ui.MessageLines{
			ui.Header(fmt.Sprintf("Audit lcl.host HTTPS Local Development Environment %s", ui.Whisper("`anchor lcl audit`"))),
		},
	}

	AuditHint = ui.Section{
		Name: "AuditHint",
		Model: ui.MessageLines{
			ui.StepHint("We'll begin by checking your system to determine what you need for your setup."),
		},
	}
)
View Source
var (
	LclConfigSkip = ui.Section{
		Name: "LclConfigSkip",
		Model: ui.MessageLines{
			ui.Skip("Configure System for lcl.host Local Development `anchor lcl config`"),
		},
	}

	LclConfigHeader = ui.Section{
		Name: "LclConfigHeader",
		Model: ui.MessageLines{
			ui.Header(fmt.Sprintf("Configure System for lcl.host HTTPS Local Development %s", ui.Whisper("`anchor lcl config`"))),
		},
	}

	LclConfigHint = ui.Section{
		Name: "LclConfigHint",
		Model: ui.MessageLines{
			ui.StepHint("Before issuing HTTPS certificates for your local applications, we need to"),
			ui.StepHint("configure your browsers and OS to trust your personal certificates."),
			ui.Whisper("    |"),
			ui.StepHint("We'll start a local diagnostic web server to guide you through the process."),
		},
	}

	Browserless = ui.Section{
		Name: "Browserless",
		Model: ui.MessageLines{
			ui.Warning("Unable to open browser, skipping browser-based verification."),
		},
	}
)
View Source
var (
	LclSignInHint = ui.Section{
		Name: "LclSignInHint",
		Model: ui.MessageLines{
			ui.StepHint("Please sign up or sign in with your Anchor account."),
			ui.StepHint(""),
			ui.StepHint("Once authenticated, we can provision your personalized Anchor resources to"),
			ui.StepHint("power HTTPS in your local development environment."),
		},
	}

	LclPreamble = ui.Section{
		Name: "LclPreamble",
		Model: ui.MessageLines{
			ui.Hint("Let's set up lcl.host HTTPS in your local development environment!"),
			ui.Hint(""),
			ui.Hint("lcl.host (made by the team at Anchor) adds HTTPS in a fast and totally free way"),
			ui.Hint("to local applications & services."),
		},
	}

	LclHeader = ui.Section{
		Name: "LclHeader",
		Model: ui.MessageLines{
			ui.Header(fmt.Sprintf("Setup lcl.host HTTPS Local Development Environment %s", ui.Whisper("`anchor lcl`"))),
		},
	}

	LclHint = ui.Section{
		Name: "LclHint",
		Model: ui.MessageLines{
			ui.StepHint("Once setup finishes, you'll have a secure context in your browsers and local"),
			ui.StepHint("system so you can use HTTPS locally."),
		},
	}
)
View Source
var (
	SetupHeader = ui.Section{
		Name: "SetupHeader",
		Model: ui.MessageLines{
			ui.Header(fmt.Sprintf("Setup lcl.host Application %s", ui.Whisper("`anchor lcl setup`"))),
		},
	}

	SetupHint = ui.Section{
		Name: "SetupHint",
		Model: ui.MessageLines{
			ui.StepHint("We'll start by scanning your current directory, then ask you questions about"),
			ui.StepHint("your local application so that we can generate setup instructions for you."),
		},
	}
)
View Source
var LclCleanHeader = ui.Section{
	Name: "LclCleanHeader",
	Model: ui.MessageLines{
		ui.Header(fmt.Sprintf("Clean lcl.host CA Certificates from Local Trust Store(s) %s", ui.Whisper("`anchor trust clean`"))),
	},
}

Functions

This section is empty.

Types

type AuditResources added in v0.0.11

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

func (*AuditResources) Init added in v0.0.11

func (m *AuditResources) Init() tea.Cmd

func (*AuditResources) Update added in v0.0.11

func (m *AuditResources) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*AuditResources) View added in v0.0.11

func (m *AuditResources) View() string

type AuditResourcesFoundMsg added in v0.0.11

type AuditResourcesFoundMsg struct{}

type AuditResourcesNotFoundMsg added in v0.0.11

type AuditResourcesNotFoundMsg struct{}

type AuditUnauthenticated added in v0.0.11

type AuditUnauthenticated bool

type DomainInput

type DomainInput struct {
	InputCh chan<- string

	Default, Domain, TLD string
	Prompt, Done         string
	// contains filtered or unexported fields
}

func (*DomainInput) Init

func (m *DomainInput) Init() tea.Cmd

func (*DomainInput) Update

func (m *DomainInput) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*DomainInput) View

func (m *DomainInput) View() string

type DomainResolver added in v0.0.13

type DomainResolver struct {
	Domain string
	// contains filtered or unexported fields
}

func (*DomainResolver) Init added in v0.0.13

func (m *DomainResolver) Init() tea.Cmd

func (*DomainResolver) Update added in v0.0.13

func (m *DomainResolver) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*DomainResolver) View added in v0.0.13

func (m *DomainResolver) View() string

type DomainStatusMsg added in v0.0.13

type DomainStatusMsg bool

type LclCleanHint added in v0.0.13

type LclCleanHint struct {
	TrustStores []string
	// contains filtered or unexported fields
}

func (*LclCleanHint) Init added in v0.0.13

func (c *LclCleanHint) Init() tea.Cmd

func (*LclCleanHint) Update added in v0.0.13

func (c *LclCleanHint) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*LclCleanHint) View added in v0.0.13

func (c *LclCleanHint) View() string

type LclConfig added in v0.0.11

type LclConfig struct {
	ConfirmCh chan<- struct{}

	Domain, Port, Scheme string
	ShowHeader           bool
	// contains filtered or unexported fields
}

func (LclConfig) Init added in v0.0.11

func (LclConfig) Init() tea.Cmd

func (*LclConfig) Update added in v0.0.11

func (m *LclConfig) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (LclConfig) View added in v0.0.11

func (m LclConfig) View() string

type LclConfigSuccess added in v0.0.11

type LclConfigSuccess struct {
	Org, Realm, CA string
}

func (LclConfigSuccess) Init added in v0.0.11

func (LclConfigSuccess) Init() tea.Cmd

func (LclConfigSuccess) Update added in v0.0.11

func (m LclConfigSuccess) Update(tea.Msg) (tea.Model, tea.Cmd)

func (LclConfigSuccess) View added in v0.0.11

func (m LclConfigSuccess) View() string

type OpenSetupGuideMsg

type OpenSetupGuideMsg string

type OpenURLMsg

type OpenURLMsg string

type ProvisionService

type ProvisionService struct {
	Name, ServerType string

	Domains []string
	// contains filtered or unexported fields
}

func (*ProvisionService) Init

func (m *ProvisionService) Init() tea.Cmd

func (*ProvisionService) Update

func (m *ProvisionService) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*ProvisionService) View

func (m *ProvisionService) View() string

type ServiceProvisionedMsg

type ServiceProvisionedMsg struct{}

type SetupCategory added in v0.0.11

type SetupCategory struct {
	ChoiceCh chan<- string
	Results  detection.Results
	// contains filtered or unexported fields
}

func (*SetupCategory) Init added in v0.0.11

func (m *SetupCategory) Init() tea.Cmd

func (*SetupCategory) Update added in v0.0.11

func (m *SetupCategory) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*SetupCategory) View added in v0.0.11

func (m *SetupCategory) View() string

type SetupGuidePrompt

type SetupGuidePrompt struct {
	ConfirmCh chan<- struct{}
	// contains filtered or unexported fields
}

func (SetupGuidePrompt) Init

func (SetupGuidePrompt) Init() tea.Cmd

func (*SetupGuidePrompt) Update

func (m *SetupGuidePrompt) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (SetupGuidePrompt) View

func (m SetupGuidePrompt) View() string

type SetupName added in v0.0.11

type SetupName struct {
	InputCh chan<- string

	Default string
	// contains filtered or unexported fields
}

func (*SetupName) Init added in v0.0.11

func (m *SetupName) Init() tea.Cmd

func (*SetupName) Update added in v0.0.11

func (m *SetupName) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*SetupName) View added in v0.0.11

func (m *SetupName) View() string

type SetupScan added in v0.0.11

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

func (*SetupScan) Init added in v0.0.11

func (m *SetupScan) Init() tea.Cmd

func (*SetupScan) Update added in v0.0.11

func (m *SetupScan) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*SetupScan) View added in v0.0.11

func (m *SetupScan) View() string

Jump to

Keyboard shortcuts

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