keymodels

package
v0.0.0-...-5004fd2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package keymodels provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen/v2 version v2.0.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateKeyPolicyRequest

type CreateKeyPolicyRequest struct {
	DisplayName string `json:"displayName,omitempty"`
	ExpiryTime  string `json:"expiryTime,omitempty"`
	Exportable  *bool  `json:"exportable,omitempty"`

	// KeySpec these attributes should mostly confirm to JWK (RFC7517)
	KeySpec *JsonWebKeySpec `json:"keySpec,omitempty"`
}

CreateKeyPolicyRequest defines model for CreateKeyPolicyRequest.

type JsonWebKey

type JsonWebKey = cloudkey.JsonWebKey

JsonWebKey defines model for JsonWebKey.

type JsonWebKeyCurveName

type JsonWebKeyCurveName = cloudkey.JsonWebKeyCurveName

JsonWebKeyCurveName defines model for JsonWebKeyCurveName.

type JsonWebKeyOperation

type JsonWebKeyOperation = cloudkey.JsonWebKeyOperation

JsonWebKeyOperation defines model for JsonWebKeyOperation.

type JsonWebKeySpec

type JsonWebKeySpec struct {
	Alg           string                `json:"alg,omitempty"`
	Crv           JsonWebKeyCurveName   `json:"crv,omitempty"`
	Extractable   *bool                 `json:"ext,omitempty"`
	KeyOperations []JsonWebKeyOperation `json:"key_ops,omitempty"`
	KeySize       *int                  `json:"key_size,omitempty"`
	Kty           JsonWebKeyType        `json:"kty,omitempty"`
}

JsonWebKeySpec these attributes should mostly confirm to JWK (RFC7517)

func (*JsonWebKeySpec) Digest

func (jwkspec *JsonWebKeySpec) Digest(w io.Writer)

type JsonWebKeyType

type JsonWebKeyType = cloudkey.JsonWebKeyType

JsonWebKeyType defines model for JsonWebKeyType.

type JsonWebSignatureAlgorithm

type JsonWebSignatureAlgorithm = cloudkey.JsonWebSignatureAlgorithm

JsonWebSignatureAlgorithm defines model for JsonWebSignatureAlgorithm.

type Key

type Key = keyComposed

Key defines model for Key.

type KeyFields

type KeyFields struct {
	Identififier string                    `json:"identififier"`
	Jwk          JsonWebKey                `json:"jwk"`
	Nbf          *externalRef0.NumericDate `json:"nbf,omitempty"`

	// Sid Key Vault Secret ID
	KeyVaultSecretID string `json:"sid,omitempty"`
}

KeyFields defines model for KeyFields.

type KeyPolicy

type KeyPolicy = keyPolicyComposed

KeyPolicy defines model for KeyPolicy.

type KeyPolicyFields

type KeyPolicyFields struct {
	ExpiryTime string `json:"expiryTime,omitempty"`

	// KeySpec these attributes should mostly confirm to JWK (RFC7517)
	KeySpec JsonWebKeySpec `json:"keySpec"`
}

KeyPolicyFields defines model for KeyPolicyFields.

type KeyPolicyResponse

type KeyPolicyResponse = KeyPolicy

KeyPolicyResponse defines model for KeyPolicyResponse.

type KeyRef

type KeyRef = keyRefComposed

KeyRef defines model for KeyRef.

type KeyRefFields

type KeyRefFields struct {
	Exp              *externalRef0.NumericDate `json:"exp,omitempty"`
	Iat              externalRef0.NumericDate  `json:"iat"`
	PolicyIdentifier string                    `json:"policyIdentifier"`
	Status           KeyStatus                 `json:"status"`
}

KeyRefFields defines model for KeyRefFields.

type KeyRefsResponse

type KeyRefsResponse = []KeyRef

KeyRefsResponse defines model for KeyRefsResponse.

type KeyResponse

type KeyResponse = Key

KeyResponse defines model for KeyResponse.

type KeyStatus

type KeyStatus string

KeyStatus defines model for KeyStatus.

const (
	KeyStatusActive   KeyStatus = "active"
	KeyStatusInactive KeyStatus = "inactive"
)

Defines values for KeyStatus.

type OneTimeKey

type OneTimeKey struct {
	Exp externalRef0.NumericDate `json:"exp"`
	Iat externalRef0.NumericDate `json:"iat"`
	Jwk JsonWebKey               `json:"jwk"`
}

OneTimeKey OneTimeKey

Jump to

Keyboard shortcuts

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