Documentation ¶
Index ¶
- Variables
- func DirectUpload(url string, contentMD5 []byte, size int64, data io.Reader) error
- func DownloadFileFromHTTP(ctx context.Context, ref storage.DataReference) (io.ReadCloser, error)
- func GetSerializeOutputFiles(ctx context.Context, args []string, archive bool) ([]string, string, error)
- func Register(ctx context.Context, args []string, cfg *config.Config, ...) error
- func RemoteRegisterCommand() *cobra.Command
- func UnMarshalContents(ctx context.Context, fileContents []byte, fname string) (proto.Message, error)
- type HTTPClient
- type Result
- type SignedURLPatternMatcher
Constants ¶
This section is empty.
Variables ¶
View Source
var Client *storage.DataStore
Functions ¶
func DirectUpload ¶
func DownloadFileFromHTTP ¶
func DownloadFileFromHTTP(ctx context.Context, ref storage.DataReference) (io.ReadCloser, error)
func GetSerializeOutputFiles ¶
func GetSerializeOutputFiles(ctx context.Context, args []string, archive bool) ([]string, string, error)
Get serialize output file list from the args list. If the archive flag is on then download the archives to temp directory and extract it. In case of fast register it will also return the compressed source code The o/p of this function would be sorted list of the file locations.
func RemoteRegisterCommand ¶
RemoteRegisterCommand will return register command
Types ¶
type HTTPClient ¶
HTTPClient interface
type SignedURLPatternMatcher ¶
var (
SignedURLPattern SignedURLPatternMatcher = regexp.MustCompile(`https://((storage\.googleapis\.com/(?P<bucket_gcs>[^/]+))|((?P<bucket_s3>[^\.]+)\.s3\.amazonaws\.com)|(.*\.blob\.core\.windows\.net/(?P<bucket_az>[^/]+)))/(?P<path>[^?]*)`)
)
Click to show internal directories.
Click to hide internal directories.