Documentation ¶
Index ¶
- type Params
- func (p Params) Contains(k string) bool
- func (p Params) ContainsWellKnown(k WellKnown) bool
- func (p Params) Copy() Params
- func (p Params) Get(k string) any
- func (p Params) GetWellKnown(k WellKnown) any
- func (p Params) Set(k string, v any) Params
- func (p Params) SetAll(other Params) Params
- func (p Params) SetAllNoOverwrite(other Params) Params
- func (p Params) SetWellKnown(k WellKnown, v any) Params
- type Template
- type WellKnown
- type WellKnownList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Params ¶
Params for a Template.
func (Params) ContainsWellKnown ¶
func (Params) GetWellKnown ¶
func (Params) SetAllNoOverwrite ¶
type Template ¶
Template that has been parsed to search for template parameters.
func (Template) ContainsWellKnown ¶
ContainsWellKnown returns true if the given well-known parameter is used by this Template.
func (Template) MissingParams ¶
MissingParams checks the provided params against the parameters used in this Template. Returns the set of template parameters not defined in params.
type WellKnown ¶
type WellKnown string
WellKnown defines a well-known template parameter injected automatically by the echo testing framework.
const ( // From is the template parameter used for injecting the source of a call. It will be of type echo.Caller, // which is generally either of type echo.Instance or istio.Ingress (for ingress-based tests). From WellKnown = "From" // To is the template parameter used for injecting the echo.Target of a call. To WellKnown = "To" // Namespace is the template parameter used for injecting the target namespace.Instance of the applied config. Namespace WellKnown = "Namespace" // SystemNamespace is the template parameter used for injecting the namespace.Instance of the Istio system. SystemNamespace WellKnown = "SystemNamespace" )
type WellKnownList ¶
type WellKnownList []WellKnown
func AllWellKnown ¶
func AllWellKnown() WellKnownList
func (WellKnownList) ToStringArray ¶
func (w WellKnownList) ToStringArray() []string
Click to show internal directories.
Click to hide internal directories.