fake

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const NotFound = "linknotfound.io/404"

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	Path    string
	Content []byte
	Meta    map[string]string
	Link    *string
}
func (fa *Artifact) CanonicalLink() string

func (*Artifact) JobPath

func (fa *Artifact) JobPath() string

func (*Artifact) Metadata

func (fa *Artifact) Metadata() (map[string]string, error)

func (*Artifact) ReadAll

func (fa *Artifact) ReadAll() ([]byte, error)

func (*Artifact) ReadAt

func (fa *Artifact) ReadAt(b []byte, off int64) (int, error)

func (*Artifact) ReadAtMost

func (fa *Artifact) ReadAtMost(n int64) ([]byte, error)

func (*Artifact) ReadTail

func (fa *Artifact) ReadTail(n int64) ([]byte, error)

func (*Artifact) Size

func (fa *Artifact) Size() (int64, error)

func (*Artifact) UpdateMetadata

func (fa *Artifact) UpdateMetadata(now map[string]string) error

func (*Artifact) UseContext

func (fa *Artifact) UseContext(ctx context.Context) error

Jump to

Keyboard shortcuts

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