ctl

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertChainResponse

type CertChainResponse struct {
	SctVersion int    `json:"sct_version"`
	ID         string `json:"id"`
	Timestamp  int64  `json:"timestamp"`
	Extensions string `json:"extensions"`
	Signature  string `json:"signature"`
}

type Client

type Client interface {
	AddChain(csc *ca.CodeSigningCertificate) (*CertChainResponse, error)
}

func New

func New(url string) Client

func WithLogging added in v0.2.0

func WithLogging(next Client, logger *zap.SugaredLogger) Client

WithLogging adds logging (in the writing helpful information to console sense) to a certificate transparenct log client

type ErrorResponse

type ErrorResponse struct {
	StatusCode int    `json:"statusCode"`
	ErrorCode  string `json:"errorCode"`
	Message    string `json:"message"`
}

func (*ErrorResponse) Error

func (err *ErrorResponse) Error() string

Jump to

Keyboard shortcuts

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