client

package
v0.40.0-geaaru Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Overview

Copyright © 2022 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.

Copyright © 2022 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.

Copyright © 2022 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGrabClient

func NewGrabClient() *grab.Client

func Round

func Round(input float64) float64

Types

type DockerClient

type DockerClient struct {
	Repository *config.LuetRepository
	// contains filtered or unexported fields
}

func NewDockerClient

func NewDockerClient(r *config.LuetRepository) *DockerClient

func (*DockerClient) DownloadArtifact

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

func (*DockerClient) DownloadFile

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

type HttpClient

type HttpClient struct {
	Repository *config.LuetRepository
}

func NewHttpClient

func NewHttpClient(r *config.LuetRepository) *HttpClient

func (*HttpClient) DownloadArtifact

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

func (*HttpClient) DownloadFile

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

func (*HttpClient) PrepareReq

func (c *HttpClient) PrepareReq(dst, url string) (*grab.Request, error)

type LocalClient

type LocalClient struct {
	Repository *config.LuetRepository
}

func NewLocalClient

func NewLocalClient(r *config.LuetRepository) *LocalClient

func (*LocalClient) DownloadArtifact

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

func (*LocalClient) DownloadFile

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

Jump to

Keyboard shortcuts

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