package kubeclient

import "github.com/docker/buildx/driver/kubernetes/kubeclient"

Index

Functions

func Codecs

func Codecs() serializer.CodecFactory

func ParameterCodec

func ParameterCodec() runtime.ParameterCodec

func Scheme

func Scheme() *runtime.Scheme

Types

type Clients

type Clients struct {
	Deployments DeploymentClient
	ConfigMaps  ConfigMapClient
	Pods        PodClient
}

func New

func New(config *rest.Config, namespace string) (*Clients, error)

type ConfigMapClient

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

type DeploymentClient

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

type PodClient

type PodClient interface {
	List(ctx context.Context, opts metav1.ListOptions) (*corev1.PodList, error)
	RESTClient() rest.Interface
}

Source Files

client.go scheme.go

Version
v0.33.0 (latest)
Published
Mar 31, 2026
Platform
linux/amd64
Imports
11 packages
Last checked
9 hours ago

Tools for package owners.