clientset

package
v0.3.25 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TrafficTargetCrdName  = "traffictargets.access.smi-spec.io"
	HttpRouteGroupCrdName = "httproutegroups.specs.smi-spec.io"
	TrafficSplitCrdName   = "trafficsplits.split.smi-spec.io"
)
View Source
const ServiceProfileCrdName = "serviceprofiles.linkerd.io"

Variables

This section is empty.

Functions

This section is empty.

Types

type Clientset

type Clientset struct {
	RestConfig *rest.Config

	Kube kubernetes.Interface

	Prometheus promv1.PrometheusConfigClient

	// config for supergloo
	Supergloo *SuperglooClients

	// discovery resources from kubernetes
	Discovery *discoveryClients
}

func ClientsetFromContext

func ClientsetFromContext(ctx context.Context) (*Clientset, error)

initialize all resource clients here that will share a cache

type CrdNotRegisteredErr added in v0.3.24

type CrdNotRegisteredErr struct {
	CrdName       string
	OriginalError error
}

func NewCrdNotRegisteredErr added in v0.3.24

func NewCrdNotRegisteredErr(crdName string, originalError error) *CrdNotRegisteredErr

func (*CrdNotRegisteredErr) Error added in v0.3.24

func (e *CrdNotRegisteredErr) Error() string

type DestinationRuleClientLoader added in v0.3.24

type DestinationRuleClientLoader func() (v1alpha3.DestinationRuleClient, error)

type HTTPRouteGroupClientLoader added in v0.3.24

type HTTPRouteGroupClientLoader func() (specsv1alpha1.HTTPRouteGroupClient, error)

type IstioClients

type IstioClients struct {
	RbacConfig         RbacConfigClientLoader
	ServiceRole        ServiceRoleClientLoader
	ServiceRoleBinding ServiceRoleBindingClientLoader
	MeshPolicy         MeshPolicyClientLoader
	DestinationRule    DestinationRuleClientLoader
	VirtualService     VirtualServiceClientLoader
}

func IstioFromContext

func IstioFromContext(ctx context.Context) (*IstioClients, error)

type LinkerdClients added in v0.3.12

type LinkerdClients struct {
	ServiceProfile ServiceProfileClientLoader
}

func LinkerdFromContext added in v0.3.12

func LinkerdFromContext(ctx context.Context) (*LinkerdClients, error)

type MeshPolicyClientLoader added in v0.3.24

type MeshPolicyClientLoader func() (policyv1alpha1.MeshPolicyClient, error)

type RbacConfigClientLoader added in v0.3.24

type RbacConfigClientLoader func() (rbacv1alpha1.RbacConfigClient, error)

type SMIClients added in v0.3.22

type SMIClients struct {
	TrafficTarget  TrafficTargetClientLoader
	HTTPRouteGroup HTTPRouteGroupClientLoader
	TrafficSplit   TrafficSplitClientLoader
}

func SMIFromContext added in v0.3.22

func SMIFromContext(ctx context.Context) (*SMIClients, error)

type ServiceProfileClientLoader added in v0.3.24

type ServiceProfileClientLoader func() (linkerdv1.ServiceProfileClient, error)

type ServiceRoleBindingClientLoader added in v0.3.24

type ServiceRoleBindingClientLoader func() (rbacv1alpha1.ServiceRoleBindingClient, error)

type ServiceRoleClientLoader added in v0.3.24

type ServiceRoleClientLoader func() (rbacv1alpha1.ServiceRoleClient, error)

type SuperglooClients added in v0.3.12

type SuperglooClients struct {
	Install      v1.InstallClient
	Mesh         v1.MeshClient
	MeshGroup    v1.MeshGroupClient
	MeshIngress  v1.MeshIngressClient
	Upstream     gloov1.UpstreamClient
	RoutingRule  v1.RoutingRuleClient
	SecurityRule v1.SecurityRuleClient
	TlsSecret    v1.TlsSecretClient
	Secret       gloov1.SecretClient
	Settings     gloov1.SettingsClient
}

type TrafficSplitClientLoader added in v0.3.24

type TrafficSplitClientLoader func() (splitv1alpha1.TrafficSplitClient, error)

type TrafficTargetClientLoader added in v0.3.24

type TrafficTargetClientLoader func() (accessv1alpha1.TrafficTargetClient, error)

type VirtualServiceClientLoader added in v0.3.24

type VirtualServiceClientLoader func() (v1alpha3.VirtualServiceClient, error)

Jump to

Keyboard shortcuts

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