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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TrustAuditHeader = ui.Section{
		Name: "TrustAuditHeader",
		Model: ui.MessageLines{
			ui.Header(fmt.Sprintf("Audit CA Certificates in Your Local Trust Store(s) %s", ui.Whisper("`anchor trust audit`"))),
		},
	}

	TrustAuditHint = ui.Section{
		Name: "TrustAuditHint",
		Model: ui.MessageLines{
			ui.StepHint("We will compare your CA certificates from Anchor and your local trust stores."),
		},
	}
)
View Source
var (
	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 trust`"))),
		},
	}

	TrustHint = ui.Section{
		Name: "TrustHint",
		Model: ui.MessageLines{
			ui.StepHint(fmt.Sprintf("%s %s",
				ui.Accentuate("This may require sudo privileges, learn why here: "),
				ui.URL("https://lcl.host/why-sudo"),
			)),
		},
	}
)
View Source
var TrustCleanHeader = ui.Section{
	Name: "TrustCleanHeader",
	Model: ui.MessageLines{
		ui.Header(fmt.Sprintf("Clean CA Certificates from Local Trust Store(s) %s", ui.Whisper("`anchor trust clean`"))),
	},
}

Functions

This section is empty.

Types

type CACleanedMsg added in v0.0.13

type CACleanedMsg struct {
	truststore.Store
}

type CACleaningMsg added in v0.0.13

type CACleaningMsg struct {
	truststore.Store
}

type TrustAuditInfo added in v0.0.23

type TrustAuditInfo struct {
	AuditInfo *truststore.AuditInfo
	Stores    []truststore.Store
}

func (*TrustAuditInfo) Init added in v0.0.23

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

func (*TrustAuditInfo) Update added in v0.0.23

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

func (*TrustAuditInfo) View added in v0.0.23

func (m *TrustAuditInfo) View() string

type TrustCleanAudit added in v0.0.13

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

func (*TrustCleanAudit) Init added in v0.0.13

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

func (*TrustCleanAudit) Update added in v0.0.13

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

func (*TrustCleanAudit) View added in v0.0.13

func (m *TrustCleanAudit) View() string

type TrustCleanCA added in v0.0.13

type TrustCleanCA struct {
	Config *cli.Config

	CA *truststore.CA

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

func (*TrustCleanCA) Init added in v0.0.13

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

func (*TrustCleanCA) Update added in v0.0.13

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

func (*TrustCleanCA) View added in v0.0.13

func (m *TrustCleanCA) View() string

type TrustCleanHint added in v0.0.13

type TrustCleanHint struct {
	CertStates, TrustStores []string
	// contains filtered or unexported fields
}

func (*TrustCleanHint) Init added in v0.0.13

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

func (*TrustCleanHint) Update added in v0.0.13

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

func (*TrustCleanHint) View added in v0.0.13

func (c *TrustCleanHint) View() string

type TrustStoreInstalledCAMsg added in v0.0.10

type TrustStoreInstalledCAMsg struct {
	truststore.CA
}

type TrustStoreInstallingCAMsg added in v0.0.10

type TrustStoreInstallingCAMsg struct {
	truststore.CA
}

type TrustUpdateConfirm added in v0.0.33

type TrustUpdateConfirm struct {
	ConfirmCh chan<- struct{}
}

func (*TrustUpdateConfirm) Init added in v0.0.33

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

func (*TrustUpdateConfirm) Update added in v0.0.33

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

func (*TrustUpdateConfirm) View added in v0.0.33

func (m *TrustUpdateConfirm) View() string

type TrustUpdateStore added in v0.0.10

type TrustUpdateStore struct {
	Store truststore.Store
	// contains filtered or unexported fields
}

func (*TrustUpdateStore) Init added in v0.0.10

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

func (*TrustUpdateStore) Update added in v0.0.10

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

func (*TrustUpdateStore) View added in v0.0.10

func (m *TrustUpdateStore) View() string

type VMHint added in v0.0.35

type VMHint struct{}

func (*VMHint) Init added in v0.0.35

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

func (*VMHint) Update added in v0.0.35

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

func (*VMHint) View added in v0.0.35

func (m *VMHint) View() string

Jump to

Keyboard shortcuts

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