temporalactivities

package
v0.0.0-...-a3532f1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MoveFile

func MoveFile(ctx context.Context, fromPath string, toPath string) error

MoveFile moves the specified file from the old path to the new path.

Types

type ArtifactActivities

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

func NewArtifactActivities

func NewArtifactActivities(artifactClient artifactservice.ArtifactServiceClient) *ArtifactActivities

NewArtifactActivities returns a new instance of an ArtifactActivities.

func (*ArtifactActivities) PullArtifact

func (a *ArtifactActivities) PullArtifact(ctx context.Context, artifactName string, destinationPath string) error

PullArtifact downloads the specified artifact from the artifact service to a local directory.

func (*ArtifactActivities) PushArtifact

func (a *ArtifactActivities) PushArtifact(ctx context.Context, artifactName string, files []string) error

PushArtifact creates an artifact from the specified files and uploads it to the artifact service.

type FSActivities

type FSActivities struct{}

func NewFSActivities

func NewFSActivities() *FSActivities

func (*FSActivities) RemoveAll

func (a *FSActivities) RemoveAll(ctx context.Context, path string) error

RemoveAll removes all files and directories at the specified path.

type StorageActivities

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

func NewStorageActivities

func NewStorageActivities(storage types.Storage) *StorageActivities

func (*StorageActivities) DeleteFile

func (a *StorageActivities) DeleteFile(ctx context.Context, path string) error

DeleteFile deletes the specified file from the storage provider.

func (*StorageActivities) DownloadFile

func (a *StorageActivities) DownloadFile(ctx context.Context, path string, destinationDir string) (string, error)

DownloadFile downloads the specified file from the storage provider to a local directory.

func (*StorageActivities) MoveFile

func (a *StorageActivities) MoveFile(ctx context.Context, fromPath string, toPath string) error

MoveFile moves the specified file from the old path to the new path within the storage provider.

func (*StorageActivities) UploadFile

func (a *StorageActivities) UploadFile(ctx context.Context, path string, destination string) error

UploadFile uploads the specified local file to the storage provider.

Jump to

Keyboard shortcuts

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