server

package
v0.0.0-...-8f55651 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
}

type Inca

type Inca struct {
	*fiber.App
	Storage   *storage.Storage
	Providers []*provider.Provider
	// contains filtered or unexported fields
}

func Spinup

func Spinup(path string) (*Inca, error)

type JSONCrt

type JSONCrt struct {
	CN            string       `json:"name"`
	AltNames      []string     `json:"alt"`
	NotBefore     string       `json:"not_before"`
	NotAfter      string       `json:"not_after"`
	Organization  string       `json:"organization"`
	Country       string       `json:"country"`
	Province      string       `json:"province"`
	Locality      string       `json:"locality"`
	StreetAddress string       `json:"street_address"`
	PostalCode    string       `json:"postal_code"`
	Provider      JSONProvider `json:"provider"`
}

func EncodeCrt

func EncodeCrt(crt *x509.Certificate, provider *provider.Provider) JSONCrt

type JSONProvider

type JSONProvider struct {
	ID     string            `json:"id"`
	Config map[string]string `json:"config"`
}

func EncodeProvider

func EncodeProvider(provider *provider.Provider) JSONProvider

func EncodeProviders

func EncodeProviders(providers []*provider.Provider) (encoded []JSONProvider)

type JSONStorage

type JSONStorage JSONProvider

func EncodeStorage

func EncodeStorage(storage *storage.Storage) JSONStorage

Directories

Path Synopsis
SPDX-FileCopyrightText: 2020 Eder Sosa <eder.sohe@gmail.com> SPDX-License-Identifier: MIT
SPDX-FileCopyrightText: 2020 Eder Sosa <eder.sohe@gmail.com> SPDX-License-Identifier: MIT

Jump to

Keyboard shortcuts

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