san

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2020 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 ForListenAddr added in v0.1.0

func ForListenAddr(listenAddr string) (Names, error)

func ForThisHost

func ForThisHost() (ns Names)

func FromCertificate

func FromCertificate(cert *x509.Certificate) Names

func FromProtoStruct

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

func MustParse added in v0.1.0

func MustParse(s string) Names

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) CompatibleWith added in v0.1.0

func (a Names) CompatibleWith(b Names) error

func (*Names) Concat added in v0.1.0

func (a *Names) Concat(b Names)

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