mocktokens

package
v10.317.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mocktokens is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTokenEngine

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

MockTokenEngine is a mock of TokenEngine interface nolint

func NewMockTokenEngine

func NewMockTokenEngine(ctrl *gomock.Controller) *MockTokenEngine

NewMockTokenEngine creates a new mock instance nolint

func (*MockTokenEngine) CreateAndSign

func (m *MockTokenEngine) CreateAndSign(isAck bool, claims *tokens.ConnectionClaims, encodedBuf, nonce []byte, claimsHeader *claimsheader.ClaimsHeader, secrets secrets.Secrets) ([]byte, error)

CreateAndSign mocks base method nolint

func (*MockTokenEngine) DecodeAck

func (m *MockTokenEngine) DecodeAck(data []byte, connClaims *tokens.ConnectionClaims) error

DecodeAck mocks base method nolint

func (*MockTokenEngine) DecodeSyn

func (m *MockTokenEngine) DecodeSyn(isSynAck bool, data []byte, privateKey *ecdsa.PrivateKey, secrets secrets.Secrets, connClaims *tokens.ConnectionClaims) (*claimsheader.ClaimsHeader, []byte, interface{}, *pkiverifier.PKIControllerInfo, error)

DecodeSyn mocks base method nolint

func (*MockTokenEngine) EXPECT

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

func (*MockTokenEngine) Randomize

func (m *MockTokenEngine) Randomize(arg0, arg1 []byte) error

Randomize mocks base method nolint

func (*MockTokenEngine) Sign

func (m *MockTokenEngine) Sign(arg0 []byte, arg1 *ecdsa.PrivateKey) ([]byte, error)

Sign mocks base method nolint

type MockTokenEngineMockRecorder

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

MockTokenEngineMockRecorder is the mock recorder for MockTokenEngine nolint

func (*MockTokenEngineMockRecorder) CreateAndSign

func (mr *MockTokenEngineMockRecorder) CreateAndSign(isAck, claims, encodedBuf, nonce, claimsHeader, secrets interface{}) *gomock.Call

CreateAndSign indicates an expected call of CreateAndSign nolint

func (*MockTokenEngineMockRecorder) DecodeAck

func (mr *MockTokenEngineMockRecorder) DecodeAck(data, connClaims interface{}) *gomock.Call

DecodeAck indicates an expected call of DecodeAck nolint

func (*MockTokenEngineMockRecorder) DecodeSyn

func (mr *MockTokenEngineMockRecorder) DecodeSyn(isSynAck, data, privateKey, secrets, connClaims interface{}) *gomock.Call

DecodeSyn indicates an expected call of DecodeSyn nolint

func (*MockTokenEngineMockRecorder) Randomize

func (mr *MockTokenEngineMockRecorder) Randomize(arg0, arg1 interface{}) *gomock.Call

Randomize indicates an expected call of Randomize nolint

func (*MockTokenEngineMockRecorder) Sign

func (mr *MockTokenEngineMockRecorder) Sign(arg0, arg1 interface{}) *gomock.Call

Sign indicates an expected call of Sign nolint

Jump to

Keyboard shortcuts

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