fakes

package
v0.58.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessKeys

type AccessKeys struct {
	DeleteCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			UserName string
		}
		Returns struct {
			Error error
		}
		Stub func(string) error
	}
}

func (*AccessKeys) Delete

func (f *AccessKeys) Delete(param1 string) error

type AccessKeysClient

type AccessKeysClient struct {
	DeleteAccessKeyCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			DeleteAccessKeyInput *awsiam.DeleteAccessKeyInput
		}
		Returns struct {
			DeleteAccessKeyOutput *awsiam.DeleteAccessKeyOutput
			Error                 error
		}
		Stub func(*awsiam.DeleteAccessKeyInput) (*awsiam.DeleteAccessKeyOutput, error)
	}
	ListAccessKeysCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			ListAccessKeysInput *awsiam.ListAccessKeysInput
		}
		Returns struct {
			ListAccessKeysOutput *awsiam.ListAccessKeysOutput
			Error                error
		}
		Stub func(*awsiam.ListAccessKeysInput) (*awsiam.ListAccessKeysOutput, error)
	}
}

func (*AccessKeysClient) DeleteAccessKey

func (*AccessKeysClient) ListAccessKeys

type InstanceProfilesClient

type InstanceProfilesClient struct {
	DeleteInstanceProfileCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			DeleteInstanceProfileInput *awsiam.DeleteInstanceProfileInput
		}
		Returns struct {
			DeleteInstanceProfileOutput *awsiam.DeleteInstanceProfileOutput
			Error                       error
		}
		Stub func(*awsiam.DeleteInstanceProfileInput) (*awsiam.DeleteInstanceProfileOutput, error)
	}
	ListInstanceProfilesCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			ListInstanceProfilesInput *awsiam.ListInstanceProfilesInput
		}
		Returns struct {
			ListInstanceProfilesOutput *awsiam.ListInstanceProfilesOutput
			Error                      error
		}
		Stub func(*awsiam.ListInstanceProfilesInput) (*awsiam.ListInstanceProfilesOutput, error)
	}
	RemoveRoleFromInstanceProfileCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			RemoveRoleFromInstanceProfileInput *awsiam.RemoveRoleFromInstanceProfileInput
		}
		Returns struct {
			RemoveRoleFromInstanceProfileOutput *awsiam.RemoveRoleFromInstanceProfileOutput
			Error                               error
		}
		Stub func(*awsiam.RemoveRoleFromInstanceProfileInput) (*awsiam.RemoveRoleFromInstanceProfileOutput, error)
	}
}

func (*InstanceProfilesClient) DeleteInstanceProfile

func (*InstanceProfilesClient) ListInstanceProfiles

func (*InstanceProfilesClient) RemoveRoleFromInstanceProfile

type Logger

type Logger struct {
	PrintfCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			M 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) Printf

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

func (*Logger) PromptWithDetails added in v0.21.0

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

type PoliciesClient

type PoliciesClient struct {
	DeletePolicyCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			DeletePolicyInput *awsiam.DeletePolicyInput
		}
		Returns struct {
			DeletePolicyOutput *awsiam.DeletePolicyOutput
			Error              error
		}
		Stub func(*awsiam.DeletePolicyInput) (*awsiam.DeletePolicyOutput, error)
	}
	DeletePolicyVersionCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			DeletePolicyVersionInput *awsiam.DeletePolicyVersionInput
		}
		Returns struct {
			DeletePolicyVersionOutput *awsiam.DeletePolicyVersionOutput
			Error                     error
		}
		Stub func(*awsiam.DeletePolicyVersionInput) (*awsiam.DeletePolicyVersionOutput, error)
	}
	ListPoliciesCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			ListPoliciesInput *awsiam.ListPoliciesInput
		}
		Returns struct {
			ListPoliciesOutput *awsiam.ListPoliciesOutput
			Error              error
		}
		Stub func(*awsiam.ListPoliciesInput) (*awsiam.ListPoliciesOutput, error)
	}
	ListPolicyVersionsCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			ListPolicyVersionsInput *awsiam.ListPolicyVersionsInput
		}
		Returns struct {
			ListPolicyVersionsOutput *awsiam.ListPolicyVersionsOutput
			Error                    error
		}
		Stub func(*awsiam.ListPolicyVersionsInput) (*awsiam.ListPolicyVersionsOutput, error)
	}
}

func (*PoliciesClient) DeletePolicy

func (*PoliciesClient) DeletePolicyVersion

func (*PoliciesClient) ListPolicies

func (*PoliciesClient) ListPolicyVersions

type RolePolicies

type RolePolicies struct {
	DeleteCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			RoleName string
		}
		Returns struct {
			Error error
		}
		Stub func(string) error
	}
}

func (*RolePolicies) Delete

func (f *RolePolicies) Delete(param1 string) error

type RolePoliciesClient

type RolePoliciesClient struct {
	DeleteRolePolicyCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			DeleteRolePolicyInput *awsiam.DeleteRolePolicyInput
		}
		Returns struct {
			DeleteRolePolicyOutput *awsiam.DeleteRolePolicyOutput
			Error                  error
		}
		Stub func(*awsiam.DeleteRolePolicyInput) (*awsiam.DeleteRolePolicyOutput, error)
	}
	DetachRolePolicyCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			DetachRolePolicyInput *awsiam.DetachRolePolicyInput
		}
		Returns struct {
			DetachRolePolicyOutput *awsiam.DetachRolePolicyOutput
			Error                  error
		}
		Stub func(*awsiam.DetachRolePolicyInput) (*awsiam.DetachRolePolicyOutput, error)
	}
	ListAttachedRolePoliciesCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			ListAttachedRolePoliciesInput *awsiam.ListAttachedRolePoliciesInput
		}
		Returns struct {
			ListAttachedRolePoliciesOutput *awsiam.ListAttachedRolePoliciesOutput
			Error                          error
		}
		Stub func(*awsiam.ListAttachedRolePoliciesInput) (*awsiam.ListAttachedRolePoliciesOutput, error)
	}
	ListRolePoliciesCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			ListRolePoliciesInput *awsiam.ListRolePoliciesInput
		}
		Returns struct {
			ListRolePoliciesOutput *awsiam.ListRolePoliciesOutput
			Error                  error
		}
		Stub func(*awsiam.ListRolePoliciesInput) (*awsiam.ListRolePoliciesOutput, error)
	}
}

func (*RolePoliciesClient) DeleteRolePolicy

func (*RolePoliciesClient) DetachRolePolicy

func (*RolePoliciesClient) ListAttachedRolePolicies

func (*RolePoliciesClient) ListRolePolicies

type RolesClient

type RolesClient struct {
	DeleteRoleCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			DeleteRoleInput *awsiam.DeleteRoleInput
		}
		Returns struct {
			DeleteRoleOutput *awsiam.DeleteRoleOutput
			Error            error
		}
		Stub func(*awsiam.DeleteRoleInput) (*awsiam.DeleteRoleOutput, error)
	}
	ListRolesCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			ListRolesInput *awsiam.ListRolesInput
		}
		Returns struct {
			ListRolesOutput *awsiam.ListRolesOutput
			Error           error
		}
		Stub func(*awsiam.ListRolesInput) (*awsiam.ListRolesOutput, error)
	}
}

func (*RolesClient) DeleteRole

func (f *RolesClient) DeleteRole(param1 *awsiam.DeleteRoleInput) (*awsiam.DeleteRoleOutput, error)

func (*RolesClient) ListRoles

func (f *RolesClient) ListRoles(param1 *awsiam.ListRolesInput) (*awsiam.ListRolesOutput, error)

type ServerCertificatesClient

type ServerCertificatesClient struct {
	DeleteServerCertificateCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			DeleteServerCertificateInput *awsiam.DeleteServerCertificateInput
		}
		Returns struct {
			DeleteServerCertificateOutput *awsiam.DeleteServerCertificateOutput
			Error                         error
		}
		Stub func(*awsiam.DeleteServerCertificateInput) (*awsiam.DeleteServerCertificateOutput, error)
	}
	ListServerCertificatesCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			ListServerCertificatesInput *awsiam.ListServerCertificatesInput
		}
		Returns struct {
			ListServerCertificatesOutput *awsiam.ListServerCertificatesOutput
			Error                        error
		}
		Stub func(*awsiam.ListServerCertificatesInput) (*awsiam.ListServerCertificatesOutput, error)
	}
}

func (*ServerCertificatesClient) DeleteServerCertificate

func (*ServerCertificatesClient) ListServerCertificates

type UserPolicies

type UserPolicies struct {
	DeleteCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			UserName string
		}
		Returns struct {
			Error error
		}
		Stub func(string) error
	}
}

func (*UserPolicies) Delete

func (f *UserPolicies) Delete(param1 string) error

type UserPoliciesClient

type UserPoliciesClient struct {
	DeleteUserPolicyCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			DeleteUserPolicyInput *awsiam.DeleteUserPolicyInput
		}
		Returns struct {
			DeleteUserPolicyOutput *awsiam.DeleteUserPolicyOutput
			Error                  error
		}
		Stub func(*awsiam.DeleteUserPolicyInput) (*awsiam.DeleteUserPolicyOutput, error)
	}
	DetachUserPolicyCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			DetachUserPolicyInput *awsiam.DetachUserPolicyInput
		}
		Returns struct {
			DetachUserPolicyOutput *awsiam.DetachUserPolicyOutput
			Error                  error
		}
		Stub func(*awsiam.DetachUserPolicyInput) (*awsiam.DetachUserPolicyOutput, error)
	}
	ListAttachedUserPoliciesCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			ListAttachedUserPoliciesInput *awsiam.ListAttachedUserPoliciesInput
		}
		Returns struct {
			ListAttachedUserPoliciesOutput *awsiam.ListAttachedUserPoliciesOutput
			Error                          error
		}
		Stub func(*awsiam.ListAttachedUserPoliciesInput) (*awsiam.ListAttachedUserPoliciesOutput, error)
	}
}

func (*UserPoliciesClient) DeleteUserPolicy

func (*UserPoliciesClient) DetachUserPolicy

func (*UserPoliciesClient) ListAttachedUserPolicies

type UsersClient

type UsersClient struct {
	DeleteUserCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			DeleteUserInput *awsiam.DeleteUserInput
		}
		Returns struct {
			DeleteUserOutput *awsiam.DeleteUserOutput
			Error            error
		}
		Stub func(*awsiam.DeleteUserInput) (*awsiam.DeleteUserOutput, error)
	}
	ListUsersCall struct {
		sync.Mutex
		CallCount int
		Receives  struct {
			ListUsersInput *awsiam.ListUsersInput
		}
		Returns struct {
			ListUsersOutput *awsiam.ListUsersOutput
			Error           error
		}
		Stub func(*awsiam.ListUsersInput) (*awsiam.ListUsersOutput, error)
	}
}

func (*UsersClient) DeleteUser

func (f *UsersClient) DeleteUser(param1 *awsiam.DeleteUserInput) (*awsiam.DeleteUserOutput, error)

func (*UsersClient) ListUsers

func (f *UsersClient) ListUsers(param1 *awsiam.ListUsersInput) (*awsiam.ListUsersOutput, error)

Jump to

Keyboard shortcuts

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