Documentation ¶
Index ¶
- func AssetPathFor(app core.App, fhash ref.FileHash) string
- func DecodeAsset(a *AssetModel, b []byte) error
- func DecodeConfigModelData(encoded []byte) ([]byte, error)
- func DecodeConfigModelSHA(encoded []byte) (ref.Sha256, error)
- type App
- type AssetModel
- type AssetModelInfo
- type AssetOpt
- type AssetRemover
- type AssetTpl
- type ConfigModel
- type ConfigTpl
- type Context
- type Cursor
- type Data
- type Flag
- type SHA
- type Service
- func (s Service) AssetPathFor(fhash ref.FileHash) string
- func (s *Service) Close() error
- func (s *Service) CreateFile(tx *Tx, fhash ref.FileHash, r io.Reader) error
- func (s *Service) DB() *Service
- func (s *Service) RemoveFile(fhash ref.FileHash) error
- func (s *Service) RunR(f func(*Tx) error) error
- func (s *Service) RunRW(f func(h *Tx) error) error
- type Step
- type StepList
- type StepListData
- type StepListTpl
- type StepTpl
- type Task
- type Tx
- func (tx *Tx) AssetMetadata() *internal.AssetMeta
- func (tx *Tx) CONFIGS() *bbolt.Bucket
- func (tx *Tx) C_SHA__OID() *bbolt.Bucket
- func (tx *Tx) DB() *Service
- func (tx *Tx) FILES() *bbolt.Bucket
- func (tx *Tx) F_BASENAME_OID() *bbolt.Bucket
- func (tx *Tx) F_FHASH_OID() *bbolt.Bucket
- func (tx *Tx) F_FHASH_TSSHA__OID() *bbolt.Bucket
- func (tx *Tx) F_SHA__OID() *bbolt.Bucket
- func (tx *Tx) F_URL_OID() *bbolt.Bucket
- func (tx *Tx) T_COID_FOID() *bbolt.Bucket
- func (tx *Tx) T_FOID_TAG() *bbolt.Bucket
- func (tx *Tx) T_TAG__FOID() *bbolt.Bucket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeAsset ¶
func DecodeAsset(a *AssetModel, b []byte) error
func DecodeConfigModelData ¶
Types ¶
type AssetModel ¶
type AssetModel struct { Flag OID ref.OID OriginOID ref.OID SHA ref.Sha256 DepSHA ref.Sha256 Created ref.Time StepListData StepListData FHash ref.FileHash Basename string Url string ExtData []byte Tags []string }
func (*AssetModel) CompareCreated ¶
func (a *AssetModel) CompareCreated(other *AssetModel) int
func (*AssetModel) Filename ¶
func (a *AssetModel) Filename() string
type AssetModelInfo ¶
func DecodeAssetFast ¶
func DecodeAssetFast(b []byte) (AssetModelInfo, error)
type AssetOpt ¶
type AssetOpt func(tx *Tx, model *AssetModel) error
type AssetRemover ¶
type AssetRemover struct{}
func (AssetRemover) RemoveObject ¶
func (r AssetRemover) RemoveObject(tx *Tx, model *AssetModel) error
type AssetTpl ¶
type AssetTpl struct { Origin *AssetModel TransSeq StepListTpl Basename string Url string ExtData []byte Content content.Content // contains filtered or unexported fields }
func (AssetTpl) Create ¶
func (template AssetTpl) Create() Task[*AssetModel]
type ConfigModel ¶
func DecodeConfigModel ¶
func DecodeConfigModel(oid ref.OID, encoded []byte) (*ConfigModel, error)
type ConfigTpl ¶
type ConfigTpl struct {
O lazy.MustDataSHAObject
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (Service) AssetPathFor ¶
func (*Service) CreateFile ¶
func (*Service) RemoveFile ¶
type StepListData ¶
type StepListData []byte
func (StepListData) Decode ¶
func (d StepListData) Decode() StepList
type StepListTpl ¶
type StepListTpl interface { MustSHA() ref.Sha256 SupportsRemove() bool // contains filtered or unexported methods }
func NewStepListTpl ¶
func NewStepListTpl(list []*StepTpl, SupportsRemove bool) StepListTpl
type StepTpl ¶
type StepTpl struct { Config ConfigTpl Params lazy.MustDataSHAObject }
type Tx ¶
func (*Tx) AssetMetadata ¶
func (*Tx) C_SHA__OID ¶
func (*Tx) F_BASENAME_OID ¶
func (*Tx) F_FHASH_OID ¶
func (*Tx) F_FHASH_TSSHA__OID ¶
func (*Tx) F_SHA__OID ¶
func (*Tx) T_COID_FOID ¶
func (*Tx) T_FOID_TAG ¶
func (*Tx) T_TAG__FOID ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.