mocks

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: MIT Imports: 13 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.

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 context.Context, arg1 http.ResponseWriter, arg2 provider.Request, arg3 model.Item, arg4 renderer.Message) (renderer.Page, 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) (renderer.Page, error)

Get mocks base method.

func (*Crud) List

func (m *Crud) List(arg0 context.Context, arg1 provider.Request, arg2 renderer.Message, arg3 model.Item, arg4 []model.Item) (renderer.Page, 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, arg4 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, arg3, arg4 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 Exif added in v0.16.0

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

Exif is a mock of ExifManager interface.

func NewExif added in v0.16.0

func NewExif(ctrl *gomock.Controller) *Exif

NewExif creates a new mock instance.

func (*Exif) EXPECT added in v0.16.0

func (m *Exif) EXPECT() *ExifMockRecorder

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

func (*Exif) GetAggregateFor added in v0.16.0

func (m *Exif) GetAggregateFor(arg0 context.Context, arg1 model.Item) (provider.Aggregate, error)

GetAggregateFor mocks base method.

func (*Exif) GetExifFor added in v0.16.0

func (m *Exif) GetExifFor(arg0 context.Context, arg1 model.Item) (model0.Exif, error)

GetExifFor mocks base method.

func (*Exif) ListDir added in v0.18.0

func (m *Exif) ListDir(arg0 context.Context, arg1 model.Item) ([]model.Item, error)

ListDir mocks base method.

func (*Exif) SaveExifFor added in v0.16.0

func (m *Exif) SaveExifFor(arg0 context.Context, arg1 model.Item, arg2 model0.Exif) error

SaveExifFor mocks base method.

type ExifMockRecorder added in v0.16.0

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

ExifMockRecorder is the mock recorder for Exif.

func (*ExifMockRecorder) GetAggregateFor added in v0.16.0

func (mr *ExifMockRecorder) GetAggregateFor(arg0, arg1 interface{}) *gomock.Call

GetAggregateFor indicates an expected call of GetAggregateFor.

func (*ExifMockRecorder) GetExifFor added in v0.16.0

func (mr *ExifMockRecorder) GetExifFor(arg0, arg1 interface{}) *gomock.Call

GetExifFor indicates an expected call of GetExifFor.

func (*ExifMockRecorder) ListDir added in v0.18.0

func (mr *ExifMockRecorder) ListDir(arg0, arg1 interface{}) *gomock.Call

ListDir indicates an expected call of ListDir.

func (*ExifMockRecorder) SaveExifFor added in v0.16.0

func (mr *ExifMockRecorder) SaveExifFor(arg0, arg1, arg2 interface{}) *gomock.Call

SaveExifFor indicates an expected call of SaveExifFor.

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 context.Context, arg1 string, arg2 bool, arg3 string, arg4 bool, arg5 time.Duration) (string, error)

Create mocks base method.

func (*Share) Delete

func (m *Share) Delete(arg0 context.Context, arg1 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) Get

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

Get mocks base method.

func (*Share) List

func (m *Share) List() []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, arg5 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*ShareMockRecorder) Delete

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

Delete indicates an expected call of Delete.

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) ConvertError added in v0.18.0

func (m *Storage) ConvertError(arg0 error) error

ConvertError mocks base method.

func (*Storage) CreateDir

func (m *Storage) CreateDir(arg0 context.Context, arg1 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) Enabled added in v0.13.0

func (m *Storage) Enabled() bool

Enabled mocks base method.

func (*Storage) Info

func (m *Storage) Info(arg0 context.Context, arg1 string) (model.Item, error)

Info mocks base method.

func (*Storage) List

func (m *Storage) List(arg0 context.Context, arg1 string) ([]model.Item, error)

List mocks base method.

func (*Storage) Name added in v0.13.0

func (m *Storage) Name() string

Name mocks base method.

func (*Storage) Path added in v0.13.0

func (m *Storage) Path(arg0 string) string

Path mocks base method.

func (*Storage) ReadFrom added in v0.14.0

func (m *Storage) ReadFrom(arg0 context.Context, arg1 string) (io.ReadSeekCloser, error)

ReadFrom mocks base method.

func (*Storage) Remove

func (m *Storage) Remove(arg0 context.Context, arg1 string) error

Remove mocks base method.

func (*Storage) Rename

func (m *Storage) Rename(arg0 context.Context, arg1, arg2 string) error

Rename mocks base method.

func (*Storage) UpdateDate

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

UpdateDate mocks base method.

func (*Storage) Walk

func (m *Storage) Walk(arg0 context.Context, arg1 string, arg2 func(model.Item) error) error

Walk mocks base method.

func (*Storage) WithIgnoreFn

func (m *Storage) WithIgnoreFn(arg0 func(model.Item) bool) model.Storage

WithIgnoreFn mocks base method.

func (*Storage) WriteSizedTo added in v0.18.0

func (m *Storage) WriteSizedTo(arg0 context.Context, arg1 string, arg2 int64, arg3 io.Reader) error

WriteSizedTo mocks base method.

func (*Storage) WriteTo added in v0.14.0

func (m *Storage) WriteTo(arg0 context.Context, arg1 string, arg2 io.Reader) error

WriteTo mocks base method.

type StorageMockRecorder

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

StorageMockRecorder is the mock recorder for Storage.

func (*StorageMockRecorder) ConvertError added in v0.18.0

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

ConvertError indicates an expected call of ConvertError.

func (*StorageMockRecorder) CreateDir

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

CreateDir indicates an expected call of CreateDir.

func (*StorageMockRecorder) Enabled added in v0.13.0

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

Enabled indicates an expected call of Enabled.

func (*StorageMockRecorder) Info

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

Info indicates an expected call of Info.

func (*StorageMockRecorder) List

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

List indicates an expected call of List.

func (*StorageMockRecorder) Name added in v0.13.0

func (mr *StorageMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name.

func (*StorageMockRecorder) Path added in v0.13.0

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

Path indicates an expected call of Path.

func (*StorageMockRecorder) ReadFrom added in v0.14.0

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

ReadFrom indicates an expected call of ReadFrom.

func (*StorageMockRecorder) Remove

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

Remove indicates an expected call of Remove.

func (*StorageMockRecorder) Rename

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

Rename indicates an expected call of Rename.

func (*StorageMockRecorder) UpdateDate

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

UpdateDate indicates an expected call of UpdateDate.

func (*StorageMockRecorder) Walk

func (mr *StorageMockRecorder) Walk(arg0, arg1, arg2 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) WriteSizedTo added in v0.18.0

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

WriteSizedTo indicates an expected call of WriteSizedTo.

func (*StorageMockRecorder) WriteTo added in v0.14.0

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

WriteTo indicates an expected call of WriteTo.

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 context.Context, arg1 string, arg2 bool, arg3 provider.WebhookKind, arg4 string, arg5 []provider.EventType) (string, error)

Create mocks base method.

func (*Webhook) Delete

func (m *Webhook) Delete(arg0 context.Context, arg1 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) List

func (m *Webhook) List() []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, arg4, arg5 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*WebhookMockRecorder) Delete

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

Delete indicates an expected call of Delete.

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