mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
remove unused filed
This commit is contained in:
parent
1cd6a50809
commit
b8100ceec3
@ -46,9 +46,6 @@ type envelopeTransformer struct {
|
|||||||
// transformers is a thread-safe LRU cache which caches decrypted DEKs indexed by their encrypted form.
|
// transformers is a thread-safe LRU cache which caches decrypted DEKs indexed by their encrypted form.
|
||||||
transformers *lru.Cache
|
transformers *lru.Cache
|
||||||
|
|
||||||
// cacheSize is the maximum number of DEKs that are cached.
|
|
||||||
cacheSize int
|
|
||||||
|
|
||||||
// baseTransformerFunc creates a new transformer for encrypting the data with the DEK.
|
// baseTransformerFunc creates a new transformer for encrypting the data with the DEK.
|
||||||
baseTransformerFunc func(cipher.Block) value.Transformer
|
baseTransformerFunc func(cipher.Block) value.Transformer
|
||||||
}
|
}
|
||||||
@ -68,7 +65,6 @@ func NewEnvelopeTransformer(envelopeService Service, cacheSize int, baseTransfor
|
|||||||
return &envelopeTransformer{
|
return &envelopeTransformer{
|
||||||
envelopeService: envelopeService,
|
envelopeService: envelopeService,
|
||||||
transformers: cache,
|
transformers: cache,
|
||||||
cacheSize: cacheSize,
|
|
||||||
baseTransformerFunc: baseTransformerFunc,
|
baseTransformerFunc: baseTransformerFunc,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user