Documentation ¶
Index ¶
- func ReceiveApplicationManifestQueryWithFiles(stream ApplicationStreamReceiver) (*applicationpkg.ApplicationManifestQueryWithFiles, error)
- func ReceiveManifestFileStream(ctx context.Context, receiver RepoStreamReceiver, destDir string, ...) (*apiclient.ManifestRequest, *apiclient.ManifestFileMetadata, error)
- func SendApplicationManifestQueryWithFiles(ctx context.Context, stream ApplicationStreamSender, appName string, ...) error
- func SendRepoStream(repoStream RepoStreamSender, appStream ApplicationStreamReceiver, ...) error
- type ApplicationStreamReceiver
- type ApplicationStreamSender
- type RepoStreamReceiver
- type RepoStreamSender
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReceiveApplicationManifestQueryWithFiles ¶
func ReceiveApplicationManifestQueryWithFiles(stream ApplicationStreamReceiver) (*applicationpkg.ApplicationManifestQueryWithFiles, error)
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
Click to show internal directories.
Click to hide internal directories.