Documentation ¶
Overview ¶
Copyright 2024 Harness Inc. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandCache ¶
ExpandCache returns the root directory where task downloads and repositories should be cached.
func ExpandCacheSlice ¶
ExpandCacheSlice returns the root directory where task downloads and repositories should be cached.
func IsRepository ¶
IsRepository returns true if the provided download url is a git repository.
Types ¶
type Downloader ¶
type Downloader struct {
// contains filtered or unexported fields
}
func (*Downloader) DownloadExecutable ¶
func (d *Downloader) DownloadExecutable(ctx context.Context, taskType string, exec *task.ExecutableConfig) (string, error)
func (*Downloader) DownloadRepo ¶
func (d *Downloader) DownloadRepo(ctx context.Context, repo *task.Repository) (string, error)
Click to show internal directories.
Click to hide internal directories.