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

package fakes

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

Index

Package Files

access_keys.go access_keys_client.go instance_profiles_client.go logger.go policies_client.go role_policies.go role_policies_client.go roles_client.go server_certificates_client.go user_policies.go user_policies_client.go users_client.go

type AccessKeys Uses

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

func (*AccessKeys) Delete Uses

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

type AccessKeysClient Uses

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 Uses

func (f *AccessKeysClient) DeleteAccessKey(param1 *awsiam.DeleteAccessKeyInput) (*awsiam.DeleteAccessKeyOutput, error)

func (*AccessKeysClient) ListAccessKeys Uses

func (f *AccessKeysClient) ListAccessKeys(param1 *awsiam.ListAccessKeysInput) (*awsiam.ListAccessKeysOutput, error)

type InstanceProfilesClient Uses

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 Uses

func (f *InstanceProfilesClient) DeleteInstanceProfile(param1 *awsiam.DeleteInstanceProfileInput) (*awsiam.DeleteInstanceProfileOutput, error)

func (*InstanceProfilesClient) ListInstanceProfiles Uses

func (f *InstanceProfilesClient) ListInstanceProfiles(param1 *awsiam.ListInstanceProfilesInput) (*awsiam.ListInstanceProfilesOutput, error)

func (*InstanceProfilesClient) RemoveRoleFromInstanceProfile Uses

func (f *InstanceProfilesClient) RemoveRoleFromInstanceProfile(param1 *awsiam.RemoveRoleFromInstanceProfileInput) (*awsiam.RemoveRoleFromInstanceProfileOutput, error)

type Logger Uses

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 Uses

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

func (*Logger) PromptWithDetails Uses

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

type PoliciesClient Uses

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 Uses

func (f *PoliciesClient) DeletePolicy(param1 *awsiam.DeletePolicyInput) (*awsiam.DeletePolicyOutput, error)

func (*PoliciesClient) DeletePolicyVersion Uses

func (f *PoliciesClient) DeletePolicyVersion(param1 *awsiam.DeletePolicyVersionInput) (*awsiam.DeletePolicyVersionOutput, error)

func (*PoliciesClient) ListPolicies Uses

func (f *PoliciesClient) ListPolicies(param1 *awsiam.ListPoliciesInput) (*awsiam.ListPoliciesOutput, error)

func (*PoliciesClient) ListPolicyVersions Uses

func (f *PoliciesClient) ListPolicyVersions(param1 *awsiam.ListPolicyVersionsInput) (*awsiam.ListPolicyVersionsOutput, error)

type RolePolicies Uses

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

func (*RolePolicies) Delete Uses

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

type RolePoliciesClient Uses

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 Uses

func (f *RolePoliciesClient) DeleteRolePolicy(param1 *awsiam.DeleteRolePolicyInput) (*awsiam.DeleteRolePolicyOutput, error)

func (*RolePoliciesClient) DetachRolePolicy Uses

func (f *RolePoliciesClient) DetachRolePolicy(param1 *awsiam.DetachRolePolicyInput) (*awsiam.DetachRolePolicyOutput, error)

func (*RolePoliciesClient) ListAttachedRolePolicies Uses

func (f *RolePoliciesClient) ListAttachedRolePolicies(param1 *awsiam.ListAttachedRolePoliciesInput) (*awsiam.ListAttachedRolePoliciesOutput, error)

func (*RolePoliciesClient) ListRolePolicies Uses

func (f *RolePoliciesClient) ListRolePolicies(param1 *awsiam.ListRolePoliciesInput) (*awsiam.ListRolePoliciesOutput, error)

type RolesClient Uses

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 Uses

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

func (*RolesClient) ListRoles Uses

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

type ServerCertificatesClient Uses

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 Uses

func (f *ServerCertificatesClient) DeleteServerCertificate(param1 *awsiam.DeleteServerCertificateInput) (*awsiam.DeleteServerCertificateOutput, error)

func (*ServerCertificatesClient) ListServerCertificates Uses

func (f *ServerCertificatesClient) ListServerCertificates(param1 *awsiam.ListServerCertificatesInput) (*awsiam.ListServerCertificatesOutput, error)

type UserPolicies Uses

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

func (*UserPolicies) Delete Uses

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

type UserPoliciesClient Uses

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 Uses

func (f *UserPoliciesClient) DeleteUserPolicy(param1 *awsiam.DeleteUserPolicyInput) (*awsiam.DeleteUserPolicyOutput, error)

func (*UserPoliciesClient) DetachUserPolicy Uses

func (f *UserPoliciesClient) DetachUserPolicy(param1 *awsiam.DetachUserPolicyInput) (*awsiam.DetachUserPolicyOutput, error)

func (*UserPoliciesClient) ListAttachedUserPolicies Uses

func (f *UserPoliciesClient) ListAttachedUserPolicies(param1 *awsiam.ListAttachedUserPoliciesInput) (*awsiam.ListAttachedUserPoliciesOutput, error)

type UsersClient Uses

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 Uses

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

func (*UsersClient) ListUsers Uses

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

Package fakes imports 2 packages (graph). Updated 2019-11-21. Refresh now. Tools for package owners.