pb

package
v0.0.0-...-b3f00df Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

pb contains the protobuf definition and its generated code. The protocol is designed to resemble idp.Interface. By doing so, adapter implementations can be provided in order to free users from having to worry about the GRPC details. See the github.com/absurdlab/dyna-go-sdk/idp/grpc package for client and server implementations.

As a note, the idp.pb.go file in this directory is generated by the command:

// Install protobuf package on the OS before proceeding.
// For Mac OS, run `brew install protobuf`
protoc -I=./ --go_out=plugins=grpc:. idp.proto

Index

Constants

This section is empty.

Variables

Functions

func RegisterIdpServer

func RegisterIdpServer(s *grpc.Server, srv IdpServer)

Types

type AuthenticationDetailsRequest

type AuthenticationDetailsRequest struct {
	Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	Amr     string `protobuf:"bytes,2,opt,name=amr,proto3" json:"amr,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticationDetailsRequest) Descriptor deprecated

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

Deprecated: Use AuthenticationDetailsRequest.ProtoReflect.Descriptor instead.

func (*AuthenticationDetailsRequest) GetAmr

func (*AuthenticationDetailsRequest) GetSubject

func (x *AuthenticationDetailsRequest) GetSubject() string

func (*AuthenticationDetailsRequest) ProtoMessage

func (*AuthenticationDetailsRequest) ProtoMessage()

func (*AuthenticationDetailsRequest) ProtoReflect

func (*AuthenticationDetailsRequest) Reset

func (x *AuthenticationDetailsRequest) Reset()

func (*AuthenticationDetailsRequest) String

type AuthenticationDetailsResponse

type AuthenticationDetailsResponse struct {
	Meta    *Meta  `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	Amr     string `protobuf:"bytes,2,opt,name=amr,proto3" json:"amr,omitempty"`
	Details []byte `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticationDetailsResponse) Descriptor deprecated

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

Deprecated: Use AuthenticationDetailsResponse.ProtoReflect.Descriptor instead.

func (*AuthenticationDetailsResponse) GetAmr

func (*AuthenticationDetailsResponse) GetDetails

func (x *AuthenticationDetailsResponse) GetDetails() []byte

func (*AuthenticationDetailsResponse) GetMeta

func (x *AuthenticationDetailsResponse) GetMeta() *Meta

func (*AuthenticationDetailsResponse) ProtoMessage

func (*AuthenticationDetailsResponse) ProtoMessage()

func (*AuthenticationDetailsResponse) ProtoReflect

func (*AuthenticationDetailsResponse) Reset

func (x *AuthenticationDetailsResponse) Reset()

func (*AuthenticationDetailsResponse) String

type AuthenticationPolicyRequest

type AuthenticationPolicyRequest struct {
	Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	Acr     string `protobuf:"bytes,2,opt,name=acr,proto3" json:"acr,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticationPolicyRequest) Descriptor deprecated

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

Deprecated: Use AuthenticationPolicyRequest.ProtoReflect.Descriptor instead.

func (*AuthenticationPolicyRequest) GetAcr

func (x *AuthenticationPolicyRequest) GetAcr() string

func (*AuthenticationPolicyRequest) GetSubject

func (x *AuthenticationPolicyRequest) GetSubject() string

func (*AuthenticationPolicyRequest) ProtoMessage

func (*AuthenticationPolicyRequest) ProtoMessage()

func (*AuthenticationPolicyRequest) ProtoReflect

func (*AuthenticationPolicyRequest) Reset

func (x *AuthenticationPolicyRequest) Reset()

func (*AuthenticationPolicyRequest) String

func (x *AuthenticationPolicyRequest) String() string

type AuthenticationPolicyResponse

type AuthenticationPolicyResponse struct {
	Meta *Meta    `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	Amr  []string `protobuf:"bytes,2,rep,name=amr,proto3" json:"amr,omitempty"`
	Acr  string   `protobuf:"bytes,3,opt,name=acr,proto3" json:"acr,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticationPolicyResponse) Descriptor deprecated

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

Deprecated: Use AuthenticationPolicyResponse.ProtoReflect.Descriptor instead.

func (*AuthenticationPolicyResponse) GetAcr

func (*AuthenticationPolicyResponse) GetAmr

func (x *AuthenticationPolicyResponse) GetAmr() []string

func (*AuthenticationPolicyResponse) GetMeta

func (x *AuthenticationPolicyResponse) GetMeta() *Meta

func (*AuthenticationPolicyResponse) ProtoMessage

func (*AuthenticationPolicyResponse) ProtoMessage()

func (*AuthenticationPolicyResponse) ProtoReflect

func (*AuthenticationPolicyResponse) Reset

func (x *AuthenticationPolicyResponse) Reset()

func (*AuthenticationPolicyResponse) String

type Error

type Error struct {
	Code        string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*Error) Descriptor deprecated

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetCode

func (x *Error) GetCode() string

func (*Error) GetDescription

func (x *Error) GetDescription() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

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

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

type GetClaimsRequest

type GetClaimsRequest struct {
	Subject string   `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	Claims  []string `protobuf:"bytes,2,rep,name=claims,proto3" json:"claims,omitempty"`
	// contains filtered or unexported fields
}

func (*GetClaimsRequest) Descriptor deprecated

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

Deprecated: Use GetClaimsRequest.ProtoReflect.Descriptor instead.

func (*GetClaimsRequest) GetClaims

func (x *GetClaimsRequest) GetClaims() []string

func (*GetClaimsRequest) GetSubject

func (x *GetClaimsRequest) GetSubject() string

func (*GetClaimsRequest) ProtoMessage

func (*GetClaimsRequest) ProtoMessage()

func (*GetClaimsRequest) ProtoReflect

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

func (*GetClaimsRequest) Reset

func (x *GetClaimsRequest) Reset()

func (*GetClaimsRequest) String

func (x *GetClaimsRequest) String() string

type GetClaimsResponse

type GetClaimsResponse struct {
	Meta *Meta  `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetClaimsResponse) Descriptor deprecated

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

Deprecated: Use GetClaimsResponse.ProtoReflect.Descriptor instead.

func (*GetClaimsResponse) GetData

func (x *GetClaimsResponse) GetData() []byte

func (*GetClaimsResponse) GetMeta

func (x *GetClaimsResponse) GetMeta() *Meta

func (*GetClaimsResponse) ProtoMessage

func (*GetClaimsResponse) ProtoMessage()

func (*GetClaimsResponse) ProtoReflect

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

func (*GetClaimsResponse) Reset

func (x *GetClaimsResponse) Reset()

func (*GetClaimsResponse) String

func (x *GetClaimsResponse) String() string

type GetUserRequest

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

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetUsername

func (x *GetUserRequest) GetUsername() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

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

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

type GetUserResponse

type GetUserResponse struct {
	Meta    *Meta  `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
	Detail  []byte `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserResponse) Descriptor deprecated

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

Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.

func (*GetUserResponse) GetDetail

func (x *GetUserResponse) GetDetail() []byte

func (*GetUserResponse) GetMeta

func (x *GetUserResponse) GetMeta() *Meta

func (*GetUserResponse) GetSubject

func (x *GetUserResponse) GetSubject() string

func (*GetUserResponse) ProtoMessage

func (*GetUserResponse) ProtoMessage()

func (*GetUserResponse) ProtoReflect

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

func (*GetUserResponse) Reset

func (x *GetUserResponse) Reset()

func (*GetUserResponse) String

func (x *GetUserResponse) String() string

type IdpClient

IdpClient is the client API for Idp service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewIdpClient

func NewIdpClient(cc grpc.ClientConnInterface) IdpClient

type Meta

type Meta struct {
	Ok    bool   `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*Meta) Descriptor deprecated

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

Deprecated: Use Meta.ProtoReflect.Descriptor instead.

func (*Meta) GetError

func (x *Meta) GetError() *Error

func (*Meta) GetOk

func (x *Meta) GetOk() bool

func (*Meta) ProtoMessage

func (*Meta) ProtoMessage()

func (*Meta) ProtoReflect

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

func (*Meta) Reset

func (x *Meta) Reset()

func (*Meta) String

func (x *Meta) String() string

type PasswordValidationRequest

type PasswordValidationRequest struct {
	Subject  string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*PasswordValidationRequest) Descriptor deprecated

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

Deprecated: Use PasswordValidationRequest.ProtoReflect.Descriptor instead.

func (*PasswordValidationRequest) GetPassword

func (x *PasswordValidationRequest) GetPassword() string

func (*PasswordValidationRequest) GetSubject

func (x *PasswordValidationRequest) GetSubject() string

func (*PasswordValidationRequest) ProtoMessage

func (*PasswordValidationRequest) ProtoMessage()

func (*PasswordValidationRequest) ProtoReflect

func (*PasswordValidationRequest) Reset

func (x *PasswordValidationRequest) Reset()

func (*PasswordValidationRequest) String

func (x *PasswordValidationRequest) String() string

type PasswordValidationResponse

type PasswordValidationResponse struct {
	Meta *Meta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*PasswordValidationResponse) Descriptor deprecated

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

Deprecated: Use PasswordValidationResponse.ProtoReflect.Descriptor instead.

func (*PasswordValidationResponse) GetMeta

func (x *PasswordValidationResponse) GetMeta() *Meta

func (*PasswordValidationResponse) ProtoMessage

func (*PasswordValidationResponse) ProtoMessage()

func (*PasswordValidationResponse) ProtoReflect

func (*PasswordValidationResponse) Reset

func (x *PasswordValidationResponse) Reset()

func (*PasswordValidationResponse) String

func (x *PasswordValidationResponse) String() string

type UnimplementedIdpServer

type UnimplementedIdpServer struct {
}

UnimplementedIdpServer can be embedded to have forward compatible implementations.

func (*UnimplementedIdpServer) GetClaims

func (*UnimplementedIdpServer) GetUser

Jump to

Keyboard shortcuts

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