filesystem

package
v0.0.0-...-26336ce Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEmptyImageLink() string

Types

type Cloudinary

type Cloudinary struct {
	System string
	Path   string
}

func (*Cloudinary) Check

func (cldSystem *Cloudinary) Check()

func (*Cloudinary) GetHostURL

func (cldSystem *Cloudinary) GetHostURL() string

func (*Cloudinary) GetPath

func (cldSystem *Cloudinary) GetPath() string

func (*Cloudinary) GetSystem

func (cldSystem *Cloudinary) GetSystem() string

func (*Cloudinary) Upload

func (cldSystem *Cloudinary) Upload(ctx context.Context, originFileName string, uploadFile io.Reader) *StaticFile

type FileSystem

type FileSystem interface {
	Check()
	GetSystem() string
	GetPath() string
	Upload(context.Context, string, io.Reader) *StaticFile
	GetHostURL() string
}

func Create

func Create(system string) FileSystem

type Local

type Local struct {
	System string
	Path   string
}

func (*Local) Check

func (lSystem *Local) Check()

func (*Local) GetHostURL

func (lSystem *Local) GetHostURL() string

func (*Local) GetPath

func (lSystem *Local) GetPath() string

func (*Local) GetSystem

func (lSystem *Local) GetSystem() string

func (*Local) Upload

func (lSystem *Local) Upload(ctx context.Context, originFileName string, uploadFile io.Reader) *StaticFile

type StaticFile

type StaticFile struct {
	Reference   *string
	System      string
	Type        string
	Path        string
	Name        string
	ThirdPatyID string
}

Jump to

Keyboard shortcuts

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