standard

package
v2.0.0-...-98cc131 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddOmittedAccessTypes

func AddOmittedAccessTypes(list ...string) transferhandler.TransferOption

func KeepGlobalAccess

func KeepGlobalAccess(args ...bool) transferhandler.TransferOption

func LocalResourcesByValue

func LocalResourcesByValue(args ...bool) transferhandler.TransferOption

func OmitAccessTypes

func OmitAccessTypes(list ...string) transferhandler.TransferOption

func Overwrite

func Overwrite(args ...bool) transferhandler.TransferOption

func Recursive

func Recursive(args ...bool) transferhandler.TransferOption

func ResourcesByValue

func ResourcesByValue(args ...bool) transferhandler.TransferOption

func SourcesByValue

func SourcesByValue(args ...bool) transferhandler.TransferOption

func StopOnExistingVersion

func StopOnExistingVersion(args ...bool) transferhandler.TransferOption

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewDefaultHandler

func NewDefaultHandler(opts *Options) *Handler

func (*Handler) GlobalAccess

func (h *Handler) GlobalAccess(ctx ocm.Context, m ocm.AccessMethod) ocm.AccessSpec

func (*Handler) HandleTransferResource

func (h *Handler) HandleTransferResource(r ocm.ResourceAccess, m ocm.AccessMethod, hint string, t ocm.ComponentVersionAccess) error

func (*Handler) HandleTransferSource

func (h *Handler) HandleTransferSource(r ocm.SourceAccess, m ocm.AccessMethod, hint string, t ocm.ComponentVersionAccess) error

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)

type KeepGlobalAccessOption

type KeepGlobalAccessOption interface {
	SetKeepGlobalAccess(bool)
	IsKeepGlobalAccess() bool
}

type LocalResourcesByValueOption

type LocalResourcesByValueOption interface {
	SetLocalResourcesByValue(bool)
	IsLocalResourcesByValue() bool
}

type OmitAccessTypesOption

type OmitAccessTypesOption interface {
	SetOmittedAccessTypes(...string)
	GetOmittedAccessTypes() []string
}

type Options

type Options struct {
	// contains filtered or unexported fields
}

func (*Options) Apply

func (o *Options) Apply(opts ...transferhandler.TransferOption) error

func (*Options) ApplyTransferOption

func (o *Options) ApplyTransferOption(target transferhandler.TransferOptions) error

func (*Options) GetOmittedAccessTypes

func (o *Options) GetOmittedAccessTypes() []string

func (*Options) GetResolver

func (o *Options) GetResolver() ocm.ComponentVersionResolver

func (*Options) IsAccessTypeOmitted

func (o *Options) IsAccessTypeOmitted(t string) bool

func (*Options) IsKeepGlobalAccess

func (o *Options) IsKeepGlobalAccess() bool

func (*Options) IsLocalResourcesByValue

func (o *Options) IsLocalResourcesByValue() bool

func (*Options) IsOverwrite

func (o *Options) IsOverwrite() bool

func (*Options) IsRecursive

func (o *Options) IsRecursive() bool

func (*Options) IsResourcesByValue

func (o *Options) IsResourcesByValue() bool

func (*Options) IsSourcesByValue

func (o *Options) IsSourcesByValue() bool

func (*Options) IsStopOnExistingVersion

func (o *Options) IsStopOnExistingVersion() bool

func (*Options) SetKeepGlobalAccess

func (o *Options) SetKeepGlobalAccess(keepGlobalAccess bool)

func (*Options) SetLocalResourcesByValue

func (o *Options) SetLocalResourcesByValue(resourcesByValue bool)

func (*Options) SetOmittedAccessTypes

func (o *Options) SetOmittedAccessTypes(list ...string)

func (*Options) SetOverwrite

func (o *Options) SetOverwrite(overwrite bool)

func (*Options) SetRecursive

func (o *Options) SetRecursive(recursive bool)

func (*Options) SetResolver

func (o *Options) SetResolver(resolver ocm.ComponentVersionResolver)

func (*Options) SetResourcesByValue

func (o *Options) SetResourcesByValue(resourcesByValue bool)

func (*Options) SetSourcesByValue

func (o *Options) SetSourcesByValue(sourcesByValue bool)

func (*Options) SetStopOnExistingVersion

func (o *Options) SetStopOnExistingVersion(stopOnExistingVersion bool)

type OverwriteOption

type OverwriteOption interface {
	SetOverwrite(bool)
	IsOverwrite() bool
}

type RecursiveOption

type RecursiveOption interface {
	SetRecursive(bool)
	IsRecursive() bool
}

type ResolverOption

type ResolverOption interface {
	GetResolver() ocm.ComponentVersionResolver
	SetResolver(ocm.ComponentVersionResolver)
}

type ResourcesByValueOption

type ResourcesByValueOption interface {
	SetResourcesByValue(bool)
	IsResourcesByValue() bool
}

type SourcesByValueOption

type SourcesByValueOption interface {
	SetSourcesByValue(bool)
	IsSourcesByValue() bool
}

type StopOnExistingVersionOption

type StopOnExistingVersionOption interface {
	SetStopOnExistingVersion(bool)
	IsStopOnExistingVersion() bool
}

Jump to

Keyboard shortcuts

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