localfile

package
v4.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Debug bool

	Config *Config

	Notify *NotifyService
	Output *OutputService
	// contains filtered or unexported fields
}

Client is a fake API client for write to local file

func NewClient

func NewClient(cfg *Config) (*Client, error)

NewClient returns Client initialized with Config

type Config

type Config struct {
	OutputFile string
	Parser     terraform.Parser
	// Template is used for all Terraform command output
	Template           *terraform.Template
	ParseErrorTemplate *terraform.Template
	Vars               map[string]string
	EmbeddedVarNames   []string
	Templates          map[string]string
	CI                 string
	UseRawOutput       bool
}

Config is a configuration for local file

type NotifyService

type NotifyService service

NotifyService handles communication with the notification related methods of GitHub API

func (*NotifyService) Apply

func (g *NotifyService) Apply(_ context.Context, param *notifier.ParamExec) error

Apply posts comment optimized for notifications

func (*NotifyService) Plan

func (g *NotifyService) Plan(_ context.Context, param *notifier.ParamExec) error

Plan posts comment optimized for notifications

type OutputService

type OutputService service

func (*OutputService) WriteToFile

func (f *OutputService) WriteToFile(body string, outputFile string) error

WriteToFile Write result to file

Jump to

Keyboard shortcuts

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