assets

package
v1.34.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseAsset

type BaseAsset struct {
	Length      int64
	AssetName   string
	TargetDir   string
	TargetName  string
	Permissions string
	// contains filtered or unexported fields
}

func (*BaseAsset) GetAssetName

func (b *BaseAsset) GetAssetName() string

func (*BaseAsset) GetPermissions

func (b *BaseAsset) GetPermissions() string

func (*BaseAsset) GetTargetDir

func (b *BaseAsset) GetTargetDir() string

func (*BaseAsset) GetTargetName

func (b *BaseAsset) GetTargetName() string

type CopyableFile

type CopyableFile interface {
	io.Reader
	GetLength() int64
	GetAssetName() string
	GetTargetDir() string
	GetTargetName() string
	GetPermissions() string
}

type FileAsset

type FileAsset struct {
	BaseAsset
}

func NewFileAsset

func NewFileAsset(assetName, targetDir, targetName, permissions string) (*FileAsset, error)

func (*FileAsset) GetLength

func (f *FileAsset) GetLength() int64

func (*FileAsset) Read

func (f *FileAsset) Read(p []byte) (int, error)

type MemoryAsset

type MemoryAsset struct {
	BaseAsset
}

func (*MemoryAsset) GetLength

func (m *MemoryAsset) GetLength() int64

func (*MemoryAsset) Read

func (m *MemoryAsset) Read(p []byte) (int, error)

Jump to

Keyboard shortcuts

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