helper

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsResourcesGenerator

type AwsResourcesGenerator struct {
	// contains filtered or unexported fields
}

func NewAwsResourcesGenerator

func NewAwsResourcesGenerator(t ginkgo.GinkgoTInterface, region *string) *AwsResourcesGenerator

func (*AwsResourcesGenerator) AttachRolePolicy

func (g *AwsResourcesGenerator) AttachRolePolicy(roleName, policyArn string) error

func (*AwsResourcesGenerator) Cleanup

func (g *AwsResourcesGenerator) Cleanup(task func())

func (*AwsResourcesGenerator) CreateBucket

func (g *AwsResourcesGenerator) CreateBucket(name string) error

func (*AwsResourcesGenerator) CreateIAMRole

func (g *AwsResourcesGenerator) CreateIAMRole(name string, policy func() IAMPolicy) (string, error)

func (*AwsResourcesGenerator) CreatePolicy

func (g *AwsResourcesGenerator) CreatePolicy(name string, policy func() IAMPolicy) (string, error)

func (*AwsResourcesGenerator) DeleteBucket

func (g *AwsResourcesGenerator) DeleteBucket(name string) error

func (*AwsResourcesGenerator) DeleteIAMRole

func (g *AwsResourcesGenerator) DeleteIAMRole(name string) error

func (*AwsResourcesGenerator) DeleteObject

func (g *AwsResourcesGenerator) DeleteObject(bucketName, objectKey string) error

func (*AwsResourcesGenerator) DeletePolicy

func (g *AwsResourcesGenerator) DeletePolicy(arn string) error

func (*AwsResourcesGenerator) DetachRolePolicy

func (g *AwsResourcesGenerator) DetachRolePolicy(roleName, policyArn string) error

func (*AwsResourcesGenerator) EmptyBucket

func (g *AwsResourcesGenerator) EmptyBucket(name string) error

func (*AwsResourcesGenerator) GetIAMRole

func (g *AwsResourcesGenerator) GetIAMRole(name string) (string, error)

func (*AwsResourcesGenerator) ListAttachedRolePolicy

func (g *AwsResourcesGenerator) ListAttachedRolePolicy(roleName string) (string, error)

func (*AwsResourcesGenerator) ListObjects

func (g *AwsResourcesGenerator) ListObjects(name string) ([]*s3.Object, error)

type IAMPolicy

type IAMPolicy *string

func BucketExportPolicy

func BucketExportPolicy(bucketName string) IAMPolicy

func CloudProviderAccessPolicy

func CloudProviderAccessPolicy(atlasAWSAccountArn, atlasAssumedRoleExternalID string) IAMPolicy

Jump to

Keyboard shortcuts

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