tarconsumer

package
v0.3.40 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package tarconsumer provides an interface for processing repositories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnpackTar

func UnpackTar(tar []byte, path string) (err error)

UnpackTar unpacks tar data to specified path

Types

type TarConsumer

type TarConsumer interface {
	SetCtx(ctx context.Context)
	SetURL(utl string)
	SetHTTPClient(httpClient *http.Client)
	GetTar(ctx context.Context) ([]byte, error)
}

func NewTarConsumer

func NewTarConsumer(ctx context.Context, client *http.Client, url string) TarConsumer

NewTarConsumer creates a TarConsumer used to get tar file from source controller.

Jump to

Keyboard shortcuts

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