internal

package
v0.0.1-0...-e5b290b Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(message proto.Message) ([]byte, error)

Marshal converts a protobuf message to a URL legal string.

func Unmarshal

func Unmarshal(data []byte, message proto.Message) error

Unmarshal decodes a protobuf message.

Types

type Challenge

type Challenge struct {
	SessionId            string   `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	IssuedAt             int64    `protobuf:"varint,2,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"`
	Expiration           int64    `protobuf:"varint,3,opt,name=expiration,proto3" json:"expiration,omitempty"`
	Principal            string   `protobuf:"bytes,4,opt,name=principal,proto3" json:"principal,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Challenge is the authentication challenge to be used by client

func (*Challenge) Descriptor

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

func (*Challenge) GetExpiration

func (m *Challenge) GetExpiration() int64

func (*Challenge) GetIssuedAt

func (m *Challenge) GetIssuedAt() int64

func (*Challenge) GetPrincipal

func (m *Challenge) GetPrincipal() string

func (*Challenge) GetSessionId

func (m *Challenge) GetSessionId() string

func (*Challenge) IsExpired

func (ch *Challenge) IsExpired() bool

IsExpired retruns the challenge expiration status

func (*Challenge) ProtoMessage

func (*Challenge) ProtoMessage()

func (*Challenge) Reset

func (m *Challenge) Reset()

func (*Challenge) String

func (m *Challenge) String() string

func (*Challenge) XXX_DiscardUnknown

func (m *Challenge) XXX_DiscardUnknown()

func (*Challenge) XXX_Marshal

func (m *Challenge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Challenge) XXX_Merge

func (m *Challenge) XXX_Merge(src proto.Message)

func (*Challenge) XXX_Size

func (m *Challenge) XXX_Size() int

func (*Challenge) XXX_Unmarshal

func (m *Challenge) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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