Documentation ¶
Index ¶
- func CreateLocationReader(basedir string) func(string) ([]byte, error)
- func TransformConfigTemplates(node *envoy_config_core_v3.Node) error
- func TransformConfigTemplatesWithApi(node *envoy_config_core_v3.Node, api DownwardAPI) error
- type DownwardAPI
- type Interpolator
- type TestWhichIsNeedDownwardAPI
- func (td *TestWhichIsNeedDownwardAPI) NodeIp() string
- func (td *TestWhichIsNeedDownwardAPI) NodeName() string
- func (td *TestWhichIsNeedDownwardAPI) PodAnnotations() map[string]string
- func (td *TestWhichIsNeedDownwardAPI) PodIp() string
- func (td *TestWhichIsNeedDownwardAPI) PodLabels() map[string]string
- func (td *TestWhichIsNeedDownwardAPI) PodName() string
- func (td *TestWhichIsNeedDownwardAPI) PodNamespace() string
- func (td *TestWhichIsNeedDownwardAPI) PodSvcAccount() string
- func (td *TestWhichIsNeedDownwardAPI) PodUID() string
- type Transformer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TransformConfigTemplates ¶
func TransformConfigTemplates(node *envoy_config_core_v3.Node) error
func TransformConfigTemplatesWithApi ¶
func TransformConfigTemplatesWithApi(node *envoy_config_core_v3.Node, api DownwardAPI) error
Types ¶
type DownwardAPI ¶
type DownwardAPI interface { PodName() string PodNamespace() string PodIp() string PodSvcAccount() string PodUID() string NodeName() string NodeIp() string PodLabels() map[string]string PodAnnotations() map[string]string }
func RetrieveDownwardAPI ¶
func RetrieveDownwardAPI() DownwardAPI
func RetrieveDownwardAPIFrom ¶
type Interpolator ¶
type Interpolator interface { InterpolateIO(in io.Reader, out io.Writer, data DownwardAPI) error Interpolate(tmpl string, out io.Writer, data DownwardAPI) error InterpolateString(*string, DownwardAPI) error }
func NewInterpolator ¶
func NewInterpolator() Interpolator
type TestWhichIsNeedDownwardAPI ¶
type TestWhichIsNeedDownwardAPI struct { IsPodName bool IsPodNamespace bool IsPodIp bool IsPodSvcAccount bool IsPodUID bool IsNodeName bool IsNodeIp bool IsPodLabels bool IsPodAnnotations bool }
func TestNeededDownwardAPI ¶
func TestNeededDownwardAPI() *TestWhichIsNeedDownwardAPI
func (*TestWhichIsNeedDownwardAPI) NodeIp ¶
func (td *TestWhichIsNeedDownwardAPI) NodeIp() string
func (*TestWhichIsNeedDownwardAPI) NodeName ¶
func (td *TestWhichIsNeedDownwardAPI) NodeName() string
func (*TestWhichIsNeedDownwardAPI) PodAnnotations ¶
func (td *TestWhichIsNeedDownwardAPI) PodAnnotations() map[string]string
func (*TestWhichIsNeedDownwardAPI) PodIp ¶
func (td *TestWhichIsNeedDownwardAPI) PodIp() string
func (*TestWhichIsNeedDownwardAPI) PodLabels ¶
func (td *TestWhichIsNeedDownwardAPI) PodLabels() map[string]string
func (*TestWhichIsNeedDownwardAPI) PodName ¶
func (td *TestWhichIsNeedDownwardAPI) PodName() string
func (*TestWhichIsNeedDownwardAPI) PodNamespace ¶
func (td *TestWhichIsNeedDownwardAPI) PodNamespace() string
func (*TestWhichIsNeedDownwardAPI) PodSvcAccount ¶
func (td *TestWhichIsNeedDownwardAPI) PodSvcAccount() string
func (*TestWhichIsNeedDownwardAPI) PodUID ¶
func (td *TestWhichIsNeedDownwardAPI) PodUID() string
type Transformer ¶
type Transformer struct {
// contains filtered or unexported fields
}
func NewTransformer ¶
func NewTransformer() *Transformer
func (*Transformer) TransformFiles ¶
func (t *Transformer) TransformFiles(in, out string) error
Click to show internal directories.
Click to hide internal directories.