docs: Corrected documentation on a few methods.

This commit is contained in:
max furman 2019-03-04 12:15:57 -08:00
parent 98b3d971f6
commit 4fba7e05f9

View file

@ -46,7 +46,8 @@ type dnsNamesClaim struct {
names []string names []string
} }
// Valid checks that certificate request common name matches the one configured. // Valid checks that certificate request DNS Names match those configured in
// the bootstrap (token) flow.
func (c *dnsNamesClaim) Valid(crt *x509.Certificate) error { func (c *dnsNamesClaim) Valid(crt *x509.Certificate) error {
tokMap := make(map[string]int) tokMap := make(map[string]int)
for _, e := range c.names { for _, e := range c.names {
@ -66,7 +67,8 @@ type ipAddressesClaim struct {
ips []net.IP ips []net.IP
} }
// Valid checks that certificate request common name matches the one configured. // Valid checks that certificate request IP Addresses match those configured in
// the bootstrap (token) flow.
func (c *ipAddressesClaim) Valid(crt *x509.Certificate) error { func (c *ipAddressesClaim) Valid(crt *x509.Certificate) error {
tokMap := make(map[string]int) tokMap := make(map[string]int)
for _, e := range c.ips { for _, e := range c.ips {