reg

package
v0.1.0-alpha.8 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2018 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCertificateFromCSR

func GenerateCertificateFromCSR(crt, key, csr []byte) (signed *x509.Certificate, err error)

GenerateCertificateFromCSR creates a signed certificate using the provided certificate, key, and CSR.

Types

type Registrator

type Registrator struct {
	Data *userdata.OSSecurity
}

Registrator is the concrete type that implements the factory.Registrator and proto.ROTDServer interfaces.

func (*Registrator) Certificate

func (r *Registrator) Certificate(ctx context.Context, in *proto.CertificateRequest) (resp *proto.CertificateResponse, err error)

Certificate implements the proto.ROTDServer interface.

func (*Registrator) Register

func (r *Registrator) Register(s *grpc.Server)

Register implements the factory.Registrator interface.

func (*Registrator) WriteFile

func (r *Registrator) WriteFile(ctx context.Context, in *proto.WriteFileRequest) (resp *proto.WriteFileResponse, err error)

WriteFile implements the proto.ROTDServer interface.

Jump to

Keyboard shortcuts

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