auth

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	RetrieveTokenBearer() bool
	CheckTokenValidity() bool
	GetTokenBearer() string
	GetSessionID() string
	GetSession() common.SessionData
}

Client - Our primary client interface

func NewAuth

func NewAuth(environmentName string, sess common.SessionData) Client

NewAuth - return an interface to the Auth routines

type Info

type Info struct {
	TokenBearer string
	Session     common.SessionData
	Environment string
}

Info - Our auth properties

func (*Info) CheckTokenValidity

func (i *Info) CheckTokenValidity() bool

CheckTokenValidity - Verify that the token is still good.

func (*Info) GetSession

func (i *Info) GetSession() common.SessionData

GetSession - Return Session Info

func (*Info) GetSessionID

func (i *Info) GetSessionID() string

GetSessionID - Return the SessionID

func (*Info) GetTokenBearer

func (i *Info) GetTokenBearer() string

GetTokenBearer - Return the Token Bearer

func (*Info) RetrieveTokenBearer

func (i *Info) RetrieveTokenBearer() bool

RetrieveTokenBearer - fetch the token from the K8s secret

Jump to

Keyboard shortcuts

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