test

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountAssociationsOnCheck

type AccountAssociationsOnCheck struct {
	Given  *iam.AccountAssociationsCheckRequest
	Status *iam.AccountAssociationsStatus
	Error  error
}

type AccountAssociationsOnCreate

type AccountAssociationsOnCreate struct {
	Given   *iam.AccountAssociations
	Created *iam.AccountAssociations
	Error   error
}

type AccountAssociationsOnDelete

type AccountAssociationsOnDelete struct {
	Given *iam.DeleteAccountAssociationsRequest
	Error error
}

type AccountAssociationsOnList

type AccountAssociationsOnList struct {
	Given *iam.AccountAssociationsFilter
	List  *iam.AccountAssociationsList
	Error error
}

type AccountAssociationsOnUpdate

type AccountAssociationsOnUpdate struct {
	Given   *iam.AccountAssociations
	Updated *iam.AccountAssociations
	Error   error
}

type DeprecatedIdentityOnCreate

type DeprecatedIdentityOnCreate struct {
	Given   *events.Identity
	Created *events.Identity
	Error   error
}

type GroupInviteOnCreate

type GroupInviteOnCreate struct {
	Given   *iam.GroupInviteRequest
	Created *iam.GroupInvite
	Error   error
}

type GroupInviteOnCreateWithGroup

type GroupInviteOnCreateWithGroup struct {
	Given   *iam.GroupInviteRequest
	Created *iam.GroupInvite
	Error   error
}

type GroupInviteOnDelete

type GroupInviteOnDelete struct {
	Given *iam.DeleteGroupInviteRequest
	Error error
}

type GroupInviteOnList

type GroupInviteOnList struct {
	Given *iam.GroupInviteFilter
	List  *iam.GroupInviteList
	Error error
}

type GroupOnCreate

type GroupOnCreate struct {
	Given   *iam.CreateGroupRequest
	Created *iam.Group
	Error   error
}

type GroupOnDelete

type GroupOnDelete struct {
	Given *iam.DeleteGroupRequest
	Error error
}

type GroupOnList

type GroupOnList struct {
	Given *iam.GroupFilter
	List  *iam.GroupList
	Error error
}

type GroupOnUpdate

type GroupOnUpdate struct {
	Given   *iam.Group
	Updated *iam.Group
	Error   error
}

type IdentityOnCreate

type IdentityOnCreate struct {
	Given   *iam.CreateIdentityRequest
	Created *iam.Identity
	Error   error
}

type IdentityOnDelete

type IdentityOnDelete struct {
	Given *iam.DeleteIdentityRequest
	Error error
}

type IdentityOnList

type IdentityOnList struct {
	Given *iam.IdentityFilter
	List  *iam.IdentityList
	Error error
}

type IdentityOnLookup

type IdentityOnLookup struct {
	Given *iam.LookupRequest
	Found *iam.Identity
	Error error
}

type IdentityOnUpdate

type IdentityOnUpdate struct {
	Given   *iam.Identity
	Updated *iam.Identity
	Error   error
}

type IdentityProvidersOnCreate

type IdentityProvidersOnCreate struct {
	Given   *api.CreateIdentityProviderRequest
	Created *api.IdentityProvider
	Error   error
}

type IdentityProvidersOnDelete

type IdentityProvidersOnDelete struct {
	Given *api.DeleteIdentityProviderRequest
	Error error
}

type IdentityProvidersOnList

type IdentityProvidersOnList struct {
	Given *api.IdentityProviderFilter
	List  *api.IdentityProviderList
	Error error
}

type IdentityProvidersOnUpdate

type IdentityProvidersOnUpdate struct {
	Given   *api.IdentityProvider
	Updated *api.IdentityProvider
	Error   error
}

type MockDeprecatedIdentitiesClient

type MockDeprecatedIdentitiesClient struct {
	OnCreate []DeprecatedIdentityOnCreate
}

func (MockDeprecatedIdentitiesClient) Create

func (MockDeprecatedIdentitiesClient) UpdateMetadata

type MockGroupAccountAssociationsClient

type MockGroupAccountAssociationsClient struct {
	OnCreate []AccountAssociationsOnCreate
	OnUpdate []AccountAssociationsOnUpdate
	OnDelete []AccountAssociationsOnDelete
	OnList   []AccountAssociationsOnList
	OnCheck  []AccountAssociationsOnCheck
}

func (MockGroupAccountAssociationsClient) Check

func (MockGroupAccountAssociationsClient) Create

func (MockGroupAccountAssociationsClient) Delete

func (MockGroupAccountAssociationsClient) List

func (MockGroupAccountAssociationsClient) Update

type MockGroupInvitesClient

type MockGroupInvitesClient struct {
	OnCreate          []GroupInviteOnCreate
	OnCreateWithGroup []GroupInviteOnCreateWithGroup
	OnDelete          []GroupInviteOnDelete
	OnList            []GroupInviteOnList
}

func (MockGroupInvitesClient) Create

func (MockGroupInvitesClient) CreateWithGroup

func (MockGroupInvitesClient) Delete

func (MockGroupInvitesClient) List

type MockGroupsClient

type MockGroupsClient struct {
	OnCreate []GroupOnCreate
	OnUpdate []GroupOnUpdate
	OnDelete []GroupOnDelete
	OnList   []GroupOnList
}

func (MockGroupsClient) Create

func (MockGroupsClient) Delete

func (MockGroupsClient) List

func (MockGroupsClient) Update

func (m MockGroupsClient) Update(_ context.Context, given *iam.Group, _ ...grpc.CallOption) (*iam.Group, error)

type MockGroupsServer

type MockGroupsServer struct {
	iam.UnimplementedGroupsServer
	Client MockGroupsClient
}

func (MockGroupsServer) Create

func (MockGroupsServer) Delete

func (MockGroupsServer) List

func (MockGroupsServer) Update

func (m MockGroupsServer) Update(ctx context.Context, req *iam.Group) (*iam.Group, error)

type MockIAMClient

type MockIAMClient struct {
	OnClose error

	GroupsClient                   MockGroupsClient
	GroupInvitesClient             MockGroupInvitesClient
	RolesClient                    MockRolesClient
	RoleBindingsClient             MockRoleBindingsClient
	IdentitiesClient               MockIdentitiesClient
	DeprecatedIdentitiesClient     MockDeprecatedIdentitiesClient
	IdentityProvidersClient        MockIdentityProvidersClient
	GroupAccountAssociationsClient MockGroupAccountAssociationsClient
	SubscriptionsClient            MockSubscriptionsClient
	PoliciesClient                 MockPoliciesClient
	SigstoreClient                 MockSigstoreClient
}

func (MockIAMClient) AccountAssociations

func (m MockIAMClient) AccountAssociations() iam.GroupAccountAssociationsClient

func (MockIAMClient) Close

func (m MockIAMClient) Close() error

func (MockIAMClient) DeprecatedIdentities

func (m MockIAMClient) DeprecatedIdentities() events.IdentitiesClient

func (MockIAMClient) GroupInvites

func (m MockIAMClient) GroupInvites() iam.GroupInvitesClient

func (MockIAMClient) Groups

func (m MockIAMClient) Groups() iam.GroupsClient

func (MockIAMClient) Identities

func (m MockIAMClient) Identities() iam.IdentitiesClient

func (MockIAMClient) IdentityProviders

func (m MockIAMClient) IdentityProviders() iam.IdentityProvidersClient

func (MockIAMClient) Policies

func (m MockIAMClient) Policies() iam.PoliciesClient

func (MockIAMClient) RoleBindings

func (m MockIAMClient) RoleBindings() iam.RoleBindingsClient

func (MockIAMClient) Roles

func (m MockIAMClient) Roles() iam.RolesClient

func (MockIAMClient) Sigstore

func (MockIAMClient) Subscriptions

func (m MockIAMClient) Subscriptions() events.SubscriptionsClient

type MockIdentitiesClient

type MockIdentitiesClient struct {
	OnCreate []IdentityOnCreate
	OnUpdate []IdentityOnUpdate
	OnDelete []IdentityOnDelete
	OnList   []IdentityOnList
	OnLooKup []IdentityOnLookup
}

func (MockIdentitiesClient) Create

func (MockIdentitiesClient) Delete

func (MockIdentitiesClient) List

func (MockIdentitiesClient) Lookup

func (MockIdentitiesClient) Update

type MockIdentityProvidersClient

type MockIdentityProvidersClient struct {
	OnCreate []IdentityProvidersOnCreate
	OnUpdate []IdentityProvidersOnUpdate
	OnDelete []IdentityProvidersOnDelete
	OnList   []IdentityProvidersOnList
}

func (MockIdentityProvidersClient) Create

func (MockIdentityProvidersClient) Delete

func (MockIdentityProvidersClient) List

func (MockIdentityProvidersClient) Update

type MockPoliciesClient

type MockPoliciesClient struct {
	OnCreate        []PoliciesOnCreate
	OnUpdate        []PoliciesOnUpdate
	OnDelete        []PoliciesOnDelete
	OnList          []PoliciesOnList
	OnListVersions  []PoliciesOnListVersions
	OnActiveVersion []PoliciesOnActivateVersion
}

func (MockPoliciesClient) ActivateVersion

func (m MockPoliciesClient) ActivateVersion(_ context.Context, given *iam.ActivateVersionRequest, _ ...grpc.CallOption) (*iam.Policy, error)

func (MockPoliciesClient) Create

func (MockPoliciesClient) Delete

func (MockPoliciesClient) List

func (MockPoliciesClient) ListVersions

func (MockPoliciesClient) Update

func (m MockPoliciesClient) Update(_ context.Context, given *iam.Policy, _ ...grpc.CallOption) (*iam.Policy, error)

type MockRoleBindingsClient

type MockRoleBindingsClient struct {
	OnCreate []RoleBindingOnCreate
	OnUpdate []RoleBindingOnUpdate
	OnDelete []RoleBindingOnDelete
	OnList   []RoleBindingOnList
}

func (MockRoleBindingsClient) Create

func (MockRoleBindingsClient) Delete

func (MockRoleBindingsClient) List

func (MockRoleBindingsClient) Update

type MockRolesClient

type MockRolesClient struct {
	OnCreate []RoleOnCreate
	OnUpdate []RoleOnUpdate
	OnDelete []RoleOnDelete
	OnList   []RoleOnList
}

func (MockRolesClient) Create

func (MockRolesClient) Delete

func (MockRolesClient) List

func (MockRolesClient) Update

func (m MockRolesClient) Update(_ context.Context, given *iam.Role, _ ...grpc.CallOption) (*iam.Role, error)

type MockSigstoreClient

type MockSigstoreClient struct {
	OnCreate []SigstoreOnCreate
	OnUpdate []SigstoreOnUpdate
	OnDelete []SigstoreOnDelete
	OnList   []SigstoreOnList
}

func (MockSigstoreClient) Create

func (MockSigstoreClient) Delete

func (MockSigstoreClient) List

func (MockSigstoreClient) Update

type MockSubscriptionsClient

type MockSubscriptionsClient struct {
	OnCreate []SubscriptionOnCreate
	OnUpdate []SubscriptionOnUpdate
	OnDelete []SubscriptionOnDelete
	OnList   []SubscriptionOnList
}

func (MockSubscriptionsClient) Create

func (MockSubscriptionsClient) Delete

func (MockSubscriptionsClient) List

func (MockSubscriptionsClient) Update

type PoliciesOnActivateVersion

type PoliciesOnActivateVersion struct {
	Given  *iam.ActivateVersionRequest
	Active *iam.Policy
	Error  error
}

type PoliciesOnCreate

type PoliciesOnCreate struct {
	Given   *iam.CreatePolicyRequest
	Created *iam.Policy
	Error   error
}

type PoliciesOnDelete

type PoliciesOnDelete struct {
	Given *iam.DeletePolicyRequest
	Error error
}

type PoliciesOnList

type PoliciesOnList struct {
	Given *iam.PolicyFilter
	List  *iam.PolicyList
	Error error
}

type PoliciesOnListVersions

type PoliciesOnListVersions struct {
	Given *iam.ListVersionsRequest
	List  *iam.PolicyVersionList
	Error error
}

type PoliciesOnUpdate

type PoliciesOnUpdate struct {
	Given   *iam.Policy
	Updated *iam.Policy
	Error   error
}

type RoleBindingOnCreate

type RoleBindingOnCreate struct {
	Given   *iam.CreateRoleBindingRequest
	Created *iam.RoleBinding
	Error   error
}

type RoleBindingOnDelete

type RoleBindingOnDelete struct {
	Given *iam.DeleteRoleBindingRequest
	Error error
}

type RoleBindingOnList

type RoleBindingOnList struct {
	Given *iam.RoleBindingFilter
	List  *iam.RoleBindingList
	Error error
}

type RoleBindingOnUpdate

type RoleBindingOnUpdate struct {
	Given   *iam.RoleBinding
	Updated *iam.RoleBinding
	Error   error
}

type RoleOnCreate

type RoleOnCreate struct {
	Given   *iam.CreateRoleRequest
	Created *iam.Role
	Error   error
}

type RoleOnDelete

type RoleOnDelete struct {
	Given *iam.DeleteRoleRequest
	Error error
}

type RoleOnList

type RoleOnList struct {
	Given *iam.RoleFilter
	List  *iam.RoleList
	Error error
}

type RoleOnUpdate

type RoleOnUpdate struct {
	Given   *iam.Role
	Updated *iam.Role
	Error   error
}

type SigstoreOnCreate

type SigstoreOnCreate struct {
	Given   *iam.CreateSigstoreRequest
	Created *iam.Sigstore
	Error   error
}

type SigstoreOnDelete

type SigstoreOnDelete struct {
	Given *iam.DeleteSigstoreRequest
	Error error
}

type SigstoreOnList

type SigstoreOnList struct {
	Given *iam.SigstoreFilter
	List  *iam.SigstoreList
	Error error
}

type SigstoreOnUpdate

type SigstoreOnUpdate struct {
	Given   *iam.Sigstore
	Updated *iam.Sigstore
	Error   error
}

type SubscriptionOnCreate

type SubscriptionOnCreate struct {
	Given   *events.CreateSubscriptionRequest
	Created *events.Subscription
	Error   error
}

type SubscriptionOnDelete

type SubscriptionOnDelete struct {
	Given *events.DeleteSubscriptionRequest
	Error error
}

type SubscriptionOnList

type SubscriptionOnList struct {
	Given *events.SubscriptionFilter
	List  *events.SubscriptionList
	Error error
}

type SubscriptionOnUpdate

type SubscriptionOnUpdate struct {
	Given   *events.Subscription
	Updated *events.Subscription
	Error   error
}

Jump to

Keyboard shortcuts

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