leftovers: github.com/genevievelesperance/leftovers/gcp/iam Index | Files | Directories

package iam

import "github.com/genevievelesperance/leftovers/gcp/iam"


Package Files

client.go logger.go mutexkv.go service_account.go service_accounts.go

func NewClient Uses

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

type MutexKV Uses

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 Uses

func NewMutexKV() *MutexKV

Returns a properly initalized MutexKV

func (*MutexKV) Lock Uses

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 Uses

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 Uses

type ServiceAccount struct {
    // contains filtered or unexported fields

func NewServiceAccount Uses

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

func (ServiceAccount) Delete Uses

func (s ServiceAccount) Delete() error

func (ServiceAccount) Name Uses

func (s ServiceAccount) Name() string

func (ServiceAccount) Type Uses

func (s ServiceAccount) Type() string

type ServiceAccounts Uses

type ServiceAccounts struct {
    // contains filtered or unexported fields

func NewServiceAccounts Uses

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

func (ServiceAccounts) List Uses

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

func (ServiceAccounts) Type Uses

func (s ServiceAccounts) Type() string



Package iam imports 8 packages (graph). Updated 2019-11-15. Refresh now. Tools for package owners.