getters

package
v0.0.0-...-7e42488 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base64

type Base64 struct{}

Base64 implements a getter.Getter that converts an inline Base64 encoded string into a file.

func (*Base64) ClientMode

func (b *Base64) ClientMode(_ *url.URL) (getter.ClientMode, error)

ClientMode returns the mode based on the given URL. This is always returns ClientModeFile for this getter.

func (*Base64) Get

func (b *Base64) Get(_ string, _ *url.URL) error

Get downloads the given URL into the given directory. This always returns an error for this getter.

func (*Base64) GetFile

func (b *Base64) GetFile(destination string, source *url.URL) error

GetFile downloads the given URL into the given path. The URL must reference a single file.

func (*Base64) SetClient

func (b *Base64) SetClient(_ *getter.Client)

SetClient sets the client for this getter. This is a noop for this getter.

Jump to

Keyboard shortcuts

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