iam

package
v2.38.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSSHKeyDestroy

func CheckSSHKeyDestroy(tt *acctest.TestTools) resource.TestCheckFunc

func CheckSSHKeyExists

func CheckSSHKeyExists(tt *acctest.TestTools, n string) resource.TestCheckFunc

func FakeSideProjectProviders

func FakeSideProjectProviders(ctx context.Context, tt *acctest.TestTools, project *account.Project, iamAPIKey *iamSDK.APIKey) map[string]func() (*schema.Provider, error)

FakeSideProjectProviders creates a new provider alias "side" with a new Config that will use the given project and API key as default profile configuration.

This is useful to test resources that need to create resources in another project.

Types

type FakeSideProjectTerminateFunc

type FakeSideProjectTerminateFunc func() error

func CreateFakeIAMManager

func CreateFakeIAMManager(tt *acctest.TestTools) (*account.Project, *iamSDK.APIKey, FakeSideProjectTerminateFunc, error)

CreateFakeIAMManager creates a temporary project with a temporary IAM application and policy manager.

The returned function is a cleanup function that should be called when to delete the project.

func CreateFakeSideProject

func CreateFakeSideProject(tt *acctest.TestTools) (*account.Project, *iamSDK.APIKey, FakeSideProjectTerminateFunc, error)

CreateFakeSideProject creates a temporary project with a temporary IAM application and policy.

The returned function is a cleanup function that should be called when to delete the project.

Jump to

Keyboard shortcuts

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