Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReceiveRepoStream ¶
func ReceiveRepoStream(ctx context.Context, receiver StreamReceiver, destDir string) (*pluginclient.ManifestRequestMetadata, error)
ReceiveRepoStream will receive the repository files and save them in destDir. Will return the stream metadata if no error. Metadata will be nil in case of errors.
func SendRepoStream ¶
func SendRepoStream(ctx context.Context, appPath, repoPath string, sender StreamSender, env []string, excludedGlobs []string, opts ...SenderOption) error
SendRepoStream will compress the files under the given repoPath and send them using the plugin stream sender.
Types ¶
type SenderOption ¶
type SenderOption func(*senderOption)
SenderOption defines the function type to by used by specific options
func WithTarDoneChan ¶
func WithTarDoneChan(ch chan<- bool) SenderOption
type StreamReceiver ¶
type StreamReceiver interface {
Recv() (*pluginclient.AppStreamRequest, error)
}
StreamReceiver defines the contract for receiving Application's files over gRPC stream
type StreamSender ¶
type StreamSender interface {
Send(*pluginclient.AppStreamRequest) error
}
StreamSender defines the contract to send App files over stream
Click to show internal directories.
Click to hide internal directories.