fakes

package
v0.70.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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 added in v0.57.0

func (f *Logger) Debugln(param1 string)

func (*Logger) Printf

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

func (*Logger) PromptWithDetails

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

type ServiceAccountsClient

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

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

func (*ServiceAccountsClient) GetProjectIamPolicy added in v0.43.0

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

func (*ServiceAccountsClient) ListServiceAccounts

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

func (*ServiceAccountsClient) SetProjectIamPolicy added in v0.43.0

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

Jump to

Keyboard shortcuts

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