utils

package
v0.0.0-...-09572fc Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	S3_FINALIZER  = "agill.apps.s3"
	IAM_FINALIZER = "agill.apps.iam"
)

Variables

This section is empty.

Functions

func AddFinalizer

func AddFinalizer(whichFinalizer string, client client.Client, runtimeObj runtime.Object) error

func BucketExists

func BucketExists(bucketName string, s3Client s3iface.S3API) (bool, error)

func CreateAccessKeys

func CreateAccessKeys(username string, iamapi iamiface.IAMAPI) (*iam.CreateAccessKeyOutput, error)

func CreateBucket

func CreateBucket(createIn *s3.CreateBucketInput, s3Client s3iface.S3API) error

func CreateIAMUser

func CreateIAMUser(input *iam.CreateUserInput, iamClient iamiface.IAMAPI) error

func DeleteAccessKey

func DeleteAccessKey(accessKey, username string, iamapi iamiface.IAMAPI) error

func DeleteAllAccessKeys

func DeleteAllAccessKeys(iamUser string, iamapi iamiface.IAMAPI) error

func DeleteAllUserInlinePolicies

func DeleteAllUserInlinePolicies(iamUser string, iamapi iamiface.IAMAPI) error

func DeleteIAMInlinePolicyFromUser

func DeleteIAMInlinePolicyFromUser(policyName, username string, iamClient iamiface.IAMAPI) error

func GetAccessKeyForUser

func GetAccessKeyForUser(username string, iamclient iamiface.IAMAPI) (string, error)

func GetBucketACL

func GetBucketACL(bucketName string, s3Client s3iface.S3API) (*s3.GetBucketAclOutput, error)

func IAMClient

func IAMClient(region string) iamiface.IAMAPI

func IAMUserExists

func IAMUserExists(username string, iamClient iamiface.IAMAPI) (bool, error)

func RemoveFinalizer

func RemoveFinalizer(whichFinalizer string, runtimeOj runtime.Object, client client.Client) error

func S3Client

func S3Client(region string) s3iface.S3API

func UpdateCr

func UpdateCr(runtimeObj runtime.Object, client client.Client) error

func UpdateCrStatus

func UpdateCrStatus(runtimeObj runtime.Object, client2 client.Client) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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