localfsblob

package
v0.0.0-...-877fc11 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 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

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