server

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateRequest

type CertificateRequest interface {
	GetID() string
	GetSerial() string
	GetAKI() string
	GetNotRevoked() bool
	GetNotExpired() bool
	GetRevokedTimeStart() *time.Time
	GetRevokedTimeEnd() *time.Time
	GetExpiredTimeStart() *time.Time
	GetExpiredTimeEnd() *time.Time
}

CertificateRequest defines the properties of a certificate request

type CertificateRequestImpl

type CertificateRequestImpl struct {
	ID               string
	SerialNumber     string
	Aki              string
	Notexpired       bool
	Notrevoked       bool
	ExpiredTimeStart *time.Time
	ExpiredTimeEnd   *time.Time
	RevokedTimeStart *time.Time
	RevokedTimeEnd   *time.Time
}

CertificateRequestImpl defines the properties of a certificate request

func NewCertificateRequest

func NewCertificateRequest(ctx RequestContext) (*CertificateRequestImpl, error)

NewCertificateRequest returns a certificate request object

func (*CertificateRequestImpl) GetAKI

func (c *CertificateRequestImpl) GetAKI() string

GetAKI returns the AKI filter value

func (*CertificateRequestImpl) GetExpiredTimeEnd

func (c *CertificateRequestImpl) GetExpiredTimeEnd() *time.Time

GetExpiredTimeEnd returns the ending expiration time filter value

func (*CertificateRequestImpl) GetExpiredTimeStart

func (c *CertificateRequestImpl) GetExpiredTimeStart() *time.Time

GetExpiredTimeStart returns the starting expiration time filter value

func (*CertificateRequestImpl) GetID

func (c *CertificateRequestImpl) GetID() string

GetID returns the enrollment id filter value

func (*CertificateRequestImpl) GetNotExpired

func (c *CertificateRequestImpl) GetNotExpired() bool

GetNotExpired returns the notexpired bool value

func (*CertificateRequestImpl) GetNotRevoked

func (c *CertificateRequestImpl) GetNotRevoked() bool

GetNotRevoked returns the notrevoked bool value

func (*CertificateRequestImpl) GetRevokedTimeEnd

func (c *CertificateRequestImpl) GetRevokedTimeEnd() *time.Time

GetRevokedTimeEnd returns the ending revoked time filter value

func (*CertificateRequestImpl) GetRevokedTimeStart

func (c *CertificateRequestImpl) GetRevokedTimeStart() *time.Time

GetRevokedTimeStart returns the starting revoked time filter value

func (*CertificateRequestImpl) GetSerial

func (c *CertificateRequestImpl) GetSerial() string

GetSerial returns the serial number filter value

type RequestContext

type RequestContext interface {
	GetQueryParm(string) string
	GetBoolQueryParm(string) (bool, error)
}

RequestContext describes the request

type TimeFilters

type TimeFilters struct {
	// contains filtered or unexported fields
}

TimeFilters defines the various times that can be used as filters

Directories

Path Synopsis
mocks
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.

Jump to

Keyboard shortcuts

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