client

package
v0.0.0-...-550642b Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGrabClient

func NewGrabClient(timeout int) *grab.Client

func Round

func Round(input float64) float64

Types

type DockerClient

type DockerClient struct {
	RepoData RepoData

	Cache *artifact.ArtifactCache
	// contains filtered or unexported fields
}

func NewDockerClient

func NewDockerClient(r RepoData, ctx luettypes.Context) *DockerClient

func (*DockerClient) CacheGet

func (*DockerClient) DownloadArtifact

func (c *DockerClient) DownloadArtifact(a *artifact.PackageArtifact) (*artifact.PackageArtifact, error)

func (*DockerClient) DownloadFile

func (c *DockerClient) DownloadFile(name string) (string, error)

type HttpClient

type HttpClient struct {
	RepoData RepoData
	Cache    *artifact.ArtifactCache
	// contains filtered or unexported fields
}

func NewHttpClient

func NewHttpClient(r RepoData, ctx types.Context) *HttpClient

func (*HttpClient) CacheGet

func (*HttpClient) DownloadArtifact

func (c *HttpClient) DownloadArtifact(a *artifact.PackageArtifact) (*artifact.PackageArtifact, error)

func (*HttpClient) DownloadFile

func (c *HttpClient) DownloadFile(p string) (string, error)

type LocalClient

type LocalClient struct {
	RepoData RepoData
	Cache    *artifact.ArtifactCache
	// contains filtered or unexported fields
}

func NewLocalClient

func NewLocalClient(r RepoData, ctx types.Context) *LocalClient

func (*LocalClient) CacheGet

func (*LocalClient) DownloadArtifact

func (c *LocalClient) DownloadArtifact(a *artifact.PackageArtifact) (*artifact.PackageArtifact, error)

func (*LocalClient) DownloadFile

func (c *LocalClient) DownloadFile(name string) (string, error)

type RepoData

type RepoData struct {
	Urls           []string
	Authentication map[string]string
	Verify         bool
}

Jump to

Keyboard shortcuts

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