Full Mattermost server source with integrated Community Enterprise features. Includes vendor directory for offline/air-gapped builds. Structure: - enterprise-impl/: Enterprise feature implementations - enterprise-community/: Init files that register implementations - enterprise/: Bridge imports (community_imports.go) - vendor/: All dependencies for offline builds Build (online): go build ./cmd/mattermost Build (offline/air-gapped): go build -mod=vendor ./cmd/mattermost 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
106 lines
3.3 KiB
Go
106 lines
3.3 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/mattermost/mattermost/server/public/pluginapi/experimental/oauther (interfaces: OAuther)
|
|
|
|
// Package mock_oauther is a generated GoMock package.
|
|
package mock_oauther
|
|
|
|
import (
|
|
http "net/http"
|
|
reflect "reflect"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
oauth2 "golang.org/x/oauth2"
|
|
)
|
|
|
|
// MockOAuther is a mock of OAuther interface.
|
|
type MockOAuther struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockOAutherMockRecorder
|
|
}
|
|
|
|
// MockOAutherMockRecorder is the mock recorder for MockOAuther.
|
|
type MockOAutherMockRecorder struct {
|
|
mock *MockOAuther
|
|
}
|
|
|
|
// NewMockOAuther creates a new mock instance.
|
|
func NewMockOAuther(ctrl *gomock.Controller) *MockOAuther {
|
|
mock := &MockOAuther{ctrl: ctrl}
|
|
mock.recorder = &MockOAutherMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockOAuther) EXPECT() *MockOAutherMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// AddPayload mocks base method.
|
|
func (m *MockOAuther) AddPayload(arg0 string, arg1 []byte) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "AddPayload", arg0, arg1)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// AddPayload indicates an expected call of AddPayload.
|
|
func (mr *MockOAutherMockRecorder) AddPayload(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddPayload", reflect.TypeOf((*MockOAuther)(nil).AddPayload), arg0, arg1)
|
|
}
|
|
|
|
// Deauthorize mocks base method.
|
|
func (m *MockOAuther) Deauthorize(arg0 string) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Deauthorize", arg0)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Deauthorize indicates an expected call of Deauthorize.
|
|
func (mr *MockOAutherMockRecorder) Deauthorize(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Deauthorize", reflect.TypeOf((*MockOAuther)(nil).Deauthorize), arg0)
|
|
}
|
|
|
|
// GetConnectURL mocks base method.
|
|
func (m *MockOAuther) GetConnectURL() string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetConnectURL")
|
|
ret0, _ := ret[0].(string)
|
|
return ret0
|
|
}
|
|
|
|
// GetConnectURL indicates an expected call of GetConnectURL.
|
|
func (mr *MockOAutherMockRecorder) GetConnectURL() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConnectURL", reflect.TypeOf((*MockOAuther)(nil).GetConnectURL))
|
|
}
|
|
|
|
// GetToken mocks base method.
|
|
func (m *MockOAuther) GetToken(arg0 string) (*oauth2.Token, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetToken", arg0)
|
|
ret0, _ := ret[0].(*oauth2.Token)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetToken indicates an expected call of GetToken.
|
|
func (mr *MockOAutherMockRecorder) GetToken(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetToken", reflect.TypeOf((*MockOAuther)(nil).GetToken), arg0)
|
|
}
|
|
|
|
// ServeHTTP mocks base method.
|
|
func (m *MockOAuther) ServeHTTP(arg0 http.ResponseWriter, arg1 *http.Request) {
|
|
m.ctrl.T.Helper()
|
|
m.ctrl.Call(m, "ServeHTTP", arg0, arg1)
|
|
}
|
|
|
|
// ServeHTTP indicates an expected call of ServeHTTP.
|
|
func (mr *MockOAutherMockRecorder) ServeHTTP(arg0, arg1 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServeHTTP", reflect.TypeOf((*MockOAuther)(nil).ServeHTTP), arg0, arg1)
|
|
}
|