s3resource

package
v0.0.0-...-0117b6e Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Overview

Package s3resource implements the methods to access resources from s3

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Info

type S3Info struct {
	Path string `json:"path"`
}

S3Info represents the sourceInfo type sent by runcommand

type S3Resource

type S3Resource struct {
	Info S3Info
	// contains filtered or unexported fields
}

S3Resource is a struct for the remote resource of type git

func NewS3Resource

func NewS3Resource(context context.T, info string) (s3 *S3Resource, err error)

NewS3Resource is a constructor of type GitResource

func (*S3Resource) DownloadRemoteResource

func (s3 *S3Resource) DownloadRemoteResource(filesys filemanager.FileSystem, destPath string) (err error, result *remoteresource.DownloadResult)

DownloadRemoteResource calls download to pull down files or directory from s3

func (*S3Resource) ValidateLocationInfo

func (s3 *S3Resource) ValidateLocationInfo() (valid bool, err error)

ValidateLocationInfo ensures that the required parameters of SourceInfo are specified

Jump to

Keyboard shortcuts

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