xform

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsOwnerNotFound

func IsOwnerNotFound(err error) bool

func PathSegmentIsSlice

func PathSegmentIsSlice(segment string) bool

Types

type ARMConverter

type ARMConverter struct {
	Client client.Client
	Scheme *runtime.Scheme
}

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

Jump to

Keyboard shortcuts

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