config

package
v0.0.0-...-d812936 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteConfigFile

func WriteConfigFile(config *Config, filePath string) error

WriteConfigFile writes a YAML version of the config to the given path

Types

type Client

type Client struct {
	OrgUrl            string `yaml:"orgUrl"`
	AuthorizationMode string `yaml:"authorizationMode"`
	ClientId          string `yaml:"clientId"`
	PrivateKey        string `yaml:"privateKey"`
}

type Config

type Config struct {
	Okta Okta `yaml:"okta"`
}

func NewConfig

func NewConfig(privateKey *rsa.PrivateKey, clientID, orgURL string) *Config

NewConfig creates a config by encoding the rsa private key as a pem key

func ReadConfigFile

func ReadConfigFile(filePath string) (*Config, error)

ReadConfigFile reads a YAML version of the config from the given path

type Okta

type Okta struct {
	Client Client `yaml:"client"`
}

Jump to

Keyboard shortcuts

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