resources

package
v0.0.0-...-9d6de07 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserDefined    AuthType = "userdefined"
	Anonymous      AuthType = "anonymous"
	AuthAudience            = "AUTH_AUDIENCE"
	AuthorinoLabel          = "AUTHORINO_LABEL"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfigStore

type AuthConfigStore interface {
	Get(ctx context.Context, key types.NamespacedName) (*authorinov1beta2.AuthConfig, error)
	Remove(ctx context.Context, key types.NamespacedName) error
	Create(ctx context.Context, authConfig *authorinov1beta2.AuthConfig) error
	Update(ctx context.Context, authConfig *authorinov1beta2.AuthConfig) error
}

func NewClientAuthConfigStore

func NewClientAuthConfigStore(client client.Client) AuthConfigStore

type AuthConfigTemplateLoader

type AuthConfigTemplateLoader interface {
	Load(ctx context.Context, authType AuthType, key types.NamespacedName) (authorinov1beta2.AuthConfig, error)
}

func NewConfigMapTemplateLoader

func NewConfigMapTemplateLoader(client client.Client, fallback AuthConfigTemplateLoader) AuthConfigTemplateLoader

func NewStaticTemplateLoader

func NewStaticTemplateLoader() AuthConfigTemplateLoader

type AuthType

type AuthType string

type AuthTypeDetector

type AuthTypeDetector interface {
	Detect(ctx context.Context, isvc *kservev1beta1.InferenceService) (AuthType, error)
}

func NewKServeAuthTypeDetector

func NewKServeAuthTypeDetector(client client.Client) AuthTypeDetector

type ClusterRoleBindingHandler

type ClusterRoleBindingHandler interface {
	FetchClusterRoleBinding(ctx context.Context, log logr.Logger, key types.NamespacedName) (*v1.ClusterRoleBinding, error)
	DeleteClusterRoleBinding(ctx context.Context, key types.NamespacedName) error
}

func NewClusterRoleBindingHandler

func NewClusterRoleBindingHandler(client client.Client) ClusterRoleBindingHandler

type ConfigMapHandler

type ConfigMapHandler interface {
	FetchConfigMap(ctx context.Context, log logr.Logger, key types.NamespacedName) (*corev1.ConfigMap, error)
}

func NewConfigMapHandler

func NewConfigMapHandler(client client.Client) ConfigMapHandler

type GatewayHandler

type GatewayHandler interface {
	Get(ctx context.Context, key types.NamespacedName) (*istionetworkclientv1beta1.Gateway, error)
	Update(ctx context.Context, gateway *istionetworkclientv1beta1.Gateway) error
}

func NewGatewayHandler

func NewGatewayHandler(client client.Client) GatewayHandler

type InferenceServiceHostExtractor

type InferenceServiceHostExtractor interface {
	Extract(isvc *kservev1beta1.InferenceService) []string
}

func NewKServeInferenceServiceHostExtractor

func NewKServeInferenceServiceHostExtractor() InferenceServiceHostExtractor

type NetworkPolicyHandler

type NetworkPolicyHandler interface {
	FetchNetworkPolicy(ctx context.Context, log logr.Logger, key types.NamespacedName) (*v1.NetworkPolicy, error)
	DeleteNetworkPolicy(ctx context.Context, key types.NamespacedName) error
}

func NewNetworkPolicyHandler

func NewNetworkPolicyHandler(client client.Client) NetworkPolicyHandler

type PeerAuthenticationHandler

type PeerAuthenticationHandler interface {
	FetchPeerAuthentication(ctx context.Context, log logr.Logger, key types.NamespacedName) (*istiosecv1beta1.PeerAuthentication, error)
	DeletePeerAuthentication(ctx context.Context, key types.NamespacedName) error
}

func NewPeerAuthenticationHandler

func NewPeerAuthenticationHandler(client client.Client) PeerAuthenticationHandler

type PodMonitorHandler

type PodMonitorHandler interface {
	FetchPodMonitor(ctx context.Context, log logr.Logger, key types.NamespacedName) (*v1.PodMonitor, error)
	DeletePodMonitor(ctx context.Context, key types.NamespacedName) error
}

func NewPodMonitorHandler

func NewPodMonitorHandler(client client.Client) PodMonitorHandler

type RoleBindingHandler

type RoleBindingHandler interface {
	FetchRoleBinding(ctx context.Context, log logr.Logger, key types.NamespacedName) (*v1.RoleBinding, error)
	DeleteRoleBinding(ctx context.Context, key types.NamespacedName) error
}

func NewRoleBindingHandler

func NewRoleBindingHandler(client client.Client) RoleBindingHandler

type RouteHandler

type RouteHandler interface {
	FetchRoute(ctx context.Context, log logr.Logger, key types.NamespacedName) (*v1.Route, error)
	DeleteRoute(ctx context.Context, key types.NamespacedName) error
}

RouteHandler to provide route specific implementation.

func NewRouteHandler

func NewRouteHandler(client client.Client) RouteHandler

type SecretHandler

type SecretHandler interface {
	Get(ctx context.Context, key types.NamespacedName) (*v1.Secret, error)
}

func NewSecretHandler

func NewSecretHandler(client client.Client) SecretHandler

type ServiceAccountHandler

type ServiceAccountHandler interface {
	FetchServiceAccount(ctx context.Context, log logr.Logger, key types.NamespacedName) (*v1.ServiceAccount, error)
	DeleteServiceAccount(ctx context.Context, key types.NamespacedName) error
}

func NewServiceAccountHandler

func NewServiceAccountHandler(client client.Client) ServiceAccountHandler

type ServiceHandler

type ServiceHandler interface {
	FetchService(ctx context.Context, log logr.Logger, key types.NamespacedName) (*v1.Service, error)
}

func NewServiceHandler

func NewServiceHandler(client client.Client) ServiceHandler

type ServiceMeshMemberHandler

type ServiceMeshMemberHandler interface {
	Fetch(ctx context.Context, log logr.Logger, namespace, name string) (*v1.ServiceMeshMember, error)
}

func NewServiceMeshMember

func NewServiceMeshMember(client client.Client) ServiceMeshMemberHandler

type ServiceMeshMemberRollHandler

type ServiceMeshMemberRollHandler interface {
	FetchSMMR(ctx context.Context, log logr.Logger, key types.NamespacedName) (*v1.ServiceMeshMemberRoll, error)
}

func NewServiceMeshMemberRole

func NewServiceMeshMemberRole(client client.Client) ServiceMeshMemberRollHandler

type ServiceMonitorHandler

type ServiceMonitorHandler interface {
	FetchServiceMonitor(ctx context.Context, log logr.Logger, key types.NamespacedName) (*v1.ServiceMonitor, error)
	DeleteServiceMonitor(ctx context.Context, key types.NamespacedName) error
}

func NewServiceMonitorHandler

func NewServiceMonitorHandler(client client.Client) ServiceMonitorHandler

type TelemetryHandler

type TelemetryHandler interface {
	FetchTelemetry(ctx context.Context, log logr.Logger, key types.NamespacedName) (*telemetryv1alpha1.Telemetry, error)
	DeleteTelemetry(ctx context.Context, key types.NamespacedName) error
}

TelemetryHandler to provide telemetry specific implementation.

func NewTelemetryHandler

func NewTelemetryHandler(client client.Client) TelemetryHandler

Jump to

Keyboard shortcuts

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