common

package
v0.0.0-...-6397972 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRSAKey

func NewRSAKey(keyName string, section *ini.Section) (key *keys.RSAKey)

func SaveConfig

func SaveConfig(c *cli.Context, configuration *Configuration) (err error)

Types

type Configuration

type Configuration struct {
	Namespace    string
	Jurisdiction string
	JwtConfig    JWTAuth
}

func NewConfigurationWithRSAKey

func NewConfigurationWithRSAKey(namespace string, jurisdiction string, key *keys.RSAKey) (config *Configuration)

func OpenConfig

func OpenConfig(c *cli.Context, namespace string, jurisdiction string) (config *Configuration, err error)

func (*Configuration) UpdateSection

func (c *Configuration) UpdateSection(section *ini.Section)

type JWTAuth

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

func (*JWTAuth) ChangeKey

func (config *JWTAuth) ChangeKey(key *keys.RSAKey) error

func (*JWTAuth) Key

func (config *JWTAuth) Key() *keys.RSAKey

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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