manifeststream

package
v2.10.9 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReceiveManifestFileStream

func ReceiveManifestFileStream(ctx context.Context, receiver RepoStreamReceiver, destDir string, maxTarSize int64, maxExtractedSize int64) (*apiclient.ManifestRequest, *apiclient.ManifestFileMetadata, error)

func SendApplicationManifestQueryWithFiles

func SendApplicationManifestQueryWithFiles(ctx context.Context, stream ApplicationStreamSender, appName string, appNs string, dir string, inclusions []string) error

SendApplicationManifestQueryWithFiles compresses a folder and sends it over the stream

func SendRepoStream

func SendRepoStream(repoStream RepoStreamSender, appStream ApplicationStreamReceiver, req *apiclient.ManifestRequest, checksum string) error

Types

type ApplicationStreamReceiver

type ApplicationStreamReceiver interface {
	Recv() (*applicationpkg.ApplicationManifestQueryWithFilesWrapper, error)
}

Defines the contract for the application receiver, i.e. API server

type ApplicationStreamSender

type ApplicationStreamSender interface {
	Send(*applicationpkg.ApplicationManifestQueryWithFilesWrapper) error
}

Defines the contract for the application sender, i.e. the CLI

type RepoStreamReceiver

type RepoStreamReceiver interface {
	Recv() (*apiclient.ManifestRequestWithFiles, error)
}

Defines the contract for the repo stream receiver, i.e. the repo server

type RepoStreamSender

type RepoStreamSender interface {
	Send(*apiclient.ManifestRequestWithFiles) error
}

Defines the contract for the repo stream sender, i.e. the API server

Jump to

Keyboard shortcuts

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