downloadcontent

package
v0.0.0-...-a9ed6da Latest Latest
Warning

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

Go to latest
Published: May 7, 2018 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package downloadcontent implements the aws:downloadContent plugin

Index

Constants

View Source
const (
	GitHub      = "GitHub"      //Github represents the source type "GitHub" from where the resource can be downloaded
	S3          = "S3"          //S3 represents the source type "S3" from where the resource is being downloaded
	SSMDocument = "SSMDocument" //SSMDocument represents the source type as SSM Document

	FailExitCode = 1
	PassExitCode = 0
)

Variables

View Source
var SetPermission = SetFilePermissions

Functions

func Name

func Name() string

Name returns the plugin name

func SetFilePermissions

func SetFilePermissions(log log.T, workingDir string) error

SetFilePermissions applies execute permissions to the folder

Types

type DownloadContentPlugin

type DownloadContentPlugin struct {
	contracts.PluginInput
	SourceType      string `json:"sourceType"`
	SourceInfo      string `json:"sourceInfo"`
	DestinationPath string `json:"destinationPath"`
}

ExecutePluginInput is a struct that holds the parameters sent through send command

type Plugin

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

Plugin is the type for the aws:downloadContent plugin.

func NewPlugin

func NewPlugin() (*Plugin, error)

NewPlugin returns a new instance of the plugin.

func (*Plugin) Execute

func (p *Plugin) Execute(context context.T, config contracts.Configuration, cancelFlag task.CancelFlag, output iohandler.IOHandler)

Execute runs multiple sets of commands and returns their outputs. res.Output will contain a slice of RunCommandPluginOutput.

Directories

Path Synopsis
Package gitresource implements the methods to access resources from git
Package gitresource implements the methods to access resources from git
privategithub
Package privategithub deals with all the authorization invocations to access private github
Package privategithub deals with all the authorization invocations to access private github
Package remoteresource is the factory for creating and developing on multiple remote resources
Package remoteresource is the factory for creating and developing on multiple remote resources
mock
Package remoteresource_mock has mock functions for remoteresource package
Package remoteresource_mock has mock functions for remoteresource package
Package s3resource implements the methods to access resources from s3
Package s3resource implements the methods to access resources from s3
Package ssmdocresource implements the methods to access resources from ssm
Package ssmdocresource implements the methods to access resources from ssm
Package system have all the files related dependencies used by the copy package
Package system have all the files related dependencies used by the copy package

Jump to

Keyboard shortcuts

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