ui

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cell

type Cell struct {
	Summary    terraform.PlanSummary
	RowName    RowName
	ColumnName string
}

type ChangeTable

type ChangeTable struct {
	Columns []string
	Rows    []Row
}

func CreateTable

func CreateTable(summaries []terraform.PlanSummary) *ChangeTable

CreateTable parses out a set of summaries and arranges it for nice display

type Options

type Options struct {
	Port            int           `help:"Port on which to listen" default:"8080"`
	TemplateReloads time.Duration `help:"frequency at which to reload templates" default:"500ms"`
	UIFilePath      string        `help:"path for HTML templates" type:"path" optional:"1"`
	DataPath        string        `help:"Path to find data" type:"path" default:"received"`

	Meta SiteMeta `embed:"" prefix:"site."`
	// contains filtered or unexported fields
}

func (*Options) Render

func (ui *Options) Render(writer http.ResponseWriter, request *http.Request)

func (*Options) Router

func (ui *Options) Router() (*mux.Router, error)

func (*Options) Run

func (ui *Options) Run() error

func (*Options) ServeStatic

func (ui *Options) ServeStatic() (http.Handler, error)

type Row

type Row struct {
	Name     RowName
	Contents []*Cell
}

type RowName

type RowName string

type SiteMeta

type SiteMeta struct {
	Name string `help:"Site name for display on tab" default:"Olympus"`
}

Jump to

Keyboard shortcuts

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