models

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 11 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 compare your local development CA certificates from Anchor and your local trust stores."),
		},
	}
)
View Source
var (
	BootstrapSkip = ui.Section{
		Name: "BootstrapSkip",
		Model: ui.MessageLines{
			ui.Skip("Initial System Configuration for lcl.host Local HTTPS Development `anchor lcl bootstrap`"),
		},
	}

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

	BootstrapHint = ui.Section{
		Name: "BootstrapHint",
		Model: ui.MessageLines{
			ui.StepHint("We'll configure your browsers and OS to trust your local development certificates."),
		},
	}

	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 fast and totally free lcl.host HTTPS!"),
		},
	}

	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("We'll set you up to use HTTPS locally in your browsers and other programs."),
		},
	}

	TrustHeader = ui.Section{
		Name: "TrustHeader",
		Model: ui.MessageLines{
			ui.Header(fmt.Sprintf("Manage CA Certificates in your Local Trust Store(s) %s", ui.Whisper("`anchor lcl trust`"))),
		},
	}

	TrustHint = ui.Section{
		Name: "TrustHint",
		Model: ui.MessageLines{
			ui.StepHint("We'll check your local trust stores and make any needed updates."),
		},
	}
)
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 integrate your application and system for HTTPS local development."),
		},
	}

	SetupAnchorTOML = ui.Section{
		Name: "AnchorTOML",
		Model: ui.MessageLines{
			ui.StepNext("Be sure to add anchor.toml to your version control system."),
		},
	}
)
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 AuditUnauthenticated added in v0.0.11

type AuditUnauthenticated bool

type Bootstrap added in v0.1.0

type Bootstrap struct {
	ConfirmCh chan<- struct{}

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

func (Bootstrap) Init added in v0.1.0

func (Bootstrap) Init() tea.Cmd

func (*Bootstrap) Update added in v0.1.0

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

func (Bootstrap) View added in v0.1.0

func (m Bootstrap) View() string

type BootstrapDiagnostic added in v0.1.0

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

func (*BootstrapDiagnostic) Init added in v0.1.0

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

func (*BootstrapDiagnostic) Update added in v0.1.0

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

func (*BootstrapDiagnostic) View added in v0.1.0

func (m *BootstrapDiagnostic) View() string

type BootstrapDiagnosticFoundMsg added in v0.1.0

type BootstrapDiagnosticFoundMsg struct{}

type BootstrapDiagnosticNotFoundMsg added in v0.1.0

type BootstrapDiagnosticNotFoundMsg struct{}

type BootstrapSuccess added in v0.1.0

type BootstrapSuccess struct {
	URL *url.URL
}

func (BootstrapSuccess) Init added in v0.1.0

func (BootstrapSuccess) Init() tea.Cmd

func (BootstrapSuccess) Update added in v0.1.0

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

func (BootstrapSuccess) View added in v0.1.0

func (m BootstrapSuccess) View() string

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
}

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 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 SetupGuideHint added in v0.0.36

type SetupGuideHint struct {
	LclUrl string
}

func (*SetupGuideHint) Init added in v0.0.36

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

func (*SetupGuideHint) Update added in v0.0.36

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

func (*SetupGuideHint) View added in v0.0.36

func (m *SetupGuideHint) 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 SetupMethod added in v0.0.36

type SetupMethod struct {
	ChoiceCh chan<- string
	// contains filtered or unexported fields
}

func (*SetupMethod) Init added in v0.0.36

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

func (*SetupMethod) Update added in v0.0.36

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

func (*SetupMethod) View added in v0.0.36

func (m *SetupMethod) View() string

type SetupOrgName added in v0.1.7

type SetupOrgName struct {
	InputCh chan<- string
	// contains filtered or unexported fields
}

func (*SetupOrgName) Init added in v0.1.7

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

func (*SetupOrgName) Update added in v0.1.7

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

func (*SetupOrgName) View added in v0.1.7

func (m *SetupOrgName) 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

type SetupServiceName added in v0.1.7

type SetupServiceName struct {
	InputCh chan<- string

	Default string
	// contains filtered or unexported fields
}

func (*SetupServiceName) Init added in v0.1.7

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

func (*SetupServiceName) Update added in v0.1.7

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

func (*SetupServiceName) View added in v0.1.7

func (m *SetupServiceName) View() string

Jump to

Keyboard shortcuts

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