You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: access_key.go
    path of file: ./repos/infra/internal/access
    
    the code of the file until where you have to start completion: package access

import (
	"fmt"

	"github.com/infrahq/infra/internal"
	"github.com/infrahq/infra/internal/server/data"
	"github.com/infrahq/infra/internal/server/models"
	"github.com/infrahq/infra/uid"
)

func ListAccessKeys(rCtx RequestContext, identityID uid.ID, name string, showExpired bool, p *data.Pagination) ([]models.AccessKey, error) {
	if identityID == rCtx.Authenticated.User.ID {
		// can list own keys
	} else {
		roles := []string{models
    
func ListAccessKeys(rCtx RequestContext, identityID uid.ID, name string, showExpired bool, p *data.Pagination) ([]models.AccessKey, error) {
	if identityID == rCtx.Authenticated.User.ID {
		// can list own keys
	} else {
		roles := []string{models.InfraAdminRole, models.InfraViewRole}
		if err := IsAuthorized(rCtx, roles...); err != nil {
			return nil, HandleAuthErr(err, "access keys", "list", roles...)
		}
	}

	opts := data.ListAccessKeyOptions{
		Pagination:     p,
		IncludeExpired: showExpired,
		ByIssuedForID:  identityID,
		ByName:         name,
	}
	return data.ListAccessKeys(rCtx.DBTxn, opts)
}