keyserver

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CertBundleName     string            `mapstructure:"certBundleName"`
	PublishRefreshTime time.Duration     `mapstructure:"publishRefreshTime"`
	CertName           string            `mapstructure:"certName"`
	SigningCert        string            `mapstructure:"signingCert"`
	SigningKey         string            `mapstructure:"signingKey"`
	PublishLocations   []PublishLocation `mapstructure:"publishLocations"`
}

type KeyServer

type KeyServer struct {
	Keyman *keymanagement.KeyManager
	Config
	DB *gorm.DB
	// contains filtered or unexported fields
}

func New

func New(logger *zap.Logger, config Config, dbHandle *gorm.DB) (*KeyServer, error)

func (*KeyServer) HandleSubmitCert

func (ks *KeyServer) HandleSubmitCert(ctx *gin.Context)

func (*KeyServer) PublishBundle

func (ks *KeyServer) PublishBundle()

PublishBundle starts the publish process.

func (*KeyServer) ServiceLiveness added in v0.2.6

func (ks *KeyServer) ServiceLiveness(ctx *gin.Context)

ServiceLiveness is an endpoint to see if the service is alive. Just returns a 200 for now, but once we have a lightweight way of checking if the service is working properly, we should add it here.

type PublishLocation added in v0.3.0

type PublishLocation struct {
	Type            string `mapstructure:"type"`
	EndPoint        string `mapstructure:"endPoint"`
	BucketName      string `mapstructure:"bucketName"`
	AccessKeyID     string `mapstructure:"accessKeyID"`
	SecretAccessKey string `mapstructure:"secretAccessKey"`
	UseSSL          bool   `mapstructure:"useSSL"`
}

Jump to

Keyboard shortcuts

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