Documentation ¶
Index ¶
- func CreateLocationReader(basedir string) func(string) ([]byte, error)
- func Transform(in io.Reader, out io.Writer) error
- func TransformConfigTemplatesWithApi(bootstrap *envoy_config_bootstrap.Bootstrap, 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TransformConfigTemplatesWithApi ¶
func TransformConfigTemplatesWithApi(bootstrap *envoy_config_bootstrap.Bootstrap, 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
Click to show internal directories.
Click to hide internal directories.