Documentation
¶
Index ¶
- type ApplyFunc
- type ApplyOptions
- type Container
- func (o *Container) Apply(ctx context.Context, opts *ApplyOptions)
- func (o *Container) Delete(ctx context.Context, id int64) ContainerElementInterface
- func (o *Container) FromFormat(ctx context.Context, format format.Interface) ContainerElementInterface
- func (o *Container) Get(ctx context.Context, exemplar ContainerElementInterface) ContainerElementInterface
- func (o *Container) GetFromFormat(ctx context.Context, format format.Interface) ContainerElementInterface
- func (o *Container) GetIDMap() IDMapInterface
- func (o *Container) GetLocalMatchingRemote(ctx context.Context, object format.Interface) (string, bool)
- func (o *Container) GetShallow() ContainerObjectInterface
- func (o *Container) Init(self NodeInterface, root RootInterface, parent NodeInterface, ...)
- func (o *Container) List(ctx context.Context) map[int64]ContainerElementInterface
- func (o *Container) MapID(ctx context.Context, destination ContainerInterface, object format.Interface)
- func (o *Container) MapReferences(ctx context.Context, object format.Interface, ...) format.ReferencePaths
- func (o *Container) Mirror(ctx context.Context, origin ContainerInterface, options *MirrorOptions)
- func (o *Container) ObjectToElement(object ContainerObjectInterface) ContainerElementInterface
- func (o *Container) Put(ctx context.Context, element, existing ContainerElementInterface) ContainerElementInterface
- func (o *Container) RemapForgePath(ctx context.Context, path format.ForgePath) format.ForgePath
- func (o *Container) ResolveUpsert(ctx context.Context, origin ContainerInterface, object format.Interface, ...) ContainerElementInterface
- func (o *Container) ToFormat(ctx context.Context, element ContainerElementInterface) format.Interface
- func (o *Container) Upsert(ctx context.Context, object format.Interface) ContainerElementInterface
- func (o *Container) UpsertElement(ctx context.Context, element ContainerElementInterface) ContainerElementInterface
- func (o *Container) Walk(ctx context.Context, opts *WalkOptions)
- type ContainerElement
- func (o *ContainerElement) Apply(ctx context.Context, opts *ApplyOptions)
- func (o *ContainerElement) ApplyChild(ctx context.Context, opts *ApplyOptions)
- func (o *ContainerElement) DefineChild(name string, element NodeInterface)
- func (o *ContainerElement) DeleteObject(ctx context.Context) ContainerObjectInterface
- func (o *ContainerElement) Equals(other ContainerElementInterface) bool
- func (o *ContainerElement) GetID() int64
- func (o *ContainerElement) GetIDString() string
- func (o *ContainerElement) GetObject(ctx context.Context) ContainerObjectInterface
- func (o *ContainerElement) GetShallow() ContainerObjectInterface
- func (o *ContainerElement) Init(self NodeInterface, root RootInterface, parent NodeInterface, ...)
- func (o *ContainerElement) Mirror(ctx context.Context, other ContainerElementInterface, options *MirrorOptions)
- func (o *ContainerElement) PutObject(ctx context.Context, existing ContainerObjectInterface) ContainerObjectInterface
- func (o *ContainerElement) Set(object ContainerObjectInterface)
- func (o *ContainerElement) SetID(id int64)
- func (o *ContainerElement) SetIDString(id string)
- func (o *ContainerElement) ToFormat() format.Interface
- func (o *ContainerElement) Walk(ctx context.Context, opts *WalkOptions)
- func (o *ContainerElement) WalkChild(ctx context.Context, opts *WalkOptions)
- type ContainerElementInterface
- type ContainerInterface
- type ContainerObjectInterface
- type DefaultIDMap
- type DriverInterface
- type ElementFactoryType
- type IDMapInterface
- type MirrorOptions
- func (o *MirrorOptions) DelayedAppend(fun util.DelayedFunc)
- func (o *MirrorOptions) DelayedCall()
- func (o MirrorOptions) DelayedEmpty() bool
- func (o MirrorOptions) GetRecurse() bool
- func (o MirrorOptions) GetResolve() bool
- func (o *MirrorOptions) LastSelector() ContainerElementInterface
- func (o *MirrorOptions) PopSelector() ContainerElementInterface
- func (o *MirrorOptions) SelectorLen() int
- type Node
- func (o *Node) GetForgePath() format.ForgePath
- func (o *Node) GetLogger() *config_types.Logger
- func (o *Node) GetParent() ParentInterface
- func (o *Node) GetParentObjects() []ContainerObjectInterface
- func (o *Node) GetProvider() ProviderInterface
- func (o *Node) GetRoot() RootInterface
- func (o *Node) GetSelf() NodeInterface
- func (o *Node) Init(self NodeInterface, root RootInterface, parent NodeInterface, ...)
- func (o *Node) IsNil() bool
- func (o *Node) NewFormat(int64) format.Interface
- type NodeInterface
- type ParentInterface
- type ProviderInterface
- type RemapFailed
- type RootInterface
- type WalkFunc
- type WalkOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyOptions ¶
func (*ApplyOptions) PopID ¶
func (o *ApplyOptions) PopID() int64
func (*ApplyOptions) PopName ¶
func (o *ApplyOptions) PopName() string
type Container ¶
type Container struct { Node // contains filtered or unexported fields }
func (*Container) Delete ¶
func (o *Container) Delete(ctx context.Context, id int64) ContainerElementInterface
func (*Container) FromFormat ¶
func (*Container) Get ¶
func (o *Container) Get(ctx context.Context, exemplar ContainerElementInterface) ContainerElementInterface
func (*Container) GetFromFormat ¶
func (*Container) GetIDMap ¶
func (o *Container) GetIDMap() IDMapInterface
func (*Container) GetLocalMatchingRemote ¶
func (*Container) GetShallow ¶
func (o *Container) GetShallow() ContainerObjectInterface
func (*Container) Init ¶
func (o *Container) Init(self NodeInterface, root RootInterface, parent NodeInterface, elementFactory ElementFactoryType, provider ProviderInterface)
func (*Container) List ¶
func (o *Container) List(ctx context.Context) map[int64]ContainerElementInterface
func (*Container) MapReferences ¶
func (o *Container) MapReferences(ctx context.Context, object format.Interface, referencePaths format.ReferencePaths) format.ReferencePaths
func (*Container) Mirror ¶
func (o *Container) Mirror(ctx context.Context, origin ContainerInterface, options *MirrorOptions)
func (*Container) ObjectToElement ¶
func (o *Container) ObjectToElement(object ContainerObjectInterface) ContainerElementInterface
func (*Container) Put ¶
func (o *Container) Put(ctx context.Context, element, existing ContainerElementInterface) ContainerElementInterface
func (*Container) RemapForgePath ¶
func (*Container) ResolveUpsert ¶
func (o *Container) ResolveUpsert(ctx context.Context, origin ContainerInterface, object format.Interface, referencePaths format.ReferencePaths, options *MirrorOptions) ContainerElementInterface
func (*Container) UpsertElement ¶
func (o *Container) UpsertElement(ctx context.Context, element ContainerElementInterface) ContainerElementInterface
type ContainerElement ¶
type ContainerElement struct { Node // contains filtered or unexported fields }
func (*ContainerElement) Apply ¶
func (o *ContainerElement) Apply(ctx context.Context, opts *ApplyOptions)
func (*ContainerElement) ApplyChild ¶
func (o *ContainerElement) ApplyChild(ctx context.Context, opts *ApplyOptions)
func (*ContainerElement) DefineChild ¶
func (o *ContainerElement) DefineChild(name string, element NodeInterface)
func (*ContainerElement) DeleteObject ¶
func (o *ContainerElement) DeleteObject(ctx context.Context) ContainerObjectInterface
func (*ContainerElement) Equals ¶
func (o *ContainerElement) Equals(other ContainerElementInterface) bool
func (*ContainerElement) GetID ¶
func (o *ContainerElement) GetID() int64
func (*ContainerElement) GetIDString ¶
func (o *ContainerElement) GetIDString() string
func (*ContainerElement) GetObject ¶
func (o *ContainerElement) GetObject(ctx context.Context) ContainerObjectInterface
func (*ContainerElement) GetShallow ¶
func (o *ContainerElement) GetShallow() ContainerObjectInterface
func (*ContainerElement) Init ¶
func (o *ContainerElement) Init(self NodeInterface, root RootInterface, parent NodeInterface, provider ProviderInterface)
func (*ContainerElement) Mirror ¶
func (o *ContainerElement) Mirror(ctx context.Context, other ContainerElementInterface, options *MirrorOptions)
func (*ContainerElement) PutObject ¶
func (o *ContainerElement) PutObject(ctx context.Context, existing ContainerObjectInterface) ContainerObjectInterface
func (*ContainerElement) Set ¶
func (o *ContainerElement) Set(object ContainerObjectInterface)
func (*ContainerElement) SetID ¶
func (o *ContainerElement) SetID(id int64)
func (*ContainerElement) SetIDString ¶
func (o *ContainerElement) SetIDString(id string)
func (*ContainerElement) ToFormat ¶
func (o *ContainerElement) ToFormat() format.Interface
func (*ContainerElement) Walk ¶
func (o *ContainerElement) Walk(ctx context.Context, opts *WalkOptions)
func (*ContainerElement) WalkChild ¶
func (o *ContainerElement) WalkChild(ctx context.Context, opts *WalkOptions)
type ContainerElementInterface ¶
type ContainerElementInterface interface { GetID() int64 SetID(int64) GetIDString() string SetIDString(string) IsNil() bool ToFormat() format.Interface NewFormat(int64) format.Interface Equals(ContainerElementInterface) bool Mirror(context.Context, ContainerElementInterface, *MirrorOptions) Walk(context.Context, *WalkOptions) Apply(context.Context, *ApplyOptions) GetShallow() ContainerObjectInterface Set(ContainerObjectInterface) GetObject(context.Context) ContainerObjectInterface PutObject(context.Context, ContainerObjectInterface) ContainerObjectInterface DeleteObject(context.Context) ContainerObjectInterface GetParent() ParentInterface GetParentObjects() []ContainerObjectInterface GetForgePath() format.ForgePath GetProvider() ProviderInterface GetRoot() RootInterface GetSelf() NodeInterface }
type ContainerInterface ¶
type ContainerInterface interface { NewFormat(int64) format.Interface ToFormat(context.Context, ContainerElementInterface) format.Interface List(ctx context.Context) map[int64]ContainerElementInterface GetIDMap() IDMapInterface MapID(context.Context, ContainerInterface, format.Interface) MapReferences(context.Context, format.Interface, format.ReferencePaths) format.ReferencePaths GetLocalMatchingRemote(context.Context, format.Interface) (string, bool) }
type DefaultIDMap ¶
type DefaultIDMap struct{}
func (*DefaultIDMap) Load ¶
func (o *DefaultIDMap) Load()
func (*DefaultIDMap) Save ¶
func (o *DefaultIDMap) Save()
func (*DefaultIDMap) Update ¶
func (o *DefaultIDMap) Update(from, to int64)
type DriverInterface ¶
type DriverInterface interface { Init(config_types.OptionsInterface) GetName() string GetPerPage() int GetOptions() config_types.OptionsInterface SetOptions(options config_types.OptionsInterface) GetProvider(string, ProviderInterface) ProviderInterface }
type ElementFactoryType ¶
type ElementFactoryType func() ContainerElementInterface
type IDMapInterface ¶
type MirrorOptions ¶
type MirrorOptions struct {
// contains filtered or unexported fields
}
func NewMirrorOptions ¶
func NewMirrorOptions(selectors ...ContainerElementInterface) *MirrorOptions
func NewMirrorOptionsRecurse ¶
func NewMirrorOptionsRecurse(selectors ...ContainerElementInterface) *MirrorOptions
func (*MirrorOptions) DelayedAppend ¶
func (o *MirrorOptions) DelayedAppend(fun util.DelayedFunc)
func (*MirrorOptions) DelayedCall ¶
func (o *MirrorOptions) DelayedCall()
func (MirrorOptions) DelayedEmpty ¶
func (o MirrorOptions) DelayedEmpty() bool
func (MirrorOptions) GetRecurse ¶
func (o MirrorOptions) GetRecurse() bool
func (MirrorOptions) GetResolve ¶
func (o MirrorOptions) GetResolve() bool
func (*MirrorOptions) LastSelector ¶
func (o *MirrorOptions) LastSelector() ContainerElementInterface
func (*MirrorOptions) PopSelector ¶
func (o *MirrorOptions) PopSelector() ContainerElementInterface
func (*MirrorOptions) SelectorLen ¶
func (o *MirrorOptions) SelectorLen() int
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) GetForgePath ¶
func (*Node) GetLogger ¶
func (o *Node) GetLogger() *config_types.Logger
func (*Node) GetParent ¶
func (o *Node) GetParent() ParentInterface
func (*Node) GetParentObjects ¶
func (o *Node) GetParentObjects() []ContainerObjectInterface
func (*Node) GetProvider ¶
func (o *Node) GetProvider() ProviderInterface
func (*Node) GetRoot ¶
func (o *Node) GetRoot() RootInterface
func (*Node) GetSelf ¶
func (o *Node) GetSelf() NodeInterface
func (*Node) Init ¶
func (o *Node) Init(self NodeInterface, root RootInterface, parent NodeInterface, provider ProviderInterface)
type NodeInterface ¶
type NodeInterface interface { ParentInterface GetRoot() RootInterface GetSelf() NodeInterface NewFormat(int64) format.Interface Walk(context.Context, *WalkOptions) Apply(context.Context, *ApplyOptions) }
type ParentInterface ¶
type ParentInterface interface { IsNil() bool GetProvider() ProviderInterface GetParent() ParentInterface GetShallow() ContainerObjectInterface GetParentObjects() []ContainerObjectInterface GetForgePath() format.ForgePath }
type ProviderInterface ¶
type ProviderInterface interface { GetName() string GetLocalMatchingRemote(ctx context.Context, format format.Interface, parents ...ContainerObjectInterface) (string, bool) ToFormat(ctx context.Context, object ContainerObjectInterface) format.Interface FromFormat(ctx context.Context, format format.Interface) ContainerObjectInterface Equals(a, b ContainerObjectInterface) bool GetObjects(ctx context.Context, page int, parents ...ContainerObjectInterface) []ContainerObjectInterface Get(ctx context.Context, exemplar ContainerObjectInterface, parents ...ContainerObjectInterface) ContainerObjectInterface Put(ctx context.Context, object, existing ContainerObjectInterface, parents ...ContainerObjectInterface) ContainerObjectInterface Delete(ctx context.Context, object ContainerObjectInterface, parents ...ContainerObjectInterface) ContainerObjectInterface ProcessObject(ctx context.Context, object ContainerObjectInterface, parents ...ContainerObjectInterface) GetImplementation() any GetIDMap(parents ...ContainerObjectInterface) IDMapInterface }
type RemapFailed ¶
type RemapFailed string
type RootInterface ¶
type RootInterface interface { GetLogger() *config_types.Logger GetFeatures() config_types.Features GetDriver() DriverInterface GetPerPage() int Walk(context.Context, *WalkOptions) Apply(context.Context, *ApplyOptions) }
type WalkOptions ¶
type WalkOptions struct { ApplyOptions Explore bool }
func NewWalkOptions ¶
func NewWalkOptions(path format.ForgePath, fun ApplyFunc, explore bool) *WalkOptions
Click to show internal directories.
Click to hide internal directories.