msgs

package
v0.0.0-...-33782cb Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditEvent

type AuditEvent struct {
	Time              time.Time         `json:"time"`
	EventType         AuditEventType    `json:"event_type"`
	ID                string            `json:"id"`
	PleaseSignRequest PleaseSignRequest `json:"please_sign_request"`
	PubKeyFingerprint string            `json:"public_key_fingerprint"`
}

type AuditEventType

type AuditEventType string
const (
	AuditEventPleaseSignRequest AuditEventType = "please_sign_request"
	AuditEventSignedRequest     AuditEventType = "signed_request"
)

type PleaseSignRequest

type PleaseSignRequest struct {
	PublicKey           []byte `json:"public_key"`
	Host                string `json:"host"`
	Username            string `json:"username"`
	CompleteCallbackURL string `json:"complete_callback_url"`

	// client should not set these
	ClientAddr string    `json:"client_addr"`
	ReqTime    time.Time `json:"req_time"`
}

type PleaseSignResponse

type PleaseSignResponse struct {
	AuthorizeURL string `json:"authorize_url"`
}

type SignResult

type SignResult struct {
	Status      SignResultStatus `json:"status"`
	Certificate []byte           `json:"certificate"`
}

type SignResultStatus

type SignResultStatus int
const (
	SignResultPending SignResultStatus = 0
	SignResultSuccess SignResultStatus = 1
	SignResultFail    SignResultStatus = 2
)

Jump to

Keyboard shortcuts

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