athenzconf

package
v1.10.29 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

README

athenzconf

Go library to parse Athenz configuration file

License

Copyright 2018 Oath, Inc.

Licensed under the Apache License, Version 2.0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AthenzConf

type AthenzConf struct {
	ZtsUrl        string `json:"ztsUrl"`
	ZmsUrl        string `json:"zmsUrl"`
	ZtsPublicKeys []struct {
		Id  string `json:"id"`
		Key string `json:"key"`
	} `json:"ztsPublicKeys"`
	ZmsPublicKeys []struct {
		Id  string `json:"id"`
		Key string `json:"key"`
	} `json:"zmsPublicKeys"`
}

func ReadConf

func ReadConf(athenzConf string) (*AthenzConf, error)

func (*AthenzConf) FetchZMSPublicKey

func (conf *AthenzConf) FetchZMSPublicKey(keyVersion string) ([]byte, error)

func (*AthenzConf) FetchZTSPublicKey

func (conf *AthenzConf) FetchZTSPublicKey(keyVersion string) ([]byte, error)

Jump to

Keyboard shortcuts

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