Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
TrustZones []*trust_zone_proto.TrustZone
AttestationPolicies []*attestation_policy_proto.AttestationPolicy
PluginConfig map[string]*structpb.Struct
Plugins *pluginspb.Plugins
}
Config describes the cofide.yaml configuration file format.
func (*Config) GetAttestationPolicyByName ¶
func (c *Config) GetAttestationPolicyByName(name string) (*attestation_policy_proto.AttestationPolicy, bool)
func (*Config) GetTrustZoneByName ¶
func (c *Config) GetTrustZoneByName(name string) (*trust_zone_proto.TrustZone, bool)
type FileLoader ¶
type FileLoader struct {
// contains filtered or unexported fields
}
FileLoader implements the `Loader` interface by reading and writing to a file.
func NewFileLoader ¶
func NewFileLoader(filePath string) *FileLoader
func (*FileLoader) Exists ¶
func (fl *FileLoader) Exists() (bool, error)
func (*FileLoader) Read ¶
func (fl *FileLoader) Read() (*Config, error)
func (*FileLoader) Write ¶
func (fl *FileLoader) Write(config *Config) error
type MemoryLoader ¶
type MemoryLoader struct {
// contains filtered or unexported fields
}
MemoryLoader implements the `Loader` interface by reading and writing to bytes in memory.
func NewMemoryLoader ¶
func NewMemoryLoader(config *Config) (*MemoryLoader, error)
func (*MemoryLoader) Exists ¶
func (ml *MemoryLoader) Exists() (bool, error)
func (*MemoryLoader) Read ¶
func (ml *MemoryLoader) Read() (*Config, error)
func (*MemoryLoader) Write ¶
func (ml *MemoryLoader) Write(config *Config) error
Click to show internal directories.
Click to hide internal directories.