api

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extension

type Extension string

type KeySignRequest

type KeySignRequest struct {
	Username   string      `json:"username"`
	APIKey     string      `json:"api_key"`
	Principals []string    `json:"principals"`
	Key        string      `json:"key"`
	Extensions []Extension `json:"extensions"`
}

type KeySignResponse

type KeySignResponse struct {
	Success   bool   `json:"success"`
	Message   any    `json:"message"`
	SignedKey string `json:"signedKey"`
	NotBefore uint64 `json:"notBefore"`
	NotAfter  uint64 `json:"notAfter"`
}

func NewKeySignResponse

func NewKeySignResponse(success bool, message any) *KeySignResponse

Jump to

Keyboard shortcuts

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