// Code generated by mockery v1.0.0. DO NOT EDIT.

package mocks

import (
	context "context"

	kms "github.com/aws/aws-sdk-go/service/kms"

	mock "github.com/stretchr/testify/mock"
)

// AuthorizedFieldGrantManager is an autogenerated mock type for the AuthorizedFieldGrantManager type
type AuthorizedFieldGrantManager struct {
	mock.Mock
}

// FindByGrantID provides a mock function with given fields: ctx, grantID
func (_m *AuthorizedFieldGrantManager) FindByGrantID(ctx context.Context, grantID string) (*kms.GrantListEntry, error) {
	ret := _m.Called(ctx, grantID)

	var r0 *kms.GrantListEntry
	if rf, ok := ret.Get(0).(func(context.Context, string) *kms.GrantListEntry); ok {
		r0 = rf(ctx, grantID)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*kms.GrantListEntry)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
		r1 = rf(ctx, grantID)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// GrantAuthorizedFieldPublisher provides a mock function with given fields: ctx, iamRoleARN, eventType, environment
func (_m *AuthorizedFieldGrantManager) GrantAuthorizedFieldPublisher(ctx context.Context, iamRoleARN string, eventType string, environment string) (string, error) {
	ret := _m.Called(ctx, iamRoleARN, eventType, environment)

	var r0 string
	if rf, ok := ret.Get(0).(func(context.Context, string, string, string) string); ok {
		r0 = rf(ctx, iamRoleARN, eventType, environment)
	} else {
		r0 = ret.Get(0).(string)
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, string, string, string) error); ok {
		r1 = rf(ctx, iamRoleARN, eventType, environment)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// GrantAuthorizedFieldSubscriber provides a mock function with given fields: ctx, iamRoleARN, eventType, environment, messageName, fieldName
func (_m *AuthorizedFieldGrantManager) GrantAuthorizedFieldSubscriber(ctx context.Context, iamRoleARN string, eventType string, environment string, messageName string, fieldName string) (string, error) {
	ret := _m.Called(ctx, iamRoleARN, eventType, environment, messageName, fieldName)

	var r0 string
	if rf, ok := ret.Get(0).(func(context.Context, string, string, string, string, string) string); ok {
		r0 = rf(ctx, iamRoleARN, eventType, environment, messageName, fieldName)
	} else {
		r0 = ret.Get(0).(string)
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, string, string, string, string, string) error); ok {
		r1 = rf(ctx, iamRoleARN, eventType, environment, messageName, fieldName)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// Revoke provides a mock function with given fields: ctx, grantID
func (_m *AuthorizedFieldGrantManager) Revoke(ctx context.Context, grantID string) error {
	ret := _m.Called(ctx, grantID)

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, string) error); ok {
		r0 = rf(ctx, grantID)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}
