localfsblob

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Type   = "localFilesystemBlob"
	TypeV1 = Type + runtime.VersionSeparator + "v1"
)

Type is the access type of a blob in a local filesystem.

Variables

This section is empty.

Functions

func Decode added in v0.3.0

func Decode(data []byte) (*localblob.AccessSpec, error)

func New

func New(path string, media string) *localblob.AccessSpec

New creates a new localFilesystemBlob accessor.

Types

type AccessSpec

type AccessSpec struct {
	runtime.ObjectVersionedType `json:",inline"`
	// FileName is the
	Filename string `json:"fileName"`
	// MediaType is the media type of the object represented by the blob
	MediaType string `json:"mediaType"`
}

AccessSpec describes the access for a blob on the filesystem. Deprecated: use LocalBlob.

Jump to

Keyboard shortcuts

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