Documentation ¶
Index ¶
- func IsOwnerNotFound(err error) bool
- func PathSegmentIsSlice(segment string) bool
- type ARMConverter
- func (m *ARMConverter) ApplyOwnership(ctx context.Context, obj azcorev1.MetaObject) (bool, error)
- func (m *ARMConverter) AreOwnersReady(ctx context.Context, obj azcorev1.MetaObject) (bool, error)
- func (m *ARMConverter) FromResource(res *zips.Resource, obj azcorev1.MetaObject) error
- func (m *ARMConverter) ToResource(ctx context.Context, obj azcorev1.MetaObject) (*zips.Resource, error)
- type OwnerNotFoundError
- type TypeReferenceLocation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsOwnerNotFound ¶
func PathSegmentIsSlice ¶
Types ¶
type ARMConverter ¶
func NewARMConverter ¶
func NewARMConverter(client client.Client, scheme *runtime.Scheme) *ARMConverter
func (*ARMConverter) ApplyOwnership ¶
func (m *ARMConverter) ApplyOwnership(ctx context.Context, obj azcorev1.MetaObject) (bool, error)
func (*ARMConverter) AreOwnersReady ¶
func (m *ARMConverter) AreOwnersReady(ctx context.Context, obj azcorev1.MetaObject) (bool, error)
func (*ARMConverter) FromResource ¶
func (m *ARMConverter) FromResource(res *zips.Resource, obj azcorev1.MetaObject) error
func (*ARMConverter) ToResource ¶
func (m *ARMConverter) ToResource(ctx context.Context, obj azcorev1.MetaObject) (*zips.Resource, error)
type OwnerNotFoundError ¶
type OwnerNotFoundError struct {
Owner string
}
func (*OwnerNotFoundError) Error ¶
func (nmoe *OwnerNotFoundError) Error() string
func (*OwnerNotFoundError) Is ¶
func (nmoe *OwnerNotFoundError) Is(target error) bool
type TypeReferenceLocation ¶
type TypeReferenceLocation struct { JSONFieldName string TemplateFieldName string Path []string Group string Kind string IsOwned bool IsSlice bool }
func GetTypeReferenceData ¶
func GetTypeReferenceData(obj azcorev1.MetaObject) ([]TypeReferenceLocation, error)
func (*TypeReferenceLocation) JSONFields ¶
func (trl *TypeReferenceLocation) JSONFields() []string
func (*TypeReferenceLocation) TemplateFields ¶
func (trl *TypeReferenceLocation) TemplateFields() []string
func (*TypeReferenceLocation) WithinSlice ¶
func (trl *TypeReferenceLocation) WithinSlice() bool
WithinSlice returns true when the ref location is nested within a slice somewhere in it's path
Click to show internal directories.
Click to hide internal directories.