capability

package
v0.0.2412 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Copyright 2023 Contributors to the Veraison project. SPDX-License-Identifier: Apache-2.0

Index

Constants

View Source
const (
	WellKnownMediaType = "application/vnd.veraison.discovery+json"
)

Variables

This section is empty.

Functions

func ServiceStateToAPI

func ServiceStateToAPI(ss string) string

Types

type WellKnownInfo

type WellKnownInfo struct {
	PublicKey    jwk.Key           `json:"ear-verification-key,omitempty"`
	MediaTypes   []string          `json:"media-types,omitempty"`
	Schemes      []string          `json:"attestation-schemes,omitempty"`
	Version      string            `json:"version"`
	ServiceState string            `json:"service-state"`
	ApiEndpoints map[string]string `json:"api-endpoints"`
}

func NewWellKnownInfoObj

func NewWellKnownInfoObj(
	key jwk.Key,
	mediaTypes []string,
	schemes []string,
	version string,
	serviceState string,
	endpoints map[string]string,
) (*WellKnownInfo, error)

Jump to

Keyboard shortcuts

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