Documentation ¶
Overview ¶
Package filemgr defines a Manager for managing files for the controlplane.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFileNameWithBytesHash ¶ added in v0.24.0
GetFileNameWithBytesHash constructs a filename using a base filename and a hash of the data. For example: GetFileNameWithBytesHash("example.txt", []byte{...}) ==> "example-abcd1234.txt"
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
A Manager manages files for envoy.
func (*Manager) BytesDataSource ¶
func (mgr *Manager) BytesDataSource(fileName string, data []byte) *envoy_config_core_v3.DataSource
BytesDataSource returns an envoy config data source based on bytes.
func (*Manager) FileDataSource ¶
func (mgr *Manager) FileDataSource(filePath string) *envoy_config_core_v3.DataSource
FileDataSource returns an envoy config data source based on a file.
Click to show internal directories.
Click to hide internal directories.