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)
Click to show internal directories.
Click to hide internal directories.