repository

package
v0.0.0-...-53f1697 Latest Latest
Warning

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

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

Documentation

Overview

Package repository defines the api for the pub key stores

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key struct {
	// PublicKey contains the public key data
	PublicKey string
	// SAName is the optional GCP IAM service-account that has been associated.
	SAName string
}

Key holds data + metadata of a public key entry

type PubKeyRepository

type PubKeyRepository interface {
	// LookupKey retrieves the public key of a device from the repository.
	// An empty string return indicates that no key exists for the given identifier or
	// that the device is blocked.
	LookupKey(ctx context.Context, deviceID string) (*Key, error)
	PublishKey(ctx context.Context, deviceID, publicKey string) error
}

PubKeyRepository defines the api for the pub key stores

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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