kinto

package
v0.0.0-...-1e13fee Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(repo string) error

func StripPadding

func StripPadding(s string) string

func ToKintoKey

func ToKintoKey(cert *x509.Certificate) string

Types

type CanonicalEntry

type CanonicalEntry struct {
	Entry       KintoEntry
	Certificate *x509.Certificate
	State       Change
}

type Change

type Change = bool
const Added Change = true
const Removed Change = false

type ChangeSet

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

func Changes

func Changes() (*ChangeSet, error)

func NewChangeSet

func NewChangeSet() *ChangeSet

func (*ChangeSet) Added

func (c *ChangeSet) Added(entry KintoEntry)

func (*ChangeSet) Associate

func (c *ChangeSet) Associate(certs map[string][]*x509.Certificate)

func (*ChangeSet) Changed

func (c *ChangeSet) Changed() bool

func (*ChangeSet) Entries

func (c *ChangeSet) Entries() []KintoEntry

func (*ChangeSet) Get

func (c *ChangeSet) Get(cert *x509.Certificate) (KintoEntry, bool)

func (*ChangeSet) Keys

func (c *ChangeSet) Keys() []string

func (*ChangeSet) Length

func (c *ChangeSet) Length() int

func (*ChangeSet) Removed

func (c *ChangeSet) Removed(entry KintoEntry)

func (*ChangeSet) Serials

func (c *ChangeSet) Serials() []string

func (*ChangeSet) State

func (c *ChangeSet) State() []CanonicalEntry

type Details

type Details struct {
	Bug     string `json:"bug"`
	Who     string `json:"who"`
	Why     string `json:"why"`
	Name    string `json:"name"`
	Created string `json:"created"`
}

type KintoArray

type KintoArray struct {
	Data []KintoEntry `json:"data"`
}

Raw OneCRL representations

type KintoEntry

type KintoEntry struct {
	Schema       int64   `json:"schema"`
	Details      Details `json:"details"`
	Enabled      bool    `json:"enabled"`
	IssuerName   string  `json:"issuerName"`
	SerialNumber string  `json:"serialNumber"`
	ID           string  `json:"id"`
	LastModified int64   `json:"lastModified"`
}

func (*KintoEntry) HexSerial

func (k *KintoEntry) HexSerial() string

func (*KintoEntry) Key

func (k *KintoEntry) Key() string

func (*KintoEntry) ReadableIssuer

func (k *KintoEntry) ReadableIssuer() string

func (*KintoEntry) SameIssuer

func (k *KintoEntry) SameIssuer(cert *x509.Certificate) bool

func (*KintoEntry) Timestamp

func (k *KintoEntry) Timestamp() string

type KintoSet

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

func NewKintoSet

func NewKintoSet() *KintoSet

func (*KintoSet) Diff

func (k *KintoSet) Diff(other *KintoSet) *ChangeSet

func (*KintoSet) UnmarshalJSON

func (k *KintoSet) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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