untar

package module
v0.0.0-...-442515b Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractTgzAndUpload

func ExtractTgzAndUpload(ctx context.Context, client common.StorageClient, srcBucketName string, srcPath string, destBucketName string, messageSender func(common.PubSubMessageData) error) error

func HandleUntarEvent

func HandleUntarEvent(ctx context.Context, e event.Event) error

Types

type EnvConfig

type EnvConfig struct {
	ProjectID      string
	ContentTopicID string
	DestBucketName string
}

func NewEnvConfig

func NewEnvConfig() (*EnvConfig, error)

type MessagePublishedData

type MessagePublishedData struct {
	Message PubSubMessage
}

type PubSubMessage

type PubSubMessage struct {
	ID              string
	Data            []byte `json:"data"`
	Attributes      map[string]string
	PublishTime     time.Time
	DeliveryAttempt *int
	OrderingKey     string
}

Jump to

Keyboard shortcuts

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