Documentation ¶
Overview ¶
Package types contains the config file structs
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACL ¶
type ACL struct { MatchPrincipal string `yaml:"match_principal"` Credentials []Credential `yaml:"credentials"` }
ACL is a mapping between a given principal and the credentials for services it will gain access to.
type ConfigFile ¶
type ConfigFile struct { SPIFFE *SpiffeConfig `yaml:"spiffe"` ACLs []ACL `yaml:"acls"` }
ConfigFile represents the config file that will be loaded from disk, or some other mechanism.
func (*ConfigFile) Validate ¶
func (c *ConfigFile) Validate() []error
type Credential ¶
type Credential struct { Provider string `yaml:"provider"` ObjectReference string `yaml:"object_reference"` }
Credential represents any remote credential that the connector can give out.
func (*Credential) Key ¶
func (c *Credential) Key() string
type SVIDSources ¶
type SVIDSources struct { WorkloadAPI *WorkloadAPI `yaml:"workload_api,omitempty"` Files *Files `yaml:"files,omitempty"` // InMemory is only used in testing InMemory *InMemory }
SVIDSources determines where spiffe-connector will obtain its own SVID and trust domain information. The SPIFFE Workload API and Static files are supported.
type SpiffeConfig ¶
type SpiffeConfig struct {
SVIDSources SVIDSources `yaml:"svid_sources"`
}
SpiffeConfig represents the SPIFFE configuration section of spiffe-connector's config file
type WorkloadAPI ¶
type WorkloadAPI struct {
SocketPath string `yaml:"socket_path"`
}
Click to show internal directories.
Click to hide internal directories.