athenzconf

package
v1.11.59 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

README

athenzconf

Go library to parse Athenz configuration file

License

Copyright The Athenz Authors

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