Documentation
¶
Overview ¶
Package types is a generated GoMock package.
Index ¶
- Constants
- type Employee
- type EmployeeIdentityCredentialMember
- type EmployeeIdentityCredentialMemberMember
- type EmployeeIdentityCredentialSubject
- type MockSessionStore
- func (m *MockSessionStore) CheckAndSetStatus(sessionID, expectedStatus, status string) bool
- func (m *MockSessionStore) Delete(sessionID string)
- func (m *MockSessionStore) EXPECT() *MockSessionStoreMockRecorder
- func (m *MockSessionStore) Load(sessionID string) (Session, bool)
- func (m *MockSessionStore) Start(ctx context.Context)
- func (m *MockSessionStore) Store(sessionID string, session Session)
- type MockSessionStoreMockRecorder
- func (mr *MockSessionStoreMockRecorder) CheckAndSetStatus(sessionID, expectedStatus, status any) *gomock.Call
- func (mr *MockSessionStoreMockRecorder) Delete(sessionID any) *gomock.Call
- func (mr *MockSessionStoreMockRecorder) Load(sessionID any) *gomock.Call
- func (mr *MockSessionStoreMockRecorder) Start(ctx any) *gomock.Call
- func (mr *MockSessionStoreMockRecorder) Store(sessionID, session any) *gomock.Call
- type Session
- type SessionStore
Constants ¶
const SessionCancelled = "cancelled"
const SessionCompleted = "completed"
SessionCompleted represents the session state after the user has accepted the contract
const SessionCreated = "created"
SessionCreated represents the session state after creation
const SessionErrored = "errored"
const SessionExpired = "expired"
const SessionInProgress = "in-progress"
SessionInProgress represents the session state after rendering the html
const SessionVPRequested = "vp-requested"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmployeeIdentityCredentialMember ¶
type EmployeeIdentityCredentialMember struct {
Identifier string `json:"identifier"`
Member EmployeeIdentityCredentialMemberMember `json:"member"`
RoleName *string `json:"roleName,omitempty"`
Type string `json:"type"`
}
type EmployeeIdentityCredentialSubject ¶
type EmployeeIdentityCredentialSubject struct {
credential.BaseCredentialSubject
Type string `json:"type"`
Member EmployeeIdentityCredentialMember `json:"member"`
}
type MockSessionStore ¶
type MockSessionStore struct {
// contains filtered or unexported fields
}
MockSessionStore is a mock of SessionStore interface.
func NewMockSessionStore ¶
func NewMockSessionStore(ctrl *gomock.Controller) *MockSessionStore
NewMockSessionStore creates a new mock instance.
func (*MockSessionStore) CheckAndSetStatus ¶
func (m *MockSessionStore) CheckAndSetStatus(sessionID, expectedStatus, status string) bool
CheckAndSetStatus mocks base method.
func (*MockSessionStore) Delete ¶
func (m *MockSessionStore) Delete(sessionID string)
Delete mocks base method.
func (*MockSessionStore) EXPECT ¶
func (m *MockSessionStore) EXPECT() *MockSessionStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSessionStore) Load ¶
func (m *MockSessionStore) Load(sessionID string) (Session, bool)
Load mocks base method.
func (*MockSessionStore) Start ¶
func (m *MockSessionStore) Start(ctx context.Context)
Start mocks base method.
func (*MockSessionStore) Store ¶
func (m *MockSessionStore) Store(sessionID string, session Session)
Store mocks base method.
type MockSessionStoreMockRecorder ¶
type MockSessionStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockSessionStoreMockRecorder is the mock recorder for MockSessionStore.
func (*MockSessionStoreMockRecorder) CheckAndSetStatus ¶
func (mr *MockSessionStoreMockRecorder) CheckAndSetStatus(sessionID, expectedStatus, status any) *gomock.Call
CheckAndSetStatus indicates an expected call of CheckAndSetStatus.
func (*MockSessionStoreMockRecorder) Delete ¶
func (mr *MockSessionStoreMockRecorder) Delete(sessionID any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockSessionStoreMockRecorder) Load ¶
func (mr *MockSessionStoreMockRecorder) Load(sessionID any) *gomock.Call
Load indicates an expected call of Load.
type Session ¶
type Session struct {
ExpiresAt time.Time
Contract string
Secret string
Status string
Employer string
Employee Employee
}
Session contains the contract text and Session signing Status
func (Session) CredentialSubject ¶
func (Session) HumanReadableContract ¶
HumanReadableContract returns the contract text without the contract type (e.g. "NL:LoginContract:v3")