Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
SealingRuleSets []SealingRuleSet `yaml:"sealingRules"`
}
func ExampleConfig ¶
func ExampleConfig() Config
ExampleConfig Provide an example config of the `.sealit.yaml`
func LoadConfig ¶
type File ¶
type File struct { Metadata *Metadata `yaml:"sealit,omitempty"` // contains filtered or unexported fields }
func NewValueFile ¶
func (*File) ApplyFuncToValues ¶
type KubernetesCertSource ¶ added in v0.3.0
type PathCertSource ¶ added in v0.3.0
type PathCertSource string
type Resealer ¶ added in v0.4.0
type Resealer struct {
// contains filtered or unexported fields
}
func NewResealer ¶ added in v0.4.0
func NewResealer(srs *SealingRuleSet, m *Metadata) (s *Resealer, err error)
type Sealer ¶
type Sealer struct {
// contains filtered or unexported fields
}
type SealingRuleSet ¶
type SealingRuleSet struct { FileRegex string `yaml:"fileRegex"` Name string `yaml:"name"` Namespace string `yaml:"namespace"` SecretsRegex string `yaml:"secretsRegex"` Cert *Cert `yaml:"cert"` }
func (*SealingRuleSet) GetCert ¶ added in v0.3.0
func (cs *SealingRuleSet) GetCert() (string, error)
GetCert fetches the cert from different sources Prio: 1. fetch from Kubernetes cluster 2. fetch from url 3. fetch from file path
func (*SealingRuleSet) GetSecretsRegex ¶ added in v0.4.0
func (srs *SealingRuleSet) GetSecretsRegex() *regexp.Regexp
type Sources ¶ added in v0.3.0
type Sources struct { Url UrlCertSource `yaml:"url,omitempty"` Path PathCertSource `yaml:"path,omitempty"` Kubernetes KubernetesCertSource `yaml:"kubernetes,omitempty"` }
type UrlCertSource ¶ added in v0.3.0
type UrlCertSource string
Click to show internal directories.
Click to hide internal directories.