iam

package
v0.65.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(project string, iamService *gcpiam.Service, crmService *gcpcrm.Service) client

Types

type MutexKV added in v0.65.0

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

Copied from github.com/hashicorp/terraform/helper

MutexKV is a simple key/value store for arbitrary mutexes. It can be used to serialize changes across arbitrary collaborators that share knowledge of the keys they must serialize on.

The initial use case is to let aws_security_group_rule resources serialize their access to individual security groups based on SG ID.

func NewMutexKV added in v0.65.0

func NewMutexKV() *MutexKV

Returns a properly initalized MutexKV

func (*MutexKV) Lock added in v0.65.0

func (m *MutexKV) Lock(key string)

Locks the mutex for the given key. Caller is responsible for calling Unlock for the same key

func (*MutexKV) Unlock added in v0.65.0

func (m *MutexKV) Unlock(key string)

Unlock the mutex for the given key. Caller must have called Lock for the same key first

type ServiceAccount

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

func NewServiceAccount

func NewServiceAccount(client serviceAccountsClient, logger logger, name, email string) ServiceAccount

func (ServiceAccount) Delete

func (s ServiceAccount) Delete() error

func (ServiceAccount) Name

func (s ServiceAccount) Name() string

func (ServiceAccount) Type

func (s ServiceAccount) Type() string

type ServiceAccounts

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

func NewServiceAccounts

func NewServiceAccounts(client serviceAccountsClient, projectName string, projectNumber string, logger logger) ServiceAccounts

func (ServiceAccounts) List

func (s ServiceAccounts) List(filter string, regex bool) ([]common.Deletable, error)

func (ServiceAccounts) Type added in v0.32.0

func (s ServiceAccounts) Type() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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