Documentation ¶
Index ¶
- func New(opts ...transferhandler.TransferOption) (transferhandler.TransferHandler, error)
- func Script(data []byte) transferhandler.TransferOption
- func ScriptByFile(path string, fss ...vfs.FileSystem) transferhandler.TransferOption
- func ScriptFilesystem(fs vfs.FileSystem) transferhandler.TransferOption
- type Handler
- func (h *Handler) Eval(binding map[string]interface{}) (spiffing.Node, error)
- func (h *Handler) EvalBool(mode string, binding map[string]interface{}, key string) (bool, error)
- func (h *Handler) EvalRecursion(mode string, binding map[string]interface{}, key string) (bool, []byte, []byte, error)
- func (h *Handler) OverwriteVersion(src ocm.ComponentVersionAccess, tgt ocm.ComponentVersionAccess) (bool, error)
- func (h *Handler) TransferResource(src ocm.ComponentVersionAccess, a ocm.AccessSpec, r ocm.ResourceAccess) (bool, error)
- func (h *Handler) TransferSource(src ocm.ComponentVersionAccess, a ocm.AccessSpec, r ocm.SourceAccess) (bool, error)
- func (h *Handler) TransferVersion(repo ocm.Repository, src ocm.ComponentVersionAccess, ...) (ocm.ComponentVersionAccess, transferhandler.TransferHandler, error)
- type Options
- type ScriptFilesystemOption
- type ScriptOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(opts ...transferhandler.TransferOption) (transferhandler.TransferHandler, error)
func Script ¶
func Script(data []byte) transferhandler.TransferOption
func ScriptByFile ¶
func ScriptByFile(path string, fss ...vfs.FileSystem) transferhandler.TransferOption
func ScriptFilesystem ¶
func ScriptFilesystem(fs vfs.FileSystem) transferhandler.TransferOption
Types ¶
type Handler ¶
func (*Handler) EvalRecursion ¶
func (*Handler) OverwriteVersion ¶
func (h *Handler) OverwriteVersion(src ocm.ComponentVersionAccess, tgt ocm.ComponentVersionAccess) (bool, error)
func (*Handler) TransferResource ¶
func (h *Handler) TransferResource(src ocm.ComponentVersionAccess, a ocm.AccessSpec, r ocm.ResourceAccess) (bool, error)
func (*Handler) TransferSource ¶
func (h *Handler) TransferSource(src ocm.ComponentVersionAccess, a ocm.AccessSpec, r ocm.SourceAccess) (bool, error)
func (*Handler) TransferVersion ¶
func (h *Handler) TransferVersion(repo ocm.Repository, src ocm.ComponentVersionAccess, meta *compdesc.ComponentReference) (ocm.ComponentVersionAccess, transferhandler.TransferHandler, error)
type Options ¶
func (*Options) GetScriptFilesystem ¶
func (o *Options) GetScriptFilesystem() vfs.FileSystem
func (*Options) SetScriptFilesystem ¶
func (o *Options) SetScriptFilesystem(fs vfs.FileSystem)
type ScriptFilesystemOption ¶
type ScriptFilesystemOption interface { SetScriptFilesystem(fs vfs.FileSystem) GetScriptFilesystem() vfs.FileSystem }
type ScriptOption ¶
Click to show internal directories.
Click to hide internal directories.