asset

package
v0.9.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeJSON

func EncodeJSON(any interface{}) ([]byte, error)

func EncodeYAML

func EncodeYAML(any interface{}) ([]byte, error)

Types

type File

type File struct {
	Content string
	URL     string
}

func NewFile

func NewFile(URL string, content string) *File

func (*File) Validate

func (f *File) Validate() error

type Files

type Files []*File

func (*Files) Append

func (f *Files) Append(file *File)

func (*Files) Reset

func (f *Files) Reset()

func (Files) Upload

func (f Files) Upload(ctx context.Context, fs afs.Service) error

Jump to

Keyboard shortcuts

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