helpers

package
v1.6.0-beta24 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 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 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 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 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 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 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 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 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 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 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