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

package fakes

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

Index

Package Files

logger.go service_accounts_client.go

type Logger Uses

type Logger struct {
    DebuglnCall struct {
        sync.Mutex
        CallCount int
        Receives  struct {
            Message string
        }
        Stub func(string)
    }
    PrintfCall struct {
        sync.Mutex
        CallCount int
        Receives  struct {
            Message string
            A       []interface {
            }
        }
        Stub func(string, ...interface {
        })
    }
    PromptWithDetailsCall struct {
        sync.Mutex
        CallCount int
        Receives  struct {
            ResourceType string
            ResourceName string
        }
        Returns struct {
            Proceed bool
        }
        Stub func(string, string) bool
    }
}

func (*Logger) Debugln Uses

func (f *Logger) Debugln(param1 string)

func (*Logger) Printf Uses

func (f *Logger) Printf(param1 string, param2 ...interface {
})

func (*Logger) PromptWithDetails Uses

func (f *Logger) PromptWithDetails(param1 string, param2 string) bool

type ServiceAccountsClient Uses

type ServiceAccountsClient struct {
    DeleteServiceAccountCall struct {
        sync.Mutex
        CallCount int
        Receives  struct {
            Account string
        }
        Returns struct {
            Error error
        }
        Stub func(string) error
    }
    GetProjectIamPolicyCall struct {
        sync.Mutex
        CallCount int
        Returns   struct {
            Policy *gcpcrm.Policy
            Error  error
        }
        Stub func() (*gcpcrm.Policy, error)
    }
    ListServiceAccountsCall struct {
        sync.Mutex
        CallCount int
        Returns   struct {
            ServiceAccountSlice []*gcpiam.ServiceAccount
            Error               error
        }
        Stub func() ([]*gcpiam.ServiceAccount, error)
    }
    SetProjectIamPolicyCall struct {
        sync.Mutex
        CallCount int
        Receives  struct {
            Policy *gcpcrm.Policy
        }
        Returns struct {
            Policy *gcpcrm.Policy
            Error  error
        }
        Stub func(*gcpcrm.Policy) (*gcpcrm.Policy, error)
    }
}

func (*ServiceAccountsClient) DeleteServiceAccount Uses

func (f *ServiceAccountsClient) DeleteServiceAccount(param1 string) error

func (*ServiceAccountsClient) GetProjectIamPolicy Uses

func (f *ServiceAccountsClient) GetProjectIamPolicy() (*gcpcrm.Policy, error)

func (*ServiceAccountsClient) ListServiceAccounts Uses

func (f *ServiceAccountsClient) ListServiceAccounts() ([]*gcpiam.ServiceAccount, error)

func (*ServiceAccountsClient) SetProjectIamPolicy Uses

func (f *ServiceAccountsClient) SetProjectIamPolicy(param1 *gcpcrm.Policy) (*gcpcrm.Policy, error)

Package fakes imports 3 packages (graph). Updated 2019-10-10. Refresh now. Tools for package owners.