Documentation ¶
Overview ¶
Package fakeclient provides mock implementations of the client to be used for testing.
Index ¶
- type AccessLevelLister
- type AccessRuleDeleter
- type AccessRuleGetter
- type AccessRuleLister
- type AccessRuleService
- func (s *AccessRuleService) Delete(path string, accountName string) error
- func (s *AccessRuleService) Get(path string, accountName string) (*api.AccessRule, error)
- func (s *AccessRuleService) List(path string, depth int, ancestors bool) ([]*api.AccessRule, error)
- func (s *AccessRuleService) ListLevels(path string) ([]*api.AccessLevel, error)
- func (s *AccessRuleService) Set(path string, permission string, accountName string) (*api.AccessRule, error)
- type AccessRuleSetter
- type AccountGetter
- type AccountService
- type AuditEventIterator
- type Client
- func (c Client) AccessRules() secrethub.AccessRuleService
- func (c Client) Accounts() secrethub.AccountService
- func (c Client) Dirs() secrethub.DirService
- func (c Client) Me() secrethub.MeService
- func (c Client) Orgs() secrethub.OrgService
- func (c Client) Repos() secrethub.RepoService
- func (c Client) Secrets() secrethub.SecretService
- func (c Client) Services() secrethub.ServiceService
- func (c Client) Users() secrethub.UserService
- type DirCreater
- type DirDeleter
- type DirService
- type MeGetter
- type OrgCreater
- type OrgDeleter
- type OrgGetter
- type OrgInviter
- type OrgMemberLister
- type OrgMemberRevoker
- type OrgMemberService
- func (s *OrgMemberService) Get(org string, username string) (*api.OrgMember, error)
- func (s *OrgMemberService) Invite(org string, username string, role string) (*api.OrgMember, error)
- func (s *OrgMemberService) List(name string) ([]*api.OrgMember, error)
- func (s *OrgMemberService) Revoke(name string, username string, opts *api.RevokeOpts) (*api.RevokeOrgResponse, error)
- func (s *OrgMemberService) Update(orgName string, username string, role string) (*api.OrgMember, error)
- type OrgMemberUpdater
- type OrgMineLister
- type OrgService
- type RepoAccountLister
- type RepoCreater
- type RepoDeleter
- type RepoEventLister
- type RepoGetter
- type RepoInviter
- type RepoLister
- type RepoMineLister
- type RepoRevoker
- type RepoService
- func (s *RepoService) Create(path string) (*api.Repo, error)
- func (s *RepoService) Delete(path string) error
- func (s *RepoService) EventIterator(path string, config *secrethub.AuditEventIteratorParams) secrethub.AuditEventIterator
- func (s *RepoService) Get(path string) (*api.Repo, error)
- func (s *RepoService) List(namespace string) ([]*api.Repo, error)
- func (s *RepoService) ListAccounts(path string) ([]*api.Account, error)
- func (s *RepoService) ListEvents(path string, subjectTypes api.AuditSubjectTypeList) ([]*api.Audit, error)
- func (s *RepoService) ListMine() ([]*api.Repo, error)
- func (s *RepoService) Services() secrethub.RepoServiceService
- func (s *RepoService) Users() secrethub.RepoUserService
- type RepoServiceLister
- type RepoServiceService
- type RepoUserLister
- type RepoUserService
- type SecretDeleter
- type SecretEventLister
- type SecretGetter
- type SecretService
- func (s *SecretService) Delete(path string) error
- func (s *SecretService) EventIterator(path string, config *secrethub.AuditEventIteratorParams) secrethub.AuditEventIterator
- func (s *SecretService) Exists(path string) (bool, error)
- func (s *SecretService) Get(path string) (*api.Secret, error)
- func (s *SecretService) ListEvents(path string, subjectTypes api.AuditSubjectTypeList) ([]*api.Audit, error)
- func (s *SecretService) Versions() secrethub.SecretVersionService
- func (s *SecretService) Write(path string, data []byte) (*api.SecretVersion, error)
- type SecretVersionDeleter
- type SecretVersionService
- func (s *SecretVersionService) Delete(path string) error
- func (s *SecretVersionService) GetWithData(path string) (*api.SecretVersion, error)
- func (s *SecretVersionService) GetWithoutData(path string) (*api.SecretVersion, error)
- func (s *SecretVersionService) ListWithData(path string) ([]*api.SecretVersion, error)
- func (s *SecretVersionService) ListWithoutData(path string) ([]*api.SecretVersion, error)
- type ServiceAWSCreater
- type ServiceAWSService
- type ServiceCreater
- type ServiceDeleter
- type ServiceGetter
- type ServiceService
- func (s *ServiceService) Create(path string, description string, credentialCreator credentials.Creator) (*api.Service, error)
- func (s *ServiceService) Delete(id string) (*api.RevokeRepoResponse, error)
- func (s *ServiceService) Get(id string) (*api.Service, error)
- func (s *ServiceService) List(path string) ([]*api.Service, error)
- type TreeGetter
- type UserCreater
- type UserGetter
- type UserService
- type WithDataGetter
- type WithDataLister
- type WithoutDataGetter
- type WithoutDataLister
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessLevelLister ¶
type AccessLevelLister struct { ArgPath string ReturnsAccessLevels []*api.AccessLevel Err error }
AccessLevelLister mocks the ListLevels function.
func (*AccessLevelLister) ListLevels ¶
func (l *AccessLevelLister) ListLevels(path string) ([]*api.AccessLevel, error)
ListLevels saves the arguments it was called with and returns the mocked response.
type AccessRuleDeleter ¶
AccessRuleDeleter mocks the Delete function.
type AccessRuleGetter ¶
type AccessRuleGetter struct { ArgPath string ArgAccountName string ReturnsAccessRule *api.AccessRule Err error }
AccessRuleGetter mocks the Get function.
func (*AccessRuleGetter) Get ¶
func (g *AccessRuleGetter) Get(path string, accountName string) (*api.AccessRule, error)
Get saves the arguments it was called with and returns the mocked response.
type AccessRuleLister ¶
type AccessRuleLister struct { ArgPath string ArgDepth int ArgAncestors bool ReturnsAccessRules []*api.AccessRule Err error }
AccessRuleLister mocks the List function.
func (*AccessRuleLister) List ¶
func (s *AccessRuleLister) List(path string, depth int, ancestors bool) ([]*api.AccessRule, error)
List saves the arguments it was called with and returns the mocked response.
type AccessRuleService ¶
type AccessRuleService struct { Deleter *AccessRuleDeleter Getter *AccessRuleGetter Lister *AccessRuleLister LevelLister *AccessLevelLister Setter AccessRuleSetter }
AccessRuleService is a mock of the AccessRuleService interface.
func (*AccessRuleService) Delete ¶
func (s *AccessRuleService) Delete(path string, accountName string) error
Delete implements the AccessRuleService interface Delete function.
func (*AccessRuleService) Get ¶
func (s *AccessRuleService) Get(path string, accountName string) (*api.AccessRule, error)
Get implements the AccessRuleService interface Get function.
func (*AccessRuleService) List ¶
func (s *AccessRuleService) List(path string, depth int, ancestors bool) ([]*api.AccessRule, error)
List implements the AccessRuleService interface List function.
func (*AccessRuleService) ListLevels ¶
func (s *AccessRuleService) ListLevels(path string) ([]*api.AccessLevel, error)
ListLevels implements the AccessRuleService interface ListLevels function.
func (*AccessRuleService) Set ¶
func (s *AccessRuleService) Set(path string, permission string, accountName string) (*api.AccessRule, error)
Set implements the AccessRuleService interface Set function.
type AccessRuleSetter ¶
type AccessRuleSetter struct { ArgPath string ArgPermission string ArgName string ReturnsAccessRule *api.AccessRule Err error }
AccessRuleSetter mocks the Set function.
func (*AccessRuleSetter) Set ¶
func (s *AccessRuleSetter) Set(path string, permission string, name string) (*api.AccessRule, error)
Set saves the arguments it was called with and returns the mocked response.
type AccountGetter ¶
AccountGetter mocks the Get function.
type AccountService ¶
type AccountService struct {
Getter AccountGetter
}
AccountService is a mock of the AccountService interface.
func (*AccountService) Get ¶
func (s *AccountService) Get(name string) (*api.Account, error)
Get implements the AccountService interface Get function.
func (*AccountService) Keys ¶
func (s *AccountService) Keys() secrethub.AccountKeyService
Keys implements the AccountService interface.
type AuditEventIterator ¶ added in v0.24.0
type Client ¶
type Client struct { AccessRuleService *AccessRuleService AccountService *AccountService DirService *DirService OrgService *OrgService RepoService *RepoService SecretService *SecretService ServiceService *ServiceService UserService *UserService secrethub.ClientInterface }
Client implements the secrethub.Client interface.
func (Client) AccessRules ¶
func (c Client) AccessRules() secrethub.AccessRuleService
AccessRules implements the secrethub.Client interface.
func (Client) Accounts ¶
func (c Client) Accounts() secrethub.AccountService
Accounts implements the secrethub.Client interface.
func (Client) Dirs ¶
func (c Client) Dirs() secrethub.DirService
Dirs implements the secrethub.Client interface.
func (Client) Orgs ¶
func (c Client) Orgs() secrethub.OrgService
Orgs implements the secrethub.Client interface.
func (Client) Repos ¶
func (c Client) Repos() secrethub.RepoService
Repos implements the secrethub.Client interface.
func (Client) Secrets ¶
func (c Client) Secrets() secrethub.SecretService
Secrets implements the secrethub.Client interface.
func (Client) Services ¶
func (c Client) Services() secrethub.ServiceService
Services implements the secrethub.Client interface.
func (Client) Users ¶
func (c Client) Users() secrethub.UserService
Users implements the secrethub.Client interface.
type DirCreater ¶
DirCreater mocks the Create function.
type DirDeleter ¶
DirDeleter mocks the Delete function.
func (*DirDeleter) Delete ¶
func (d *DirDeleter) Delete(path string) error
Delete saves the arguments it was called with and returns the mocked response.
type DirService ¶
type DirService struct { Creater DirCreater Deleter DirDeleter TreeGetter TreeGetter ExistsFunc func(path string) (bool, error) secrethub.DirService }
DirService is a mock of the DirService interface.
func (*DirService) Create ¶
func (s *DirService) Create(path string) (*api.Dir, error)
Create implements the DirService interface Create function.
func (*DirService) Delete ¶
func (s *DirService) Delete(path string) error
Delete implements the DirService interface Delete function.
type OrgCreater ¶
OrgCreater mocks the Create function.
type OrgDeleter ¶
OrgDeleter mocks the Delete function.
func (*OrgDeleter) Delete ¶
func (d *OrgDeleter) Delete(name string) error
Delete saves the arguments it was called with and returns the mocked response.
type OrgInviter ¶
type OrgInviter struct { ArgOrg string ArgUsername string ArgRole string ReturnsOrgMember *api.OrgMember Err error }
OrgInviter mocks the Invite function.
type OrgMemberLister ¶
OrgMemberLister mocks the List function.
type OrgMemberRevoker ¶
type OrgMemberRevoker struct { ArgOrgName string ArgUsername string ArgOpts *api.RevokeOpts ReturnsRevokeOrgResponse *api.RevokeOrgResponse Err error }
OrgMemberRevoker mocks the Revoke function.
func (*OrgMemberRevoker) Revoke ¶
func (r *OrgMemberRevoker) Revoke(orgName string, username string, opts *api.RevokeOpts) (*api.RevokeOrgResponse, error)
Revoke saves the arguments it was called with and returns the mocked response.
type OrgMemberService ¶
type OrgMemberService struct { Inviter OrgInviter Lister OrgMemberLister Revoker OrgMemberRevoker Updater OrgMemberUpdater }
OrgMemberService is a mock of the OrgMemberService interface.
func (*OrgMemberService) List ¶
func (s *OrgMemberService) List(name string) ([]*api.OrgMember, error)
List implements the OrgMemberService interface List function.
func (*OrgMemberService) Revoke ¶
func (s *OrgMemberService) Revoke(name string, username string, opts *api.RevokeOpts) (*api.RevokeOrgResponse, error)
Revoke implements the OrgMemberService interface Revoke function.
type OrgMemberUpdater ¶
type OrgMemberUpdater struct { ArgOrgName string ArgUsername string ArgRole string ReturnsOrgMember *api.OrgMember Err error }
OrgMemberUpdater mocks the Update function.
type OrgMineLister ¶
OrgMineLister mocks the ListMine function.
type OrgService ¶
type OrgService struct { Creater OrgCreater Deleter OrgDeleter Getter OrgGetter MemberService *OrgMemberService MineLister OrgMineLister }
OrgService is a mock of the RepoService interface.
func (*OrgService) Delete ¶
func (s *OrgService) Delete(name string) error
Delete implements the RepoService interface Delete function.
func (*OrgService) Get ¶
func (s *OrgService) Get(name string) (*api.Org, error)
Get implements the RepoService interface Get function.
func (*OrgService) ListMine ¶
func (s *OrgService) ListMine() ([]*api.Org, error)
ListMine implements the RepoService interface ListMine function.
func (*OrgService) Members ¶
func (s *OrgService) Members() secrethub.OrgMemberService
Members returns a mock of the OrgMemberService interface.
type RepoAccountLister ¶
RepoAccountLister mocks the ListAccounts function.
func (*RepoAccountLister) ListAccounts ¶
func (l *RepoAccountLister) ListAccounts(path string) ([]*api.Account, error)
ListAccounts saves the arguments it was called with and returns the mocked response.
type RepoCreater ¶
RepoCreater mocks the Create function.
type RepoDeleter ¶
RepoDeleter mocks the Delete function.
func (*RepoDeleter) Delete ¶
func (d *RepoDeleter) Delete(path string) error
Delete saves the arguments it was called with and returns the mocked response.
type RepoEventLister ¶
type RepoEventLister struct { ArgPath string ArgSubjectTypes api.AuditSubjectTypeList ReturnsAuditEvents []*api.Audit Err error }
RepoEventLister mocks the ListEvents function.
func (*RepoEventLister) ListEvents ¶
func (el *RepoEventLister) ListEvents(path string, subjectTypes api.AuditSubjectTypeList) ([]*api.Audit, error)
ListEvents saves the arguments it was called with and returns the mocked response.
type RepoGetter ¶
RepoGetter mocks the Get function.
type RepoInviter ¶
type RepoInviter struct { ArgPath string ArgUsername string ReturnsRepoMember *api.RepoMember Err error }
RepoInviter mocks the Invite function.
func (*RepoInviter) Invite ¶
func (i *RepoInviter) Invite(path string, username string) (*api.RepoMember, error)
Invite saves the arguments it was called with and returns the mocked response.
type RepoLister ¶
RepoLister mocks the List function.
type RepoMineLister ¶
RepoMineLister mocks the ListMine function.
type RepoRevoker ¶
type RepoRevoker struct { ArgPath string ArgUsername string ReturnsRevokeResponse *api.RevokeRepoResponse Err error }
RepoRevoker mocks the Revoke function.
func (*RepoRevoker) Revoke ¶
func (r *RepoRevoker) Revoke(path string, username string) (*api.RevokeRepoResponse, error)
Revoke saves the arguments it was called with and returns the mocked response.
type RepoService ¶
type RepoService struct { AccountLister RepoAccountLister Creater RepoCreater Deleter RepoDeleter Getter RepoGetter EventLister RepoEventLister Lister RepoLister UserService *RepoUserService ServiceService *RepoServiceService MineLister RepoMineLister AuditEventIterator *AuditEventIterator secrethub.RepoService }
RepoService is a mock of the RepoService interface.
func (*RepoService) Create ¶
func (s *RepoService) Create(path string) (*api.Repo, error)
Create implements the RepoService interface Create function.
func (*RepoService) Delete ¶
func (s *RepoService) Delete(path string) error
Delete implements the RepoService interface Delete function.
func (*RepoService) EventIterator ¶ added in v0.24.0
func (s *RepoService) EventIterator(path string, config *secrethub.AuditEventIteratorParams) secrethub.AuditEventIterator
EventIterator implements the RepoService interface EventIterator function.
func (*RepoService) Get ¶
func (s *RepoService) Get(path string) (*api.Repo, error)
Get implements the RepoService interface Get function.
func (*RepoService) List ¶
func (s *RepoService) List(namespace string) ([]*api.Repo, error)
List implements the RepoService interface List function.
func (*RepoService) ListAccounts ¶
func (s *RepoService) ListAccounts(path string) ([]*api.Account, error)
ListAccounts implements the RepoService interface ListAccounts function.
func (*RepoService) ListEvents ¶
func (s *RepoService) ListEvents(path string, subjectTypes api.AuditSubjectTypeList) ([]*api.Audit, error)
ListEvents implements the RepoService interface ListEvents function.
func (*RepoService) ListMine ¶
func (s *RepoService) ListMine() ([]*api.Repo, error)
ListMine implements the RepoService interface ListMine function.
func (*RepoService) Services ¶
func (s *RepoService) Services() secrethub.RepoServiceService
Services returns the mocked RepoServiceService.
func (*RepoService) Users ¶
func (s *RepoService) Users() secrethub.RepoUserService
Users returns the mocked UserService.
type RepoServiceLister ¶
RepoServiceLister mocks the List function.
type RepoServiceService ¶
type RepoServiceService struct {
Lister RepoServiceLister
}
RepoServiceService is a mock of the RepoServiceService interface.
type RepoUserLister ¶
RepoUserLister mocks the List function.
type RepoUserService ¶
type RepoUserService struct { RepoInviter RepoInviter Lister RepoUserLister Revoker RepoRevoker }
RepoUserService is a mock of the RepoUserService interface.
func (*RepoUserService) Invite ¶
func (s *RepoUserService) Invite(path string, username string) (*api.RepoMember, error)
Invite implements the RepoUserService interface Invite function.
func (*RepoUserService) List ¶
func (s *RepoUserService) List(path string) ([]*api.User, error)
List implements the RepoUserService interface List function.
func (*RepoUserService) Revoke ¶
func (s *RepoUserService) Revoke(path string, username string) (*api.RevokeRepoResponse, error)
Revoke implements the RepoUserService interface Revoke function.
type SecretDeleter ¶
SecretDeleter mocks the Delete function.
func (*SecretDeleter) Delete ¶
func (d *SecretDeleter) Delete(path string) error
Delete saves the arguments it was called with and returns the mocked response.
type SecretEventLister ¶
type SecretEventLister struct { ArgPath string ArgSubjectTypes api.AuditSubjectTypeList ReturnsAuditEvents []*api.Audit Err error }
SecretEventLister mocks the ListEvents function.
func (*SecretEventLister) ListEvents ¶
func (s *SecretEventLister) ListEvents(path string, subjectTypes api.AuditSubjectTypeList) ([]*api.Audit, error)
ListEvents saves the arguments it was called with and returns the mocked response.
type SecretGetter ¶
SecretGetter mocks the Get function.
type SecretService ¶
type SecretService struct { VersionService secrethub.SecretVersionService Deleter SecretDeleter Getter SecretGetter EventLister SecretEventLister Writer Writer AuditEventIterator *AuditEventIterator secrethub.SecretService }
SecretService is a mock of the SecretService interface.
func (*SecretService) Delete ¶
func (s *SecretService) Delete(path string) error
Delete implements the SecretService interface Delete function.
func (*SecretService) EventIterator ¶ added in v0.24.0
func (s *SecretService) EventIterator(path string, config *secrethub.AuditEventIteratorParams) secrethub.AuditEventIterator
EventIterator implements the SecretService interface EventIterator function.
func (*SecretService) Exists ¶
func (s *SecretService) Exists(path string) (bool, error)
Exists implements the SecretService interface Exists function.
func (*SecretService) Get ¶
func (s *SecretService) Get(path string) (*api.Secret, error)
Get implements the SecretService interface Get function.
func (*SecretService) ListEvents ¶
func (s *SecretService) ListEvents(path string, subjectTypes api.AuditSubjectTypeList) ([]*api.Audit, error)
ListEvents implements the SecretService interface ListEvents function.
func (*SecretService) Versions ¶
func (s *SecretService) Versions() secrethub.SecretVersionService
Versions returns a mock of the VersionService interface.
func (*SecretService) Write ¶
func (s *SecretService) Write(path string, data []byte) (*api.SecretVersion, error)
Write implements the SecretService interface Write function.
type SecretVersionDeleter ¶
SecretVersionDeleter mocks the Delete function.
func (*SecretVersionDeleter) Delete ¶
func (d *SecretVersionDeleter) Delete(path string) error
Delete saves the arguments it was called with and returns the mocked response.
type SecretVersionService ¶
type SecretVersionService struct { Deleter SecretVersionDeleter WithDataGetter WithDataGetter WithoutDataGetter WithoutDataGetter WithDataLister WithDataLister WithoutDataLister WithoutDataLister }
SecretVersionService can be used to mock a SecretVersionService.
func (*SecretVersionService) Delete ¶
func (s *SecretVersionService) Delete(path string) error
Delete implements the SecretVersionService interface Delete function.
func (*SecretVersionService) GetWithData ¶
func (s *SecretVersionService) GetWithData(path string) (*api.SecretVersion, error)
GetWithData implements the SecretVersionService interface GetWithData function.
func (*SecretVersionService) GetWithoutData ¶
func (s *SecretVersionService) GetWithoutData(path string) (*api.SecretVersion, error)
GetWithoutData implements the SecretVersionService interface GetWithoutData function.
func (*SecretVersionService) ListWithData ¶
func (s *SecretVersionService) ListWithData(path string) ([]*api.SecretVersion, error)
ListWithData implements the SecretVersionService interface ListWithData function.
func (*SecretVersionService) ListWithoutData ¶
func (s *SecretVersionService) ListWithoutData(path string) ([]*api.SecretVersion, error)
ListWithoutData implements the SecretVersionService interface ListWithoutData function.
type ServiceAWSCreater ¶ added in v0.21.0
type ServiceAWSCreater struct { ArgPath string ArgDescription string ArgKeyID string ArgRole string Cfgs []*aws.Config ReturnsService *api.Service Err error }
ServiceAWSCreater mocks the Create function.
type ServiceAWSService ¶ added in v0.21.0
type ServiceAWSService struct {
Creator ServiceAWSCreater
}
ServiceAWSService is a mock of the ServiceAWSService interface.
type ServiceCreater ¶
type ServiceCreater struct { ArgPath string ArgDescription string ArgCredentialCreator credentials.Creator ReturnsService *api.Service Err error }
ServiceCreater mocks the Create function.
func (*ServiceCreater) Create ¶
func (c *ServiceCreater) Create(path string, description string, credentialCreator credentials.Creator) (*api.Service, error)
Create saves the arguments it was called with and returns the mocked response.
type ServiceDeleter ¶
type ServiceDeleter struct { ArgID string ReturnsRevokeResponse *api.RevokeRepoResponse Err error }
ServiceDeleter mocks the Delete function.
func (*ServiceDeleter) Delete ¶
func (d *ServiceDeleter) Delete(id string) (*api.RevokeRepoResponse, error)
Delete saves the arguments it was called with and returns the mocked response.
type ServiceGetter ¶
ServiceGetter mocks the Get function.
type ServiceService ¶
type ServiceService struct { Creator ServiceCreater Deleter ServiceDeleter Getter ServiceGetter Lister RepoServiceLister AWSService *ServiceAWSService }
ServiceService is a mock of the ServiceService interface.
func (*ServiceService) Create ¶
func (s *ServiceService) Create(path string, description string, credentialCreator credentials.Creator) (*api.Service, error)
Create implements the ServiceService interface Create function.
func (*ServiceService) Delete ¶
func (s *ServiceService) Delete(id string) (*api.RevokeRepoResponse, error)
Delete implements the ServiceService interface Delete function.
type TreeGetter ¶
TreeGetter mocks the Get function.
type UserCreater ¶
type UserCreater struct { ArgUsername string ArgEmail string ArgFullName string ReturnsUser *api.User Err error }
UserCreater mocks the Create function.
func (*UserCreater) Create ¶
func (s *UserCreater) Create(username, email, fullName string, credentialCreator credentials.CreatorProvider) (*api.User, error)
Create saves the arguments it was called with and returns the mocked response.
type UserGetter ¶
UserGetter mocks the Get function.
type UserService ¶
type UserService struct { Getter UserGetter MeGetter MeGetter UserCreater UserCreater }
UserService is a mock of the UserService interface.
func (*UserService) Create ¶
func (s *UserService) Create(username, email, fullName string, credentialCreator credentials.CreatorProvider) (*api.User, error)
Create implements the UserService interface Create function.
type WithDataGetter ¶
type WithDataGetter struct { ArgPath string ReturnsVersion *api.SecretVersion Err error }
WithDataGetter mocks the GetWithData function.
func (*WithDataGetter) GetWithData ¶
func (g *WithDataGetter) GetWithData(path string) (*api.SecretVersion, error)
GetWithData saves the arguments it was called with and returns the mocked response.
type WithDataLister ¶
type WithDataLister struct { ArgPath string ReturnsVersions []*api.SecretVersion Err error }
WithDataLister mocks the ListWithData function.
func (*WithDataLister) ListWithData ¶
func (l *WithDataLister) ListWithData(path string) ([]*api.SecretVersion, error)
ListWithData saves the arguments it was called with and returns the mocked response.
type WithoutDataGetter ¶
type WithoutDataGetter struct { ArgPath string ReturnsVersion *api.SecretVersion Err error }
WithoutDataGetter mocks the GetWithoutData function.
func (*WithoutDataGetter) GetWithoutData ¶
func (g *WithoutDataGetter) GetWithoutData(path string) (*api.SecretVersion, error)
GetWithoutData saves the arguments it was called with and returns the mocked response.
type WithoutDataLister ¶
type WithoutDataLister struct { ArgPath string ReturnsVersions []*api.SecretVersion Err error }
WithoutDataLister mocks the ListWithoutData function.
func (*WithoutDataLister) ListWithoutData ¶
func (l *WithoutDataLister) ListWithoutData(path string) ([]*api.SecretVersion, error)
ListWithoutData saves the arguments it was called with and returns the mocked response.