gdm

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package gdm is the package for the GDM pam module handing.

Index

Constants

View Source
const (
	// PamExtensionCustomJSON is the gdm PAM extension for passing string values.
	PamExtensionCustomJSON = C.GDM_PAM_EXTENSION_CUSTOM_JSON
	// JSONProtoName is the gdm private string protocol name.
	JSONProtoName = "com.ubuntu.authd.gdm"
	// JSONProtoVersion is the gdm private string protocol version.
	JSONProtoVersion = uint(1)
)
View Source
const (
	// ProtoVersion is the version of the JSON protocol.
	ProtoVersion = uint32(1)
)

Variables

View Source
var (
	DataType_name = map[int32]string{
		0: "unknownType",
		1: "hello",
		2: "event",
		3: "eventAck",
		4: "request",
		5: "response",
		6: "poll",
		7: "pollResponse",
	}
	DataType_value = map[string]int32{
		"unknownType":  0,
		"hello":        1,
		"event":        2,
		"eventAck":     3,
		"request":      4,
		"response":     5,
		"poll":         6,
		"pollResponse": 7,
	}
)

Enum value maps for DataType.

View Source
var (
	RequestType_name = map[int32]string{
		0: "unknownRequest",
		1: "updateBrokersList",
		2: "composeAuthenticationView",
		3: "uiLayoutCapabilities",
		4: "changeStage",
	}
	RequestType_value = map[string]int32{
		"unknownRequest":            0,
		"updateBrokersList":         1,
		"composeAuthenticationView": 2,
		"uiLayoutCapabilities":      3,
		"changeStage":               4,
	}
)

Enum value maps for RequestType.

View Source
var (
	EventType_name = map[int32]string{
		0:  "unknownEvent",
		1:  "userSelected",
		2:  "brokersReceived",
		3:  "brokerSelected",
		4:  "authModesReceived",
		5:  "authModeSelected",
		6:  "reselectAuthMode",
		7:  "authEvent",
		8:  "uiLayoutReceived",
		9:  "startAuthentication",
		10: "isAuthenticatedRequested",
		11: "isAuthenticatedCancelled",
		12: "stageChanged",
	}
	EventType_value = map[string]int32{
		"unknownEvent":             0,
		"userSelected":             1,
		"brokersReceived":          2,
		"brokerSelected":           3,
		"authModesReceived":        4,
		"authModeSelected":         5,
		"reselectAuthMode":         6,
		"authEvent":                7,
		"uiLayoutReceived":         8,
		"startAuthentication":      9,
		"isAuthenticatedRequested": 10,
		"isAuthenticatedCancelled": 11,
		"stageChanged":             12,
	}
)

Enum value maps for EventType.

View Source
var ErrInvalidJSON = errors.New("invalid JSON")

ErrInvalidJSON is an error used when processed JSON is not valid.

View Source
var ErrProtoNotSupported = errors.New("protocol not supported")

ErrProtoNotSupported is an error used when protocol/version is not supported.

Functions

func AdvertisePamExtensions

func AdvertisePamExtensions(extensions []string)

AdvertisePamExtensions enable GDM pam extensions in the current binary.

func ConversationInProgress

func ConversationInProgress() bool

ConversationInProgress checks if conversations are currently active.

func EmitEvent

func EmitEvent(pamMTx pam.ModuleTransaction, event Event) error

EmitEvent sends an Event to Gdm.

func IsPamExtensionSupported

func IsPamExtensionSupported(extension string) bool

IsPamExtensionSupported returns if the provided extension is supported.

func NewBinaryJSONProtoRequest

func NewBinaryJSONProtoRequest(data []byte) (*pam.BinaryConvRequest, error)

NewBinaryJSONProtoRequest returns a new pam.BinaryConvRequest from the provided data.

func SendRequestTyped

func SendRequestTyped[T Response](pamMTx pam.ModuleTransaction, req Request) (T, error)

SendRequestTyped allows to parse an object value into a parsed structure.

Types

type Data

type Data struct {
	Type         DataType      `protobuf:"varint,1,opt,name=type,proto3,enum=gdm.DataType" json:"type,omitempty"`
	Hello        *HelloData    `protobuf:"bytes,2,opt,name=hello,proto3,oneof" json:"hello,omitempty"`
	Request      *RequestData  `protobuf:"bytes,3,opt,name=request,proto3,oneof" json:"request,omitempty"`
	Response     *ResponseData `protobuf:"bytes,4,opt,name=response,proto3,oneof" json:"response,omitempty"`
	Event        *EventData    `protobuf:"bytes,5,opt,name=event,proto3,oneof" json:"event,omitempty"`
	PollResponse []*EventData  `protobuf:"bytes,6,rep,name=pollResponse,proto3" json:"pollResponse,omitempty"`
	// contains filtered or unexported fields
}

func NewDataFromJSON

func NewDataFromJSON(bytes []byte) (*Data, error)

NewDataFromJSON unmarshals data from json bytes.

func SendData

func SendData(pamMTx pam.ModuleTransaction, d *Data) (*Data, error)

SendData sends the data to the PAM Module and returns the parsed Data.

func (*Data) Check

func (d *Data) Check() error

Check allows to check the sanity of a data value.

func (*Data) Descriptor deprecated

func (*Data) Descriptor() ([]byte, []int)

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetEvent

func (x *Data) GetEvent() *EventData

func (*Data) GetHello

func (x *Data) GetHello() *HelloData

func (*Data) GetPollResponse

func (x *Data) GetPollResponse() []*EventData

func (*Data) GetRequest

func (x *Data) GetRequest() *RequestData

func (*Data) GetResponse

func (x *Data) GetResponse() *ResponseData

func (*Data) GetType

func (x *Data) GetType() DataType

func (*Data) JSON

func (d *Data) JSON() ([]byte, error)

JSON returns the data object serialized as JSON bytes.

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect

func (x *Data) ProtoReflect() protoreflect.Message

func (*Data) Reset

func (x *Data) Reset()

func (*Data) String

func (x *Data) String() string

type DataConversationFunc

type DataConversationFunc func(*Data) (*Data, error)

DataConversationFunc is an adapter to allow the use of ordinary functions as gdm conversation callbacks.

func (DataConversationFunc) RespondPAM

func (f DataConversationFunc) RespondPAM(pam.Style, string) (string, error)

RespondPAM is a dummy conversation callback adapter to implement pam.BinaryPointerConversationFunc.

func (DataConversationFunc) RespondPAMBinary

func (f DataConversationFunc) RespondPAMBinary(ptr pam.BinaryPointer) (pam.BinaryPointer, error)

RespondPAMBinary is a conversation callback adapter.

type DataType

type DataType int32
const (
	// DataType_unknownType is an unknown DataType.
	DataType_unknownType DataType = 0
	// DataType_hello is an hello DataType.
	DataType_hello DataType = 1
	// DataType_event is an event DataType.
	DataType_event DataType = 2
	// DataType_eventAck is an event DataType.
	DataType_eventAck DataType = 3
	// DataType_request is a request DataType.
	DataType_request DataType = 4
	// DataType_response is a response DataType.
	DataType_response DataType = 5
	// DataType_poll is a poll DataType.
	DataType_poll DataType = 6
	// DataType_pollResponse is a poll response DataType.
	DataType_pollResponse DataType = 7
)

func (DataType) Descriptor

func (DataType) Descriptor() protoreflect.EnumDescriptor

func (DataType) Enum

func (x DataType) Enum() *DataType

func (DataType) EnumDescriptor deprecated

func (DataType) EnumDescriptor() ([]byte, []int)

Deprecated: Use DataType.Descriptor instead.

func (DataType) Number

func (x DataType) Number() protoreflect.EnumNumber

func (DataType) String

func (x DataType) String() string

func (DataType) Type

type Event

type Event = isEventData_Data

Event is an interface implementing all the gdm events.

type EventData

type EventData struct {
	Type EventType `protobuf:"varint,1,opt,name=type,proto3,enum=gdm.EventType" json:"type,omitempty"`
	// Types that are assignable to Data:
	//
	//	*EventData_BrokersReceived
	//	*EventData_BrokerSelected
	//	*EventData_AuthModesReceived
	//	*EventData_AuthModeSelected
	//	*EventData_IsAuthenticatedRequested
	//	*EventData_StageChanged
	//	*EventData_UiLayoutReceived
	//	*EventData_AuthEvent
	//	*EventData_ReselectAuthMode
	//	*EventData_StartAuthentication
	//	*EventData_UserSelected
	//	*EventData_IsAuthenticatedCancelled
	Data isEventData_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func SendPoll

func SendPoll(pamMTx pam.ModuleTransaction) ([]*EventData, error)

SendPoll sends a PollEvent to Gdm.

func (*EventData) Descriptor deprecated

func (*EventData) Descriptor() ([]byte, []int)

Deprecated: Use EventData.ProtoReflect.Descriptor instead.

func (*EventData) GetAuthEvent

func (x *EventData) GetAuthEvent() *Events_AuthEvent

func (*EventData) GetAuthModeSelected

func (x *EventData) GetAuthModeSelected() *Events_AuthModeSelected

func (*EventData) GetAuthModesReceived

func (x *EventData) GetAuthModesReceived() *Events_AuthModesReceived

func (*EventData) GetBrokerSelected

func (x *EventData) GetBrokerSelected() *Events_BrokerSelected

func (*EventData) GetBrokersReceived

func (x *EventData) GetBrokersReceived() *Events_BrokersReceived

func (*EventData) GetData

func (m *EventData) GetData() isEventData_Data

func (*EventData) GetIsAuthenticatedCancelled

func (x *EventData) GetIsAuthenticatedCancelled() *Events_IsAuthenticatedCancelled

func (*EventData) GetIsAuthenticatedRequested

func (x *EventData) GetIsAuthenticatedRequested() *Events_IsAuthenticatedRequested

func (*EventData) GetReselectAuthMode

func (x *EventData) GetReselectAuthMode() *Events_ReselectAuthMode

func (*EventData) GetStageChanged

func (x *EventData) GetStageChanged() *Events_StageChanged

func (*EventData) GetStartAuthentication

func (x *EventData) GetStartAuthentication() *Events_StartAuthentication

func (*EventData) GetType

func (x *EventData) GetType() EventType

func (*EventData) GetUiLayoutReceived

func (x *EventData) GetUiLayoutReceived() *Events_UiLayoutReceived

func (*EventData) GetUserSelected

func (x *EventData) GetUserSelected() *Events_UserSelected

func (*EventData) ProtoMessage

func (*EventData) ProtoMessage()

func (*EventData) ProtoReflect

func (x *EventData) ProtoReflect() protoreflect.Message

func (*EventData) Reset

func (x *EventData) Reset()

func (*EventData) SafeString

func (ed *EventData) SafeString() string

SafeString creates a string of EventData with confidential content removed.

func (*EventData) String

func (x *EventData) String() string

type EventData_AuthEvent

type EventData_AuthEvent struct {
	AuthEvent *Events_AuthEvent `protobuf:"bytes,17,opt,name=authEvent,proto3,oneof"`
}

type EventData_AuthModeSelected

type EventData_AuthModeSelected struct {
	AuthModeSelected *Events_AuthModeSelected `protobuf:"bytes,13,opt,name=authModeSelected,proto3,oneof"`
}

type EventData_AuthModesReceived

type EventData_AuthModesReceived struct {
	AuthModesReceived *Events_AuthModesReceived `protobuf:"bytes,12,opt,name=authModesReceived,proto3,oneof"`
}

type EventData_BrokerSelected

type EventData_BrokerSelected struct {
	BrokerSelected *Events_BrokerSelected `protobuf:"bytes,11,opt,name=brokerSelected,proto3,oneof"`
}

type EventData_BrokersReceived

type EventData_BrokersReceived struct {
	BrokersReceived *Events_BrokersReceived `protobuf:"bytes,10,opt,name=brokersReceived,proto3,oneof"`
}

type EventData_IsAuthenticatedCancelled

type EventData_IsAuthenticatedCancelled struct {
	IsAuthenticatedCancelled *Events_IsAuthenticatedCancelled `protobuf:"bytes,21,opt,name=isAuthenticatedCancelled,proto3,oneof"`
}

type EventData_IsAuthenticatedRequested

type EventData_IsAuthenticatedRequested struct {
	IsAuthenticatedRequested *Events_IsAuthenticatedRequested `protobuf:"bytes,14,opt,name=isAuthenticatedRequested,proto3,oneof"`
}

type EventData_ReselectAuthMode

type EventData_ReselectAuthMode struct {
	ReselectAuthMode *Events_ReselectAuthMode `protobuf:"bytes,18,opt,name=reselectAuthMode,proto3,oneof"`
}

type EventData_StageChanged

type EventData_StageChanged struct {
	StageChanged *Events_StageChanged `protobuf:"bytes,15,opt,name=stageChanged,proto3,oneof"`
}

type EventData_StartAuthentication

type EventData_StartAuthentication struct {
	StartAuthentication *Events_StartAuthentication `protobuf:"bytes,19,opt,name=startAuthentication,proto3,oneof"`
}

type EventData_UiLayoutReceived

type EventData_UiLayoutReceived struct {
	UiLayoutReceived *Events_UiLayoutReceived `protobuf:"bytes,16,opt,name=uiLayoutReceived,proto3,oneof"`
}

type EventData_UserSelected

type EventData_UserSelected struct {
	UserSelected *Events_UserSelected `protobuf:"bytes,20,opt,name=userSelected,proto3,oneof"`
}

type EventType

type EventType int32
const (
	// EventType_unknownEvent is an unknown EventType.
	EventType_unknownEvent EventType = 0
	// EventType_userSelected is an user selected EventType.
	EventType_userSelected EventType = 1
	// EventType_brokersReceived is a broker received EventType.
	EventType_brokersReceived EventType = 2
	// EventType_brokerSelected is a broker selected EventType.
	EventType_brokerSelected EventType = 3
	// EventType_authModesReceived is an auth modes received EventType.
	EventType_authModesReceived EventType = 4
	// EventType_authModeSelected is an auth mode selected EventType.
	EventType_authModeSelected EventType = 5
	// EventType_reselectAuthMode is an reselect auth mode selected EventType.
	EventType_reselectAuthMode EventType = 6
	// EventType_authEvent is an auth event EventType.
	EventType_authEvent EventType = 7
	// EventType_uiLayoutReceived is an UI Layout Received EventType.
	EventType_uiLayoutReceived EventType = 8
	// EventType_startAuthentication is a start authentication EventType.
	EventType_startAuthentication EventType = 9
	// EventType_isAuthenticatedRequested is an authentication request EventType.
	EventType_isAuthenticatedRequested EventType = 10
	// EventType_isAuthenticationCancelled is authentication cancellation EventType.
	EventType_isAuthenticatedCancelled EventType = 11
	// EventType_stageChanged is stage changed EventType.
	EventType_stageChanged EventType = 12
)

func (EventType) Descriptor

func (EventType) Descriptor() protoreflect.EnumDescriptor

func (EventType) Enum

func (x EventType) Enum() *EventType

func (EventType) EnumDescriptor deprecated

func (EventType) EnumDescriptor() ([]byte, []int)

Deprecated: Use EventType.Descriptor instead.

func (EventType) Number

func (x EventType) Number() protoreflect.EnumNumber

func (EventType) String

func (x EventType) String() string

func (EventType) Type

type Events

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

func (*Events) Descriptor deprecated

func (*Events) Descriptor() ([]byte, []int)

Deprecated: Use Events.ProtoReflect.Descriptor instead.

func (*Events) ProtoMessage

func (*Events) ProtoMessage()

func (*Events) ProtoReflect

func (x *Events) ProtoReflect() protoreflect.Message

func (*Events) Reset

func (x *Events) Reset()

func (*Events) String

func (x *Events) String() string

type Events_AuthEvent

type Events_AuthEvent struct {
	Response *authd.IAResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

func (*Events_AuthEvent) Descriptor deprecated

func (*Events_AuthEvent) Descriptor() ([]byte, []int)

Deprecated: Use Events_AuthEvent.ProtoReflect.Descriptor instead.

func (*Events_AuthEvent) GetResponse

func (x *Events_AuthEvent) GetResponse() *authd.IAResponse

func (*Events_AuthEvent) ProtoMessage

func (*Events_AuthEvent) ProtoMessage()

func (*Events_AuthEvent) ProtoReflect

func (x *Events_AuthEvent) ProtoReflect() protoreflect.Message

func (*Events_AuthEvent) Reset

func (x *Events_AuthEvent) Reset()

func (*Events_AuthEvent) String

func (x *Events_AuthEvent) String() string

type Events_AuthModeSelected

type Events_AuthModeSelected struct {
	AuthModeId string `protobuf:"bytes,1,opt,name=authModeId,proto3" json:"authModeId,omitempty"`
	// contains filtered or unexported fields
}

func (*Events_AuthModeSelected) Descriptor deprecated

func (*Events_AuthModeSelected) Descriptor() ([]byte, []int)

Deprecated: Use Events_AuthModeSelected.ProtoReflect.Descriptor instead.

func (*Events_AuthModeSelected) GetAuthModeId

func (x *Events_AuthModeSelected) GetAuthModeId() string

func (*Events_AuthModeSelected) ProtoMessage

func (*Events_AuthModeSelected) ProtoMessage()

func (*Events_AuthModeSelected) ProtoReflect

func (x *Events_AuthModeSelected) ProtoReflect() protoreflect.Message

func (*Events_AuthModeSelected) Reset

func (x *Events_AuthModeSelected) Reset()

func (*Events_AuthModeSelected) String

func (x *Events_AuthModeSelected) String() string

type Events_AuthModesReceived

type Events_AuthModesReceived struct {
	AuthModes []*authd.GAMResponse_AuthenticationMode `protobuf:"bytes,1,rep,name=authModes,proto3" json:"authModes,omitempty"`
	// contains filtered or unexported fields
}

func (*Events_AuthModesReceived) Descriptor deprecated

func (*Events_AuthModesReceived) Descriptor() ([]byte, []int)

Deprecated: Use Events_AuthModesReceived.ProtoReflect.Descriptor instead.

func (*Events_AuthModesReceived) GetAuthModes

func (*Events_AuthModesReceived) ProtoMessage

func (*Events_AuthModesReceived) ProtoMessage()

func (*Events_AuthModesReceived) ProtoReflect

func (x *Events_AuthModesReceived) ProtoReflect() protoreflect.Message

func (*Events_AuthModesReceived) Reset

func (x *Events_AuthModesReceived) Reset()

func (*Events_AuthModesReceived) String

func (x *Events_AuthModesReceived) String() string

type Events_BrokerSelected

type Events_BrokerSelected struct {
	BrokerId string `protobuf:"bytes,1,opt,name=brokerId,proto3" json:"brokerId,omitempty"`
	// contains filtered or unexported fields
}

func (*Events_BrokerSelected) Descriptor deprecated

func (*Events_BrokerSelected) Descriptor() ([]byte, []int)

Deprecated: Use Events_BrokerSelected.ProtoReflect.Descriptor instead.

func (*Events_BrokerSelected) GetBrokerId

func (x *Events_BrokerSelected) GetBrokerId() string

func (*Events_BrokerSelected) ProtoMessage

func (*Events_BrokerSelected) ProtoMessage()

func (*Events_BrokerSelected) ProtoReflect

func (x *Events_BrokerSelected) ProtoReflect() protoreflect.Message

func (*Events_BrokerSelected) Reset

func (x *Events_BrokerSelected) Reset()

func (*Events_BrokerSelected) String

func (x *Events_BrokerSelected) String() string

type Events_BrokersReceived

type Events_BrokersReceived struct {
	BrokersInfos []*authd.ABResponse_BrokerInfo `protobuf:"bytes,1,rep,name=brokersInfos,proto3" json:"brokersInfos,omitempty"`
	// contains filtered or unexported fields
}

func (*Events_BrokersReceived) Descriptor deprecated

func (*Events_BrokersReceived) Descriptor() ([]byte, []int)

Deprecated: Use Events_BrokersReceived.ProtoReflect.Descriptor instead.

func (*Events_BrokersReceived) GetBrokersInfos

func (x *Events_BrokersReceived) GetBrokersInfos() []*authd.ABResponse_BrokerInfo

func (*Events_BrokersReceived) ProtoMessage

func (*Events_BrokersReceived) ProtoMessage()

func (*Events_BrokersReceived) ProtoReflect

func (x *Events_BrokersReceived) ProtoReflect() protoreflect.Message

func (*Events_BrokersReceived) Reset

func (x *Events_BrokersReceived) Reset()

func (*Events_BrokersReceived) String

func (x *Events_BrokersReceived) String() string

type Events_IsAuthenticatedCancelled

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

func (*Events_IsAuthenticatedCancelled) Descriptor deprecated

func (*Events_IsAuthenticatedCancelled) Descriptor() ([]byte, []int)

Deprecated: Use Events_IsAuthenticatedCancelled.ProtoReflect.Descriptor instead.

func (*Events_IsAuthenticatedCancelled) ProtoMessage

func (*Events_IsAuthenticatedCancelled) ProtoMessage()

func (*Events_IsAuthenticatedCancelled) ProtoReflect

func (*Events_IsAuthenticatedCancelled) Reset

func (*Events_IsAuthenticatedCancelled) String

type Events_IsAuthenticatedRequested

type Events_IsAuthenticatedRequested struct {
	AuthenticationData *authd.IARequest_AuthenticationData `protobuf:"bytes,1,opt,name=authentication_data,json=authenticationData,proto3" json:"authentication_data,omitempty"`
	// contains filtered or unexported fields
}

func (*Events_IsAuthenticatedRequested) Descriptor deprecated

func (*Events_IsAuthenticatedRequested) Descriptor() ([]byte, []int)

Deprecated: Use Events_IsAuthenticatedRequested.ProtoReflect.Descriptor instead.

func (*Events_IsAuthenticatedRequested) GetAuthenticationData

func (*Events_IsAuthenticatedRequested) ProtoMessage

func (*Events_IsAuthenticatedRequested) ProtoMessage()

func (*Events_IsAuthenticatedRequested) ProtoReflect

func (*Events_IsAuthenticatedRequested) Reset

func (*Events_IsAuthenticatedRequested) String

type Events_ReselectAuthMode

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

func (*Events_ReselectAuthMode) Descriptor deprecated

func (*Events_ReselectAuthMode) Descriptor() ([]byte, []int)

Deprecated: Use Events_ReselectAuthMode.ProtoReflect.Descriptor instead.

func (*Events_ReselectAuthMode) ProtoMessage

func (*Events_ReselectAuthMode) ProtoMessage()

func (*Events_ReselectAuthMode) ProtoReflect

func (x *Events_ReselectAuthMode) ProtoReflect() protoreflect.Message

func (*Events_ReselectAuthMode) Reset

func (x *Events_ReselectAuthMode) Reset()

func (*Events_ReselectAuthMode) String

func (x *Events_ReselectAuthMode) String() string

type Events_StageChanged

type Events_StageChanged struct {
	Stage proto.Stage `protobuf:"varint,1,opt,name=stage,proto3,enum=pam.Stage" json:"stage,omitempty"`
	// contains filtered or unexported fields
}

func (*Events_StageChanged) Descriptor deprecated

func (*Events_StageChanged) Descriptor() ([]byte, []int)

Deprecated: Use Events_StageChanged.ProtoReflect.Descriptor instead.

func (*Events_StageChanged) GetStage

func (x *Events_StageChanged) GetStage() proto.Stage

func (*Events_StageChanged) ProtoMessage

func (*Events_StageChanged) ProtoMessage()

func (*Events_StageChanged) ProtoReflect

func (x *Events_StageChanged) ProtoReflect() protoreflect.Message

func (*Events_StageChanged) Reset

func (x *Events_StageChanged) Reset()

func (*Events_StageChanged) String

func (x *Events_StageChanged) String() string

type Events_StartAuthentication

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

func (*Events_StartAuthentication) Descriptor deprecated

func (*Events_StartAuthentication) Descriptor() ([]byte, []int)

Deprecated: Use Events_StartAuthentication.ProtoReflect.Descriptor instead.

func (*Events_StartAuthentication) ProtoMessage

func (*Events_StartAuthentication) ProtoMessage()

func (*Events_StartAuthentication) ProtoReflect

func (*Events_StartAuthentication) Reset

func (x *Events_StartAuthentication) Reset()

func (*Events_StartAuthentication) String

func (x *Events_StartAuthentication) String() string

type Events_UiLayoutReceived

type Events_UiLayoutReceived struct {
	UiLayout *authd.UILayout `protobuf:"bytes,1,opt,name=uiLayout,proto3" json:"uiLayout,omitempty"`
	// contains filtered or unexported fields
}

func (*Events_UiLayoutReceived) Descriptor deprecated

func (*Events_UiLayoutReceived) Descriptor() ([]byte, []int)

Deprecated: Use Events_UiLayoutReceived.ProtoReflect.Descriptor instead.

func (*Events_UiLayoutReceived) GetUiLayout

func (x *Events_UiLayoutReceived) GetUiLayout() *authd.UILayout

func (*Events_UiLayoutReceived) ProtoMessage

func (*Events_UiLayoutReceived) ProtoMessage()

func (*Events_UiLayoutReceived) ProtoReflect

func (x *Events_UiLayoutReceived) ProtoReflect() protoreflect.Message

func (*Events_UiLayoutReceived) Reset

func (x *Events_UiLayoutReceived) Reset()

func (*Events_UiLayoutReceived) String

func (x *Events_UiLayoutReceived) String() string

type Events_UserSelected

type Events_UserSelected struct {
	UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

func (*Events_UserSelected) Descriptor deprecated

func (*Events_UserSelected) Descriptor() ([]byte, []int)

Deprecated: Use Events_UserSelected.ProtoReflect.Descriptor instead.

func (*Events_UserSelected) GetUserId

func (x *Events_UserSelected) GetUserId() string

func (*Events_UserSelected) ProtoMessage

func (*Events_UserSelected) ProtoMessage()

func (*Events_UserSelected) ProtoReflect

func (x *Events_UserSelected) ProtoReflect() protoreflect.Message

func (*Events_UserSelected) Reset

func (x *Events_UserSelected) Reset()

func (*Events_UserSelected) String

func (x *Events_UserSelected) String() string

type HelloData

type HelloData struct {
	Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*HelloData) Descriptor deprecated

func (*HelloData) Descriptor() ([]byte, []int)

Deprecated: Use HelloData.ProtoReflect.Descriptor instead.

func (*HelloData) GetVersion

func (x *HelloData) GetVersion() uint32

func (*HelloData) ProtoMessage

func (*HelloData) ProtoMessage()

func (*HelloData) ProtoReflect

func (x *HelloData) ProtoReflect() protoreflect.Message

func (*HelloData) Reset

func (x *HelloData) Reset()

func (*HelloData) String

func (x *HelloData) String() string

type Request

type Request = isRequestData_Data

Request is an interface implementing all the gdm requests.

type RequestData

type RequestData struct {
	Type RequestType `protobuf:"varint,1,opt,name=type,proto3,enum=gdm.RequestType" json:"type,omitempty"`
	// Types that are assignable to Data:
	//
	//	*RequestData_UiLayoutCapabilities
	//	*RequestData_ChangeStage
	Data isRequestData_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*RequestData) Descriptor deprecated

func (*RequestData) Descriptor() ([]byte, []int)

Deprecated: Use RequestData.ProtoReflect.Descriptor instead.

func (*RequestData) GetChangeStage

func (x *RequestData) GetChangeStage() *Requests_ChangeStage

func (*RequestData) GetData

func (m *RequestData) GetData() isRequestData_Data

func (*RequestData) GetType

func (x *RequestData) GetType() RequestType

func (*RequestData) GetUiLayoutCapabilities

func (x *RequestData) GetUiLayoutCapabilities() *Requests_UiLayoutCapabilities

func (*RequestData) ProtoMessage

func (*RequestData) ProtoMessage()

func (*RequestData) ProtoReflect

func (x *RequestData) ProtoReflect() protoreflect.Message

func (*RequestData) Reset

func (x *RequestData) Reset()

func (*RequestData) String

func (x *RequestData) String() string

type RequestData_ChangeStage

type RequestData_ChangeStage struct {
	ChangeStage *Requests_ChangeStage `protobuf:"bytes,11,opt,name=changeStage,proto3,oneof"`
}

type RequestData_UiLayoutCapabilities

type RequestData_UiLayoutCapabilities struct {
	UiLayoutCapabilities *Requests_UiLayoutCapabilities `protobuf:"bytes,10,opt,name=uiLayoutCapabilities,proto3,oneof"`
}

type RequestType

type RequestType int32
const (
	// RequestType_unknownRequest is an unknown request RequestType.
	RequestType_unknownRequest RequestType = 0
	// RequestType_updateBrokersList is an update brokers list RequestType.
	RequestType_updateBrokersList RequestType = 1
	// RequestType_composeAuthenticationView is an compose authentication view RequestType.
	RequestType_composeAuthenticationView RequestType = 2
	// RequestType_uiLayoutCapabilities is an ui layout capabilities RequestType.
	RequestType_uiLayoutCapabilities RequestType = 3
	// RequestType_changeStage is a change stage RequestType.
	RequestType_changeStage RequestType = 4
)

func (RequestType) Descriptor

func (RequestType) Enum

func (x RequestType) Enum() *RequestType

func (RequestType) EnumDescriptor deprecated

func (RequestType) EnumDescriptor() ([]byte, []int)

Deprecated: Use RequestType.Descriptor instead.

func (RequestType) Number

func (x RequestType) Number() protoreflect.EnumNumber

func (RequestType) String

func (x RequestType) String() string

func (RequestType) Type

type Requests

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

func (*Requests) Descriptor deprecated

func (*Requests) Descriptor() ([]byte, []int)

Deprecated: Use Requests.ProtoReflect.Descriptor instead.

func (*Requests) ProtoMessage

func (*Requests) ProtoMessage()

func (*Requests) ProtoReflect

func (x *Requests) ProtoReflect() protoreflect.Message

func (*Requests) Reset

func (x *Requests) Reset()

func (*Requests) String

func (x *Requests) String() string

type Requests_ChangeStage

type Requests_ChangeStage struct {
	Stage proto.Stage `protobuf:"varint,1,opt,name=stage,proto3,enum=pam.Stage" json:"stage,omitempty"`
	// contains filtered or unexported fields
}

func (*Requests_ChangeStage) Descriptor deprecated

func (*Requests_ChangeStage) Descriptor() ([]byte, []int)

Deprecated: Use Requests_ChangeStage.ProtoReflect.Descriptor instead.

func (*Requests_ChangeStage) GetStage

func (x *Requests_ChangeStage) GetStage() proto.Stage

func (*Requests_ChangeStage) ProtoMessage

func (*Requests_ChangeStage) ProtoMessage()

func (*Requests_ChangeStage) ProtoReflect

func (x *Requests_ChangeStage) ProtoReflect() protoreflect.Message

func (*Requests_ChangeStage) Reset

func (x *Requests_ChangeStage) Reset()

func (*Requests_ChangeStage) String

func (x *Requests_ChangeStage) String() string

type Requests_UiLayoutCapabilities

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

func (*Requests_UiLayoutCapabilities) Descriptor deprecated

func (*Requests_UiLayoutCapabilities) Descriptor() ([]byte, []int)

Deprecated: Use Requests_UiLayoutCapabilities.ProtoReflect.Descriptor instead.

func (*Requests_UiLayoutCapabilities) ProtoMessage

func (*Requests_UiLayoutCapabilities) ProtoMessage()

func (*Requests_UiLayoutCapabilities) ProtoReflect

func (*Requests_UiLayoutCapabilities) Reset

func (x *Requests_UiLayoutCapabilities) Reset()

func (*Requests_UiLayoutCapabilities) String

type Response

type Response = isResponseData_Data

Response is an interface implementing all the gdm responses.

func SendRequest

func SendRequest(pamMTx pam.ModuleTransaction, req Request) (Response, error)

SendRequest sends a Request to Gdm.

type ResponseData

type ResponseData struct {
	Type RequestType `protobuf:"varint,1,opt,name=type,proto3,enum=gdm.RequestType" json:"type,omitempty"`
	// Types that are assignable to Data:
	//
	//	*ResponseData_Ack
	//	*ResponseData_UiLayoutCapabilities
	Data isResponseData_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

func (*ResponseData) Descriptor deprecated

func (*ResponseData) Descriptor() ([]byte, []int)

Deprecated: Use ResponseData.ProtoReflect.Descriptor instead.

func (*ResponseData) GetAck

func (x *ResponseData) GetAck() *Responses_Ack

func (*ResponseData) GetData

func (m *ResponseData) GetData() isResponseData_Data

func (*ResponseData) GetType

func (x *ResponseData) GetType() RequestType

func (*ResponseData) GetUiLayoutCapabilities

func (x *ResponseData) GetUiLayoutCapabilities() *Responses_UiLayoutCapabilities

func (*ResponseData) ProtoMessage

func (*ResponseData) ProtoMessage()

func (*ResponseData) ProtoReflect

func (x *ResponseData) ProtoReflect() protoreflect.Message

func (*ResponseData) Reset

func (x *ResponseData) Reset()

func (*ResponseData) String

func (x *ResponseData) String() string

type ResponseData_Ack

type ResponseData_Ack struct {
	Ack *Responses_Ack `protobuf:"bytes,10,opt,name=ack,proto3,oneof"`
}

type ResponseData_UiLayoutCapabilities

type ResponseData_UiLayoutCapabilities struct {
	UiLayoutCapabilities *Responses_UiLayoutCapabilities `protobuf:"bytes,11,opt,name=uiLayoutCapabilities,proto3,oneof"`
}

type Responses

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

func (*Responses) Descriptor deprecated

func (*Responses) Descriptor() ([]byte, []int)

Deprecated: Use Responses.ProtoReflect.Descriptor instead.

func (*Responses) ProtoMessage

func (*Responses) ProtoMessage()

func (*Responses) ProtoReflect

func (x *Responses) ProtoReflect() protoreflect.Message

func (*Responses) Reset

func (x *Responses) Reset()

func (*Responses) String

func (x *Responses) String() string

type Responses_Ack

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

func (*Responses_Ack) Descriptor deprecated

func (*Responses_Ack) Descriptor() ([]byte, []int)

Deprecated: Use Responses_Ack.ProtoReflect.Descriptor instead.

func (*Responses_Ack) ProtoMessage

func (*Responses_Ack) ProtoMessage()

func (*Responses_Ack) ProtoReflect

func (x *Responses_Ack) ProtoReflect() protoreflect.Message

func (*Responses_Ack) Reset

func (x *Responses_Ack) Reset()

func (*Responses_Ack) String

func (x *Responses_Ack) String() string

type Responses_UiLayoutCapabilities

type Responses_UiLayoutCapabilities struct {
	SupportedUiLayouts []*authd.UILayout `protobuf:"bytes,10,rep,name=supportedUiLayouts,proto3" json:"supportedUiLayouts,omitempty"`
	// contains filtered or unexported fields
}

func (*Responses_UiLayoutCapabilities) Descriptor deprecated

func (*Responses_UiLayoutCapabilities) Descriptor() ([]byte, []int)

Deprecated: Use Responses_UiLayoutCapabilities.ProtoReflect.Descriptor instead.

func (*Responses_UiLayoutCapabilities) GetSupportedUiLayouts

func (x *Responses_UiLayoutCapabilities) GetSupportedUiLayouts() []*authd.UILayout

func (*Responses_UiLayoutCapabilities) ProtoMessage

func (*Responses_UiLayoutCapabilities) ProtoMessage()

func (*Responses_UiLayoutCapabilities) ProtoReflect

func (*Responses_UiLayoutCapabilities) Reset

func (x *Responses_UiLayoutCapabilities) Reset()

func (*Responses_UiLayoutCapabilities) String

Jump to

Keyboard shortcuts

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