remotefile

package
v0.74.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

func (*Client) Resolve

func (c *Client) Resolve(u string) ([]byte, error)

resolve and return the contents of a remote file which can be used later, in the pipeline

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

TODO: could make this more generic since this is shared with the container resolver

func NewResolver

func NewResolver() *Resolver

func (*Resolver) Add

func (r *Resolver) Add(url string)

func (*Resolver) Finish

func (r *Resolver) Finish() []Spec

type Spec

type Spec struct {
	URL             string
	Content         []byte
	ResolutionError *clienterrors.Error
}

Jump to

Keyboard shortcuts

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