keyusage

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KeyUsageCA = KeyUsage{
	KeyUsage: x509.KeyUsageCertSign | x509.KeyUsageCRLSign,

	ExtKeyUsages: nil,
}

Functions

This section is empty.

Types

type KeyUsage

type KeyUsage struct {
	KeyUsage     x509.KeyUsage
	ExtKeyUsages []x509.ExtKeyUsage
}

func FromCertificate

func FromCertificate(cert *x509.Certificate) KeyUsage

func FromProtoStruct

func FromProtoStruct(s *pb.KeyUsage) KeyUsage

func PresetFromString

func PresetFromString(s string) (KeyUsage, error)

func (KeyUsage) Clone

func (u KeyUsage) Clone() KeyUsage

func (KeyUsage) ToProtoStruct

func (u KeyUsage) ToProtoStruct() *pb.KeyUsage

func (*KeyUsage) UnmarshalFlag

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

func (*KeyUsage) UnmarshalYAML

func (u *KeyUsage) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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