confidentialspace

package
v0.0.0-...-ce7e112 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 6 Imported by: 0

Documentation

Overview

Package confidentialspace defines methods for integration with Confidential Space.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateJSONCredentials

func CreateJSONCredentials(cred *configpb.KekCredentialConfig, sourceFile string) string

CreateJSONCredentials returns a JSON credential config containing the provided info.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config wraps ConfidentialSpaceConfigs for STET.

func NewConfig

func NewConfig(config *configpb.ConfidentialSpaceConfigs) *Config

NewConfig initializes a Config containing the provided 'config' proto.

func NewConfigWithTokenFile

func NewConfigWithTokenFile(config *configpb.ConfidentialSpaceConfigs, tokenFile string) *Config

NewConfigWithTokenFile initializes a Config containing the provided 'config' proto and tokenFile. This allows our tests to use a custom tokenFile path.

func (*Config) FindMatchingCredentials

func (c *Config) FindMatchingCredentials(kekURI string, mode configpb.CredentialMode) string

FindMatchingCredentials searches the config for an entry with a URI pattern and credential mode matching 'kekURI' and 'mode' respectively. If a match is found, it returns a Credential Config JSON containing the information in the matching config.

Jump to

Keyboard shortcuts

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