mocks

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	// contains filtered or unexported fields
}

Auth is a mock of Auth interface.

func NewAuth

func NewAuth(ctrl *gomock.Controller) *Auth

NewAuth creates a new mock instance.

func (*Auth) EXPECT

func (m *Auth) EXPECT() *AuthMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*Auth) IsAuthenticated

func (m *Auth) IsAuthenticated(arg0 *http.Request) (ident.Provider, model.User, error)

IsAuthenticated mocks base method.

func (*Auth) IsAuthorized

func (m *Auth) IsAuthorized(arg0 context.Context, arg1 string) bool

IsAuthorized mocks base method.

type AuthMockRecorder

type AuthMockRecorder struct {
	// contains filtered or unexported fields
}

AuthMockRecorder is the mock recorder for Auth.

func (*AuthMockRecorder) IsAuthenticated

func (mr *AuthMockRecorder) IsAuthenticated(arg0 interface{}) *gomock.Call

IsAuthenticated indicates an expected call of IsAuthenticated.

func (*AuthMockRecorder) IsAuthorized

func (mr *AuthMockRecorder) IsAuthorized(arg0, arg1 interface{}) *gomock.Call

IsAuthorized indicates an expected call of IsAuthorized.

type Crud

type Crud struct {
	// contains filtered or unexported fields
}

Crud is a mock of Crud interface.

func NewCrud

func NewCrud(ctrl *gomock.Controller) *Crud

NewCrud creates a new mock instance.

func (*Crud) Browser

func (m *Crud) Browser(arg0 http.ResponseWriter, arg1 provider.Request, arg2 provider.StorageItem, arg3 renderer.Message) (string, int, map[string]interface{}, error)

Browser mocks base method.

func (*Crud) Create

func (m *Crud) Create(arg0 http.ResponseWriter, arg1 *http.Request, arg2 provider.Request)

Create mocks base method.

func (*Crud) Delete

func (m *Crud) Delete(arg0 http.ResponseWriter, arg1 *http.Request, arg2 provider.Request)

Delete mocks base method.

func (*Crud) EXPECT

func (m *Crud) EXPECT() *CrudMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*Crud) Get

func (m *Crud) Get(arg0 http.ResponseWriter, arg1 *http.Request, arg2 provider.Request) (string, int, map[string]interface{}, error)

Get mocks base method.

func (*Crud) List

func (m *Crud) List(arg0 http.ResponseWriter, arg1 provider.Request, arg2 renderer.Message) (string, int, map[string]interface{}, error)

List mocks base method.

func (*Crud) Post

func (m *Crud) Post(arg0 http.ResponseWriter, arg1 *http.Request, arg2 provider.Request)

Post mocks base method.

func (*Crud) Rename

func (m *Crud) Rename(arg0 http.ResponseWriter, arg1 *http.Request, arg2 provider.Request)

Rename mocks base method.

func (*Crud) Start

func (m *Crud) Start(arg0 <-chan struct{})

Start mocks base method.

func (*Crud) Upload

func (m *Crud) Upload(arg0 http.ResponseWriter, arg1 *http.Request, arg2 provider.Request, arg3 map[string]string, arg4 *multipart.Part)

Upload mocks base method.

type CrudMockRecorder

type CrudMockRecorder struct {
	// contains filtered or unexported fields
}

CrudMockRecorder is the mock recorder for Crud.

func (*CrudMockRecorder) Browser

func (mr *CrudMockRecorder) Browser(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

Browser indicates an expected call of Browser.

func (*CrudMockRecorder) Create

func (mr *CrudMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*CrudMockRecorder) Delete

func (mr *CrudMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*CrudMockRecorder) Get

func (mr *CrudMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*CrudMockRecorder) List

func (mr *CrudMockRecorder) List(arg0, arg1, arg2 interface{}) *gomock.Call

List indicates an expected call of List.

func (*CrudMockRecorder) Post

func (mr *CrudMockRecorder) Post(arg0, arg1, arg2 interface{}) *gomock.Call

Post indicates an expected call of Post.

func (*CrudMockRecorder) Rename

func (mr *CrudMockRecorder) Rename(arg0, arg1, arg2 interface{}) *gomock.Call

Rename indicates an expected call of Rename.

func (*CrudMockRecorder) Start

func (mr *CrudMockRecorder) Start(arg0 interface{}) *gomock.Call

Start indicates an expected call of Start.

func (*CrudMockRecorder) Upload

func (mr *CrudMockRecorder) Upload(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

Upload indicates an expected call of Upload.

type Share

type Share struct {
	// contains filtered or unexported fields
}

Share is a mock of ShareManager interface.

func NewShare

func NewShare(ctrl *gomock.Controller) *Share

NewShare creates a new mock instance.

func (*Share) Create

func (m *Share) Create(arg0 string, arg1 bool, arg2 string, arg3 bool, arg4 time.Duration) (string, error)

Create mocks base method.

func (*Share) Delete

func (m *Share) Delete(arg0 string) error

Delete mocks base method.

func (*Share) EXPECT

func (m *Share) EXPECT() *ShareMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*Share) Enabled

func (m *Share) Enabled() bool

Enabled mocks base method.

func (*Share) Get

func (m *Share) Get(arg0 string) provider.Share

Get mocks base method.

func (*Share) List

func (m *Share) List() map[string]provider.Share

List mocks base method.

type ShareMockRecorder

type ShareMockRecorder struct {
	// contains filtered or unexported fields
}

ShareMockRecorder is the mock recorder for Share.

func (*ShareMockRecorder) Create

func (mr *ShareMockRecorder) Create(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*ShareMockRecorder) Delete

func (mr *ShareMockRecorder) Delete(arg0 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*ShareMockRecorder) Enabled

func (mr *ShareMockRecorder) Enabled() *gomock.Call

Enabled indicates an expected call of Enabled.

func (*ShareMockRecorder) Get

func (mr *ShareMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*ShareMockRecorder) List

func (mr *ShareMockRecorder) List() *gomock.Call

List indicates an expected call of List.

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

Storage is a mock of Storage interface.

func NewStorage

func NewStorage(ctrl *gomock.Controller) *Storage

NewStorage creates a new mock instance.

func (*Storage) CreateDir

func (m *Storage) CreateDir(arg0 string) error

CreateDir mocks base method.

func (*Storage) EXPECT

func (m *Storage) EXPECT() *StorageMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*Storage) Info

func (m *Storage) Info(arg0 string) (provider.StorageItem, error)

Info mocks base method.

func (*Storage) List

func (m *Storage) List(arg0 string) ([]provider.StorageItem, error)

List mocks base method.

func (*Storage) ReaderFrom

func (m *Storage) ReaderFrom(arg0 string) (io.ReadSeekCloser, error)

ReaderFrom mocks base method.

func (*Storage) Remove

func (m *Storage) Remove(arg0 string) error

Remove mocks base method.

func (*Storage) Rename

func (m *Storage) Rename(arg0, arg1 string) error

Rename mocks base method.

func (*Storage) UpdateDate

func (m *Storage) UpdateDate(arg0 string, arg1 time.Time) error

UpdateDate mocks base method.

func (*Storage) Walk

func (m *Storage) Walk(arg0 string, arg1 func(provider.StorageItem, error) error) error

Walk mocks base method.

func (*Storage) WithIgnoreFn

func (m *Storage) WithIgnoreFn(arg0 func(provider.StorageItem) bool) provider.Storage

WithIgnoreFn mocks base method.

func (*Storage) WriterTo

func (m *Storage) WriterTo(arg0 string) (io.WriteCloser, error)

WriterTo mocks base method.

type StorageMockRecorder

type StorageMockRecorder struct {
	// contains filtered or unexported fields
}

StorageMockRecorder is the mock recorder for Storage.

func (*StorageMockRecorder) CreateDir

func (mr *StorageMockRecorder) CreateDir(arg0 interface{}) *gomock.Call

CreateDir indicates an expected call of CreateDir.

func (*StorageMockRecorder) Info

func (mr *StorageMockRecorder) Info(arg0 interface{}) *gomock.Call

Info indicates an expected call of Info.

func (*StorageMockRecorder) List

func (mr *StorageMockRecorder) List(arg0 interface{}) *gomock.Call

List indicates an expected call of List.

func (*StorageMockRecorder) ReaderFrom

func (mr *StorageMockRecorder) ReaderFrom(arg0 interface{}) *gomock.Call

ReaderFrom indicates an expected call of ReaderFrom.

func (*StorageMockRecorder) Remove

func (mr *StorageMockRecorder) Remove(arg0 interface{}) *gomock.Call

Remove indicates an expected call of Remove.

func (*StorageMockRecorder) Rename

func (mr *StorageMockRecorder) Rename(arg0, arg1 interface{}) *gomock.Call

Rename indicates an expected call of Rename.

func (*StorageMockRecorder) UpdateDate

func (mr *StorageMockRecorder) UpdateDate(arg0, arg1 interface{}) *gomock.Call

UpdateDate indicates an expected call of UpdateDate.

func (*StorageMockRecorder) Walk

func (mr *StorageMockRecorder) Walk(arg0, arg1 interface{}) *gomock.Call

Walk indicates an expected call of Walk.

func (*StorageMockRecorder) WithIgnoreFn

func (mr *StorageMockRecorder) WithIgnoreFn(arg0 interface{}) *gomock.Call

WithIgnoreFn indicates an expected call of WithIgnoreFn.

func (*StorageMockRecorder) WriterTo

func (mr *StorageMockRecorder) WriterTo(arg0 interface{}) *gomock.Call

WriterTo indicates an expected call of WriterTo.

type Webhook

type Webhook struct {
	// contains filtered or unexported fields
}

Webhook is a mock of WebhookManager interface.

func NewWebhook

func NewWebhook(ctrl *gomock.Controller) *Webhook

NewWebhook creates a new mock instance.

func (*Webhook) Create

func (m *Webhook) Create(arg0 string, arg1 bool, arg2 string, arg3 []provider.EventType) (string, error)

Create mocks base method.

func (*Webhook) Delete

func (m *Webhook) Delete(arg0 string) error

Delete mocks base method.

func (*Webhook) EXPECT

func (m *Webhook) EXPECT() *WebhookMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*Webhook) Enabled

func (m *Webhook) Enabled() bool

Enabled mocks base method.

func (*Webhook) List

func (m *Webhook) List() map[string]provider.Webhook

List mocks base method.

type WebhookMockRecorder

type WebhookMockRecorder struct {
	// contains filtered or unexported fields
}

WebhookMockRecorder is the mock recorder for Webhook.

func (*WebhookMockRecorder) Create

func (mr *WebhookMockRecorder) Create(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*WebhookMockRecorder) Delete

func (mr *WebhookMockRecorder) Delete(arg0 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*WebhookMockRecorder) Enabled

func (mr *WebhookMockRecorder) Enabled() *gomock.Call

Enabled indicates an expected call of Enabled.

func (*WebhookMockRecorder) List

func (mr *WebhookMockRecorder) List() *gomock.Call

List indicates an expected call of List.

Jump to

Keyboard shortcuts

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