Documentation
¶
Overview ¶
Package storage is used to store and retrieve built Scale Functions
Index ¶
- Constants
- Variables
- type Entry
- type Storage
- func (s *Storage) Delete(name string, tag string, org string, hash string) error
- func (s *Storage) Get(name string, tag string, org string, hash string) (*Entry, error)
- func (s *Storage) List() ([]Entry, error)
- func (s *Storage) Put(name string, tag string, org string, hash string, sf *scalefunc.ScaleFunc) error
Constants ¶
View Source
const (
DefaultCacheDirectory = ".config/scale/functions"
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
BaseDirectory string
}
Storage is used to store and retrieve built Scale Functions
var (
Default *Storage
)
func (*Storage) Get ¶
Get returns the Scale Function with the given name, tag, and organization. The hash parameter is optional and can be used to check for a specific hash.
Click to show internal directories.
Click to hide internal directories.