code

package
v0.0.0-...-d691e2b Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DriverBos   = "bos"
	DriverLocal = "filesystem"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	BasePath string
}

Manager

func NewManager

func NewManager(basePath string) *Manager

NewManager

func (*Manager) CheckCode

func (codeMgr *Manager) CheckCode(ctx *context.Context, filename, codeSha256 string) bool

CheckCode

func (*Manager) CreateCodeCompeleteTag

func (codeMgr *Manager) CreateCodeCompeleteTag(path, codeSha256 string) error

CreateCodeCompeleteTag

func (*Manager) FetchCode

func (codeMgr *Manager) FetchCode(ctx *context.Context, code *api.CodeStorage) (string, error)

FetchCode

func (*Manager) FindCode

func (codeMgr *Manager) FindCode(path, codeSha256 string) bool

FindCode

func (*Manager) FindCodeCompeleteTag

func (codeMgr *Manager) FindCodeCompeleteTag(path, codeSha256 string) bool

FindCodeCompeleteTag

func (*Manager) RemoveCodeCompeleteTag

func (codeMgr *Manager) RemoveCodeCompeleteTag(path, codeSha256 string) error

RemoveCodeCompeleteTag

func (*Manager) UnzipCode

func (codeMgr *Manager) UnzipCode(ctx *context.Context, filename, target string) error

UnzipCode

type ManagerInterface

type ManagerInterface interface {
	FetchCode(ctx *context.Context, code *api.CodeStorage) (string, error)
	CheckCode(ctx *context.Context, filename, codeSha256 string) bool
	FindCodeCompeleteTag(path, codeSha256 string) bool
	CreateCodeCompeleteTag(path, codeSha256 string) error
	RemoveCodeCompeleteTag(path, codeSha256 string) error
	FindCode(path, codeSha256 string) bool
	UnzipCode(ctx *context.Context, filename, target string) error
}

ManagerInterface

Jump to

Keyboard shortcuts

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