fakes

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2019 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 {
	PrintfCall struct {
		Receives struct {
			Message   string
			Arguments []interface{}
		}
		Messages []string
	}

	PromptWithDetailsCall struct {
		CallCount int
		Receives  struct {
			Type string
			Name string
		}
		Returns struct {
			Proceed bool
		}
	}
}

func (*Logger) Printf

func (l *Logger) Printf(message string, a ...interface{})

func (*Logger) PromptWithDetails

func (l *Logger) PromptWithDetails(resourceType, resourceName string) bool

type ServiceAccountsClient

type ServiceAccountsClient struct {
	GetProjectIamPolicyCall struct {
		CallCount int
		Returns   struct {
			Output *gcpcrm.Policy
			Error  error
		}
	}

	SetProjectIamPolicyCall struct {
		CallCount int
		Receives  struct {
			Input *gcpcrm.Policy
		}
		Returns struct {
			Output *gcpcrm.Policy
			Error  error
		}
	}

	ListServiceAccountsCall struct {
		CallCount int
		Returns   struct {
			Output []*gcpiam.ServiceAccount
			Error  error
		}
	}

	DeleteServiceAccountCall struct {
		CallCount int
		Receives  struct {
			ServiceAccount string
		}
		Returns struct {
			Error error
		}
	}
}

func (*ServiceAccountsClient) DeleteServiceAccount

func (s *ServiceAccountsClient) DeleteServiceAccount(account string) error

func (*ServiceAccountsClient) GetProjectIamPolicy added in v0.43.0

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

func (*ServiceAccountsClient) ListServiceAccounts

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

func (*ServiceAccountsClient) SetProjectIamPolicy added in v0.43.0

func (s *ServiceAccountsClient) SetProjectIamPolicy(input *gcpcrm.Policy) (*gcpcrm.Policy, error)

Jump to

Keyboard shortcuts

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