registry

package
v1.120.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdapterForReference added in v1.120.0

func AdapterForReference(ctx context.Context, reader client.Reader, sourceNamespace string, resourceRef v1beta1.ResourceReference) (directbase.Adapter, error)

func AdapterForURL added in v1.120.0

func AdapterForURL(ctx context.Context, url string) (directbase.Adapter, error)

AdapterForURL will return a directbase.Adapter bound to the resource specified by the URL, or (nil, nil) if it is not recognized.

func GetModel

func GetModel(gk schema.GroupKind) (directbase.Model, error)

func Init

func Init(ctx context.Context, config *config.ControllerConfig) error

func IsDirectByGK

func IsDirectByGK(gk schema.GroupKind) bool

func IsIAMDirect

func IsIAMDirect(groupKind schema.GroupKind) bool

IsIAMDirect returns true if this resource uses the direct-reconciliation model for IAM.

func PreferredGVK

func PreferredGVK(gk schema.GroupKind) (schema.GroupVersionKind, bool)

func RegisterModel

func RegisterModel(gvk schema.GroupVersionKind, modelFn ModelFactoryFunc)

func SupportsIAM

func SupportsIAM(groupKind schema.GroupKind) (bool, error)

SupportsIAM returns true if this resource supports IAM (not all GCP resources do). An error will be returned if IsDirect(groupKind) is not true.

Types

type ModelFactoryFunc

type ModelFactoryFunc func(ctx context.Context, config *config.ControllerConfig) (directbase.Model, error)

Jump to

Keyboard shortcuts

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