direct

package
v1.118.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Export

func Export(ctx context.Context, url string, config *controller.Config) (*unstructured.Unstructured, error)

Export attempts to export the resource specified by url. The url format should match the Cloud-Asset-Inventory format: https://cloud.google.com/asset-inventory/docs/resource-name-format If url is not recognized or not implemented by a direct controller, this returns (nil, nil)

func IsDirect

func IsDirect(groupKind schema.GroupKind) bool

IsDirect returns true if this resource uses the direct-reconciliation model.

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

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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