san

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

Functions

func VerifyDNSNameEntry

func VerifyDNSNameEntry(s string) error

Types

type Names

type Names struct {
	DNSNames []string
	IPAddrs  []net.IP
}

func ForThisHost

func ForThisHost(listenAddr string) (ns Names)

FIXME[P2]: should be ForThisListenAddr FIXME[P2]: Split. ns := ForThisHost, ns2 := FromListenAddr, ns = ns.Merge(ns2)

func FromCertificate

func FromCertificate(cert *x509.Certificate) Names

func FromProtoStruct

func FromProtoStruct(s *pb.Names) (Names, error)

func Parse

func Parse(s string) (ns Names, err error)

func (*Names) Add

func (ns *Names) Add(s string) error

Add parses s and adds the parsed subjectAltName to ns. It wont report duplicated entries as its error.

func (Names) Empty

func (ns Names) Empty() bool

func (Names) String

func (ns Names) String() (s string)

func (Names) ToProtoStruct

func (ns Names) ToProtoStruct() *pb.Names

func (*Names) UnmarshalFlag

func (p *Names) UnmarshalFlag(s string) error

func (*Names) UnmarshalYAML

func (ns *Names) UnmarshalYAML(unmarshal func(interface{}) error) error

func (Names) Verify

func (ns Names) Verify() error

Jump to

Keyboard shortcuts

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