actions

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2018 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectAction

type ConnectAction struct {
	Config config.Interface
}

func (*ConnectAction) SshAgentAddPemKey

func (e *ConnectAction) SshAgentAddPemKey(pemFilepath string) error

func (*ConnectAction) Start

func (e *ConnectAction) Start(answerData map[string]interface{}, destHostname string) error

type CreateAction

type CreateAction struct {
	Config config.Interface
}

func (*CreateAction) Query

func (e *CreateAction) Query(questions map[string]config.Question, answerData map[string]interface{}) (map[string]interface{}, error)

func (*CreateAction) Start

func (e *CreateAction) Start(cliAnswerData map[string]interface{}, dryRun bool) error

func (*CreateAction) WriteAnswersFile added in v1.0.7

func (e *CreateAction) WriteAnswersFile(baseName string, answerData map[string]interface{}, dryRun bool) error

type DeleteAction added in v1.0.5

type DeleteAction struct {
	Config config.Interface
}

func (*DeleteAction) All added in v1.0.5

func (e *DeleteAction) All(answerDataList []map[string]interface{}, force bool) error

func (*DeleteAction) One added in v1.0.5

func (e *DeleteAction) One(answerData map[string]interface{}, force bool) error

type DownloadAction added in v1.0.5

type DownloadAction struct {
	ConnectAction
	Config config.Interface
}

func (*DownloadAction) Start added in v1.0.5

func (e *DownloadAction) Start(answerData map[string]interface{}, destHostname string, remoteFilePath string, localFilePath string) error

type GithubReleaseInfo added in v1.0.5

type GithubReleaseInfo struct {
	TagName         string    `json:"tag_name"`
	PublishedAt     time.Time `json:"published_at"`
	ReleaseNotesUrl string    `json:"html_url"`
	Assets          []struct {
		Url  string `json:"browser_download_url"`
		Name string `json:"name"`
	} `json:"assets"`
}

type ListAction

type ListAction struct {
	Config         config.Interface
	GroupedAnswers *gabs.Container
	OrderedAnswers []interface{}
}

func (*ListAction) FindAllAnswerFiles added in v1.0.5

func (e *ListAction) FindAllAnswerFiles() ([]string, error)

func (*ListAction) GroupAnswerList added in v1.0.5

func (e *ListAction) GroupAnswerList(answersList []map[string]interface{}, groupKeys []string) *gabs.Container

func (*ListAction) ParseAnswerFiles added in v1.0.5

func (e *ListAction) ParseAnswerFiles(files []string) ([]map[string]interface{}, error)

func (*ListAction) PrintTree added in v1.0.5

func (e *ListAction) PrintTree(groupedAnswers *gabs.Container) error

func (*ListAction) RenderedAnswersList added in v1.0.5

func (e *ListAction) RenderedAnswersList() ([]map[string]interface{}, error)

this is a list of all the answers that have been used to populate templates & config files. will be ordered by config file name

func (*ListAction) Start

func (e *ListAction) Start() error

type ProxyAction added in v1.0.8

type ProxyAction struct {
	Config config.Interface
}

func (*ProxyAction) Start added in v1.0.8

func (e *ProxyAction) Start(answerDataList []map[string]interface{}, dryRun bool) error

Jump to

Keyboard shortcuts

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