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: 11 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 {
	Client *gcpx.Client
	// contains filtered or unexported fields
}

Client for IAM

func New

func New(p *gcpx.Client) *Client

New creates new iam client

func (*Client) DeleteServiceAccount

func (x *Client) DeleteServiceAccount(ctx context.Context, accountID string) error

DeleteServiceAccount deletes SA

func (*Client) EnsureServiceAccountWithRoles

func (x *Client) EnsureServiceAccountWithRoles(ctx context.Context, name string, ns string, sas []*v1alpha1.ServiceAccount, displayName string, desc string, roles []string, scope string) (string, error)

EnsureServiceAccountWithRoles makes sure SA is created or updated for desired state

Jump to

Keyboard shortcuts

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