iam

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client provides an interface with interacting with AWS

func New

func New(iamClient awsx.IAM, stsClient awsx.STS, role *v1alpha1.WorkloadIdentity, options *options.Options) (*Client, error)

New expects wrapped iam client, wrapped sts client, workload identity and returns them by packing them together

func (*Client) CreateOrUpdate

func (i *Client) CreateOrUpdate(ctx context.Context) (*RoleStatus, error)

CreateOrUpdate creates or updates the IAM roles

func (*Client) Delete

func (i *Client) Delete(ctx context.Context) error

Delete will be called by Finalizer that will delete the IAM role

type RoleStatus

type RoleStatus struct {
	Name      string
	ARN       string
	NeedsSync bool
}

RoleStatus returns iam role information

Jump to

Keyboard shortcuts

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