downloadcontent

package
Version: v0.0.0-...-a65a94f Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package downloadcontent implements the aws:downloadContent plugin

Index

Constants

View Source
const (
	Git         = "Git"         //Git represents any arbitrary "Git" repository from where the resource can be downloaded
	HTTP        = "HTTP"        //HTTP represents any arbitrary URL from where the resource can be downloaded
	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(context context.T) (*Plugin, error)

NewPlugin returns a new instance of the plugin.

func (*Plugin) Execute

func (p *Plugin) Execute(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 methods and defines resources required to access git repositories
Package gitresource implements methods and defines resources required to access git repositories
github
Package github implements the methods to access resources from github
Package github implements the methods to access resources from github
github/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
github/privategithub/githubclient
Package githubclient contains methods for interacting with git Package githubclient contains methods for interacting with git
Package githubclient contains methods for interacting with git Package githubclient contains methods for interacting with git
github/privategithub/githubclient/mock
Package mock_githubclient contains methods to mock githubclient package
Package mock_githubclient contains methods to mock githubclient package
privategit
Package privategit implements the methods to access resources over Git
Package privategit implements the methods to access resources over Git
privategit/handler
Package handler provides methods for accessing git repositories over SSH or HTTP(s)
Package handler provides methods for accessing git repositories over SSH or HTTP(s)
privategit/handler/core
Package core contains wrapper structs for the git package resources Package core contains wrapper structs for the git package resources
Package core contains wrapper structs for the git package resources Package core contains wrapper structs for the git package resources
privategit/handler/core/mock
Package mock defines the struct and its corresponding methods for mocking core.Repository Package mock defines the struct and its corresponding methods for mocking core.Worktree
Package mock defines the struct and its corresponding methods for mocking core.Repository Package mock defines the struct and its corresponding methods for mocking core.Worktree
privategit/handler/mock
Package mock defines the struct and its corresponding methods for mocking handler.IGitHandler
Package mock defines the struct and its corresponding methods for mocking handler.IGitHandler
Package httpresource provides methods to download resources over HTTP(s)
Package httpresource provides methods to download resources over HTTP(s)
handler
Package handler provides methods to access resources over HTTP(s)
Package handler provides methods to access resources over HTTP(s)
handler/auth/digest
Package digest defines functionality required to support digest authorization Package digest defines functionality required to support digest authorization
Package digest defines functionality required to support digest authorization Package digest defines functionality required to support digest authorization
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
Package types defines custom types
Package types defines custom types

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL