helpers

package
v1.11.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 26 Imported by: 29

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiExtsClient added in v0.18.14

func ApiExtsClient() (apiexts.Interface, error)

func AuthConfigClient added in v1.0.0

func AuthConfigClient(ctx context.Context, namespaces []string) (extauth.AuthConfigClient, error)

provide "" (metav1.NamespaceAll) to get a cluster-scoped authConfig client

func CheckKubernetesConnection added in v0.18.42

func CheckKubernetesConnection(ctx context.Context) error

func GatewayClient added in v1.2.13

func GatewayClient(ctx context.Context, namespaces []string) (gatewayv1.GatewayClient, error)

provide "" (metav1.NamespaceAll) to get a cluster-scoped gateway client

func GetKubernetesClient added in v0.13.3

func GetKubernetesClient() (kubernetes.Interface, error)

func GetKubernetesClientWithTimeout added in v0.18.21

func GetKubernetesClientWithTimeout(timeout time.Duration) (kubernetes.Interface, error)

func GetNamespaces

func GetNamespaces(ctx context.Context) ([]string, error)

Note: requires RBAC permission to list namespaces at the cluster level

func GetSecretClient added in v1.9.25

func GetSecretClient(ctx context.Context, timeout time.Duration, namespaces []string) (v1.SecretClient, error)

func KubeClient added in v0.17.0

func KubeClient() (kubernetes.Interface, error)

func MustApiExtsClient added in v0.18.14

func MustApiExtsClient() apiexts.Interface

func MustAuthConfigClient added in v1.0.0

func MustAuthConfigClient(ctx context.Context) extauth.AuthConfigClient

func MustGatewayClient added in v1.2.13

func MustGatewayClient(ctx context.Context) gatewayv1.GatewayClient

func MustGetNamespaces

func MustGetNamespaces(ctx context.Context) []string

func MustKubeClient added in v0.17.0

func MustKubeClient() kubernetes.Interface

func MustMultiNamespacedAuthConfigClient added in v1.3.16

func MustMultiNamespacedAuthConfigClient(ctx context.Context, namespaces []string) extauth.AuthConfigClient

func MustMultiNamespacedGatewayClient added in v1.3.16

func MustMultiNamespacedGatewayClient(ctx context.Context, namespaces []string) gatewayv1.GatewayClient

func MustMultiNamespacedProxyClient added in v1.3.16

func MustMultiNamespacedProxyClient(ctx context.Context, namespaces []string) v1.ProxyClient

func MustMultiNamespacedRateLimitConfigClient added in v1.5.0

func MustMultiNamespacedRateLimitConfigClient(ctx context.Context, namespaces []string) v1alpha1.RateLimitConfigClient

func MustMultiNamespacedRouteOptionClient added in v1.8.0

func MustMultiNamespacedRouteOptionClient(ctx context.Context, namespaces []string) gatewayv1.RouteOptionClient

func MustMultiNamespacedRouteTableClient added in v1.3.16

func MustMultiNamespacedRouteTableClient(ctx context.Context, namespaces []string) gatewayv1.RouteTableClient

func MustMultiNamespacedSettingsClient added in v1.3.16

func MustMultiNamespacedSettingsClient(ctx context.Context, namespaces []string) v1.SettingsClient

func MustMultiNamespacedUpstreamClient added in v1.3.16

func MustMultiNamespacedUpstreamClient(ctx context.Context, namespaces []string) v1.UpstreamClient

func MustMultiNamespacedUpstreamGroupClient added in v1.3.16

func MustMultiNamespacedUpstreamGroupClient(ctx context.Context, namespaces []string) v1.UpstreamGroupClient

func MustMultiNamespacedVirtualHostOptionClient added in v1.8.0

func MustMultiNamespacedVirtualHostOptionClient(ctx context.Context, namespaces []string) gatewayv1.VirtualHostOptionClient

func MustMultiNamespacedVirtualServiceClient added in v1.3.16

func MustMultiNamespacedVirtualServiceClient(ctx context.Context, namespaces []string) gatewayv1.VirtualServiceClient

func MustNamespacedAuthConfigClient added in v1.3.16

func MustNamespacedAuthConfigClient(ctx context.Context, ns string) extauth.AuthConfigClient

func MustNamespacedGatewayClient added in v1.3.16

func MustNamespacedGatewayClient(ctx context.Context, ns string) gatewayv1.GatewayClient

func MustNamespacedProxyClient added in v1.3.16

func MustNamespacedProxyClient(ctx context.Context, ns string) v1.ProxyClient

func MustNamespacedRateLimitConfigClient added in v1.5.0

func MustNamespacedRateLimitConfigClient(ctx context.Context, ns string) v1alpha1.RateLimitConfigClient

func MustNamespacedRouteOptionClient added in v1.8.0

func MustNamespacedRouteOptionClient(ctx context.Context, ns string) gatewayv1.RouteOptionClient

func MustNamespacedRouteTableClient added in v1.3.16

func MustNamespacedRouteTableClient(ctx context.Context, ns string) gatewayv1.RouteTableClient

func MustNamespacedSettingsClient added in v1.3.16

func MustNamespacedSettingsClient(ctx context.Context, ns string) v1.SettingsClient

func MustNamespacedUpstreamClient added in v1.3.16

func MustNamespacedUpstreamClient(ctx context.Context, ns string) v1.UpstreamClient

func MustNamespacedUpstreamGroupClient added in v1.3.16

func MustNamespacedUpstreamGroupClient(ctx context.Context, ns string) v1.UpstreamGroupClient

func MustNamespacedVirtualHostOptionClient added in v1.8.0

func MustNamespacedVirtualHostOptionClient(ctx context.Context, ns string) gatewayv1.VirtualHostOptionClient

func MustNamespacedVirtualServiceClient added in v1.3.16

func MustNamespacedVirtualServiceClient(ctx context.Context, ns string) gatewayv1.VirtualServiceClient

func MustProxyClient

func MustProxyClient(ctx context.Context) v1.ProxyClient

func MustRouteOptionClient added in v1.8.0

func MustRouteOptionClient(ctx context.Context) gatewayv1.RouteOptionClient

func MustRouteTableClient added in v0.20.3

func MustRouteTableClient(ctx context.Context) gatewayv1.RouteTableClient

func MustSecretClient

func MustSecretClient(ctx context.Context) v1.SecretClient

func MustSecretClientWithOptions added in v1.3.25

func MustSecretClientWithOptions(ctx context.Context, timeout time.Duration, namespaces []string) v1.SecretClient

func MustSettingsClient

func MustSettingsClient(ctx context.Context) v1.SettingsClient

func MustUpstreamClient

func MustUpstreamClient(ctx context.Context) v1.UpstreamClient

func MustUpstreamGroupClient added in v0.13.23

func MustUpstreamGroupClient(ctx context.Context) v1.UpstreamGroupClient

func MustVirtualHostOptionClient added in v1.8.0

func MustVirtualHostOptionClient(ctx context.Context) gatewayv1.VirtualHostOptionClient

func MustVirtualServiceClient

func MustVirtualServiceClient(ctx context.Context) gatewayv1.VirtualServiceClient

func NewNamespaceLister added in v0.18.12

func NewNamespaceLister() listers.NamespaceLister

func NewProvidedNamespaceLister added in v1.3.17

func NewProvidedNamespaceLister(namespaces []string) listers.NamespaceLister

func ProxyClient

func ProxyClient(ctx context.Context, namespaces []string) (v1.ProxyClient, error)

provide "" (metav1.NamespaceAll) to get a cluster-scoped proxy client

func RateLimitConfigClient added in v1.5.0

func RateLimitConfigClient(ctx context.Context, namespaces []string) (v1alpha1.RateLimitConfigClient, error)

provide "" (metav1.NamespaceAll) to get a cluster-scoped client

func RouteOptionClient added in v1.8.0

func RouteOptionClient(ctx context.Context, namespaces []string) (gatewayv1.RouteOptionClient, error)

func RouteTableClient added in v0.20.3

func RouteTableClient(ctx context.Context, namespaces []string) (gatewayv1.RouteTableClient, error)

provide "" (metav1.NamespaceAll) to get a cluster-scoped route table client

func SettingsClient

func SettingsClient(ctx context.Context, namespaces []string) (v1.SettingsClient, error)

provide "" (metav1.NamespaceAll) to get a cluster-scoped settings client

func UpstreamClient

func UpstreamClient(ctx context.Context, namespaces []string) (v1.UpstreamClient, error)

provide "" (metav1.NamespaceAll) to get a cluster-scoped upstream client

func UpstreamGroupClient added in v0.13.23

func UpstreamGroupClient(ctx context.Context, namespaces []string) (v1.UpstreamGroupClient, error)

provide "" (metav1.NamespaceAll) to get a cluster-scoped upstream group client

func UseConsulClients added in v0.18.23

func UseConsulClients(client *api.Client, rootKey string)

only applies to Config and Artifact clients

func UseDefaultClients added in v0.18.23

func UseDefaultClients()

wipes all the client helper overrides

func UseMemoryClients

func UseMemoryClients()

func UseVaultClients added in v0.18.23

func UseVaultClients(client *vaultapi.Client, rootKey string)

only applies to secret clients

func VirtualHostOptionClient added in v1.8.0

func VirtualHostOptionClient(ctx context.Context, namespaces []string) (gatewayv1.VirtualHostOptionClient, error)

func VirtualServiceClient

func VirtualServiceClient(ctx context.Context, namespaces []string) (gatewayv1.VirtualServiceClient, error)

provide "" (metav1.NamespaceAll) to get a cluster-scoped virtual service client

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL