config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Athenz

type Athenz struct {
	URL                   string `yaml:"url"`
	PubkeyRefreshDuration string `yaml:"pubkeyRefreshDutation"`
	PolicyRefreshDuration string `yaml:"policyRefreshDuration"`
	Domain                string `yaml:"domain"`
	Policy                Policy `yaml:"policy"`
	Hdr                   string `yaml:"hdr"`
}

Athenz is the struct of basic information for athenz

type Config

type Config struct {
	Athenz Athenz `yaml:"athenz"`
}

Config contains all the structs

func NewConfig

func NewConfig(path string) (*Config, error)

NewConfig initializes the kmsconsole config with YAML

type Policy

type Policy struct {
	Resource string `yaml:"resource"`
	Action   string `yaml:"action"`
}

Policy is the struct for policy to validate access

Jump to

Keyboard shortcuts

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