trc

package
v0.0.0-...-3dd0d21 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PurposeVote     = "vote"
	PurposeNewVoter = "new voter"
	PurposeRootAck  = "root acknowledgement"
)

Variables

This section is empty.

Functions

func NewCmd

func NewCmd(pather command.Pather) *cobra.Command

func NewInspectCmd

func NewInspectCmd(pather command.Pather) *cobra.Command

Types

type CertDesc

type CertDesc struct {
	Type         string   `yaml:"type,omitempty" json:"type,omitempty"`
	CommonName   string   `yaml:"common_name,omitempty" json:"common_name,omitempty"`
	IA           addr.IA  `yaml:"isd_as,omitempty" json:"isd_as,omitempty"`
	SerialNumber string   `yaml:"serial_number,omitempty" json:"serial_number,omitempty"`
	Validity     Validity `yaml:"validity,omitempty" json:"validity,omitempty"`
	Index        int      `yaml:"index" json:"index"`
	Error        string   `yaml:"error,omitempty" json:"error,omitempty"`
}

type ID

type ID struct {
	ISD    addr.ISD `yaml:"isd" json:"isd"`
	Base   uint64   `yaml:"base_number" json:"base_number"`
	Serial uint64   `yaml:"serial_number" json:"serial_number"`
}

type Info

type Info struct {
	Version           int          `yaml:"version" json:"version"`
	ID                ID           `yaml:"id" json:"id"`
	Validity          Validity     `yaml:"validity" json:"validity"`
	GracePeriod       string       `yaml:"graceperiod,omitempty" json:"graceperiod,omitempty"`
	GracePeriodEnd    time.Time    `yaml:"graceperiod_end,omitempty" json:"graceperiod_end,omitempty"`
	NoTrustReset      bool         `yaml:"no_trust_reset" json:"no_trust_reset"`
	Votes             []int        `yaml:"votes,omitempty" json:"votes,omitempty"`
	Quorum            int          `yaml:"voting_quorum" json:"voting_quorum"`
	CoreASes          []addr.AS    `yaml:"core_ases" json:"core_ases"`
	AuthoritativeASes []addr.AS    `yaml:"authoritative_ases" json:"authoritative_ases"`
	Description       string       `yaml:"description" json:"description"`
	Certificates      []CertDesc   `yaml:"certificates" json:"certificates"`
	Signatures        []SignerInfo `yaml:"signatures,omitempty" json:"signatures,omitempty"`
}

type SignerInfo

type SignerInfo struct {
	CommonName   string    `yaml:"common_name,omitempty" json:"common_name,omitempty"`
	IA           addr.IA   `yaml:"isd_as,omitempty" json:"isd_as,omitempty"`
	SerialNumber string    `yaml:"serial_number,omitempty" json:"serial_number,omitempty"`
	SigningTime  time.Time `yaml:"signing_time,omitempty" json:"signing_time,omitempty"`
	Purpose      string    `yaml:"purpose,omitempty" json:"purpose,omitempty"`
	Error        string    `yaml:"error,omitempty" json:"error,omitempty"`
}

type Validity

type Validity struct {
	NotBefore time.Time `yaml:"not_before" json:"not_before"`
	NotAfter  time.Time `yaml:"not_after" json:"not_after"`
}

Jump to

Keyboard shortcuts

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