Documentation ¶
Index ¶
- func LogFunc(w io.Writer, format string, v ...interface{})
- func LogFuncBold() func(io.Writer, string, ...interface{})
- type Counter
- type Dots
- type Element
- type ParserState
- type Progress
- type Terraform
- type TerraformParser
- func (p *TerraformParser) CurrentResourceCount() int
- func (p *TerraformParser) Error() error
- func (p *TerraformParser) IsApplying() bool
- func (p *TerraformParser) Parse(line string) bool
- func (p *TerraformParser) State() ParserState
- func (p *TerraformParser) StateLabel() string
- func (p *TerraformParser) TotalResourceCount() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogFuncBold ¶
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
func NewCounter ¶
func (*Counter) TerminalOnly ¶
func (*Counter) UpdateChan ¶
func (c *Counter) UpdateChan() <-chan struct{}
type Dots ¶
type Dots struct {
// contains filtered or unexported fields
}
func (*Dots) TerminalOnly ¶
func (*Dots) UpdateChan ¶
func (d *Dots) UpdateChan() <-chan struct{}
type ParserState ¶
type ParserState int
const ( StateInitial ParserState = iota StateInitializing StatePlanning StateCreating StateUpdating StateDestroying StateDone )
type Terraform ¶
type Terraform struct {
// contains filtered or unexported fields
}
func NewTerraform ¶
func NewTerraform() *Terraform
type TerraformParser ¶
func NewTerraformParser ¶
func NewTerraformParser() *TerraformParser
NewTerraformParser creates terraform log parser. Prepares log lines for showing to the user. Collects terraform output in Outputs map.
func (*TerraformParser) CurrentResourceCount ¶
func (p *TerraformParser) CurrentResourceCount() int
func (*TerraformParser) Error ¶
func (p *TerraformParser) Error() error
func (*TerraformParser) IsApplying ¶
func (p *TerraformParser) IsApplying() bool
func (*TerraformParser) Parse ¶
func (p *TerraformParser) Parse(line string) bool
Parse terraform line returns false if this is not log line from terraform.
func (*TerraformParser) State ¶
func (p *TerraformParser) State() ParserState
func (*TerraformParser) StateLabel ¶
func (p *TerraformParser) StateLabel() string
func (*TerraformParser) TotalResourceCount ¶
func (p *TerraformParser) TotalResourceCount() int
Click to show internal directories.
Click to hide internal directories.