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.