clients

package
v0.0.0-...-7308281 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMapClient

type ConfigMapClient interface {
	Create(ctx context.Context, configMap *corev1.ConfigMap, opts metav1.CreateOptions) (*corev1.ConfigMap, error)
	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
}

type DeploymentClient

type DeploymentClient interface {
	Create(ctx context.Context, deployment *appsv1.Deployment, opts metav1.CreateOptions) (*appsv1.Deployment, error)
	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
	Watch(ctx context.Context, opts metav1.ListOptions) (WatchResult, error)
}

type Maker

type Maker interface {
	MakeConfigMapClient(config *types.KubernetesEnvironment) (ConfigMapClient, error)
	MakeDeploymentClient(config *types.KubernetesEnvironment) (DeploymentClient, error)
	MakePodClient(config *types.KubernetesEnvironment) (PodClient, error)
	MakeServiceClient(config *types.KubernetesEnvironment) (ServiceClient, error)
}

func CreateMaker

func CreateMaker(fnd app.Foundation) Maker

type PodClient

type PodClient interface {
	StreamLogs(ctx context.Context, name string, opts *corev1.PodLogOptions) (io.ReadCloser, error)
	List(ctx context.Context, opts metav1.ListOptions) (*corev1.PodList, error)
}

type ServiceClient

type ServiceClient interface {
	Create(ctx context.Context, service *corev1.Service, opts metav1.CreateOptions) (*corev1.Service, error)
	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
	Watch(ctx context.Context, opts metav1.ListOptions) (WatchResult, error)
}

type WatchResult

type WatchResult interface {
	Stop()
	ResultChan() <-chan watch.Event
}

Jump to

Keyboard shortcuts

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