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) EnforceTransport(src ocm.ComponentVersionAccess, tgt ocm.ComponentVersionAccess) (bool, error)
- 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)
- func (h *Handler) UpdateVersion(src ocm.ComponentVersionAccess, tgt ocm.ComponentVersionAccess) (bool, error)
- type Options
- func (o *Options) ApplyTransferOption(target transferhandler.TransferOptions) error
- func (o *Options) GetScript() []byte
- func (o *Options) GetScriptFilesystem() vfs.FileSystem
- func (o *Options) NewOptions() transferhandler.TransferHandlerOptions
- func (o *Options) NewTransferHandler() (transferhandler.TransferHandler, error)
- func (o *Options) SetScript(data []byte)
- func (o *Options) SetScriptFilesystem(fs vfs.FileSystem)
- type ScriptFilesystemOption
- type ScriptOption
- type TransferOptionsCreator
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) EnforceTransport ¶ added in v0.7.0
func (h *Handler) EnforceTransport(src ocm.ComponentVersionAccess, tgt ocm.ComponentVersionAccess) (bool, error)
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, tgt ocm.Repository) (ocm.ComponentVersionAccess, transferhandler.TransferHandler, error)
func (*Handler) UpdateVersion ¶ added in v0.4.1
func (h *Handler) UpdateVersion(src ocm.ComponentVersionAccess, tgt ocm.ComponentVersionAccess) (bool, error)
type Options ¶
func (*Options) ApplyTransferOption ¶ added in v0.3.0
func (o *Options) ApplyTransferOption(target transferhandler.TransferOptions) error
func (*Options) GetScriptFilesystem ¶
func (o *Options) GetScriptFilesystem() vfs.FileSystem
func (*Options) NewOptions ¶ added in v0.4.0
func (o *Options) NewOptions() transferhandler.TransferHandlerOptions
func (*Options) NewTransferHandler ¶ added in v0.4.0
func (o *Options) NewTransferHandler() (transferhandler.TransferHandler, error)
func (*Options) SetScriptFilesystem ¶
func (o *Options) SetScriptFilesystem(fs vfs.FileSystem)
type ScriptFilesystemOption ¶
type ScriptFilesystemOption interface { SetScriptFilesystem(fs vfs.FileSystem) GetScriptFilesystem() vfs.FileSystem }
type ScriptOption ¶
type TransferOptionsCreator ¶ added in v0.4.0
type TransferOptionsCreator = transferhandler.SpecializedOptionsCreator[*Options, Options]
Click to show internal directories.
Click to hide internal directories.