client

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 29 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTokenExist added in v1.14.0

func CheckTokenExist(token string) bool

func KeyFunc added in v1.14.0

func KeyFunc(name, namespace string, tr *authenticationv1.TokenRequest) string

KeyFunc keys should be nonconfidential and safe to log

func NewGetterFromClient added in v1.14.0

func NewGetterFromClient(client clientset.Interface) serviceaccount.ServiceAccountTokenGetter

NewGetterFromClient returns a ServiceAccountTokenGetter that uses the specified Client to retrieve service accounts and secrets. The Client should NOT authenticate using a service account token the returned getter will be used to retrieve, or recursion will result.

Types

type CertificateSigningRequestInterface added in v1.17.0

type CertificateSigningRequestInterface interface {
	Create(*v1.CertificateSigningRequest) (*v1.CertificateSigningRequest, error)
	Get(name string) (*v1.CertificateSigningRequest, error)
}

CertificateSigningRequestInterface is interface for client CertificateSigningRequests

type CertificateSigningRequestResp added in v1.17.0

type CertificateSigningRequestResp struct {
	Object *v1.CertificateSigningRequest
	Err    apierrors.StatusError
}

CertificateSigningRequestResp represents CertificateSigningRequest response from API-Server

type CertificateSigningRequestsGetter added in v1.17.0

type CertificateSigningRequestsGetter interface {
	CertificateSigningRequests() CertificateSigningRequestInterface
}

CertificateSigningRequestsGetter to get CertificateSigningRequestInterface

type ClusterRoleBindingLister added in v1.14.0

type ClusterRoleBindingLister struct {
}

func (*ClusterRoleBindingLister) ListClusterRoleBindings added in v1.14.0

func (l *ClusterRoleBindingLister) ListClusterRoleBindings() ([]*rbacv1.ClusterRoleBinding, error)

type ClusterRoleGetter added in v1.14.0

type ClusterRoleGetter struct {
}

func (*ClusterRoleGetter) GetClusterRole added in v1.14.0

func (g *ClusterRoleGetter) GetClusterRole(name string) (*rbacv1.ClusterRole, error)

type ConfigMapsGetter

type ConfigMapsGetter interface {
	ConfigMaps(namespace string) ConfigMapsInterface
}

ConfigMapsGetter has a method to return a ConfigMapInterface. A group's client should implement this interface.

type ConfigMapsInterface

type ConfigMapsInterface interface {
	Create(*api.ConfigMap) (*api.ConfigMap, error)
	Update(*api.ConfigMap) error
	Delete(name string) error
	Get(name string) (*api.ConfigMap, error)
}

ConfigMapsInterface has methods to work with ConfigMap resources.

type LeaseResp added in v1.12.0

type LeaseResp struct {
	Object *coordinationv1.Lease
	Err    apierrors.StatusError
}

LeaseResp represents lease response from the api-server

type LeasesGetter added in v1.12.0

type LeasesGetter interface {
	Leases(namespace string) LeasesInterface
}

LeasesGetter to get lease interface

type LeasesInterface added in v1.12.0

type LeasesInterface interface {
	Create(lease *coordinationv1.Lease) (*coordinationv1.Lease, error)
	Update(lease *coordinationv1.Lease) (*coordinationv1.Lease, error)
	Get(name string) (*coordinationv1.Lease, error)
}

LeasesInterface is interface for client leases

type NodeResp added in v1.12.0

type NodeResp struct {
	Object *api.Node
	Err    apierrors.StatusError
}

NodeResp represents node response from the api-server

type NodeStatusGetter

type NodeStatusGetter interface {
	NodeStatus(namespace string) NodeStatusInterface
}

NodeStatusGetter is interface to get node status

type NodeStatusInterface

type NodeStatusInterface interface {
	Create(*edgeapi.NodeStatusRequest) (*edgeapi.NodeStatusRequest, error)
	Update(rsName string, ns edgeapi.NodeStatusRequest) error
	Delete(name string) error
	Get(name string) (*edgeapi.NodeStatusRequest, error)
}

NodeStatusInterface is node status interface

type NodesGetter

type NodesGetter interface {
	Nodes(namespace string) NodesInterface
}

NodesGetter to get node interface

type NodesInterface

type NodesInterface interface {
	Create(*api.Node) (*api.Node, error)
	Update(*api.Node) error
	Patch(name string, patchBytes []byte) (*api.Node, error)
	Delete(name string) error
	Get(name string) (*api.Node, error)
}

NodesInterface is interface for client nodes

type PersistentVolumeClaimsGetter added in v1.1.0

type PersistentVolumeClaimsGetter interface {
	PersistentVolumeClaims(namespace string) PersistentVolumeClaimsInterface
}

PersistentVolumeClaimsGetter is interface to get client PersistentVolumeClaims

type PersistentVolumeClaimsInterface added in v1.1.0

type PersistentVolumeClaimsInterface interface {
	Create(*api.PersistentVolumeClaim) (*api.PersistentVolumeClaim, error)
	Update(*api.PersistentVolumeClaim) error
	Delete(name string) error
	Get(name string, options metav1.GetOptions) (*api.PersistentVolumeClaim, error)
}

PersistentVolumeClaimsInterface is interface for client PersistentVolumeClaims

type PersistentVolumesGetter added in v1.1.0

type PersistentVolumesGetter interface {
	PersistentVolumes(namespace string) PersistentVolumesInterface
}

PersistentVolumesGetter is interface to get client PersistentVolumes

type PersistentVolumesInterface added in v1.1.0

type PersistentVolumesInterface interface {
	Create(*api.PersistentVolume) (*api.PersistentVolume, error)
	Update(*api.PersistentVolume) error
	Delete(name string) error
	Get(name string, options metav1.GetOptions) (*api.PersistentVolume, error)
}

PersistentVolumesInterface is interface for client PersistentVolumes

type PodResp added in v1.12.0

type PodResp struct {
	Object *corev1.Pod
	Err    apierrors.StatusError
}

PodResp represents pod response from the api-server

type PodStatusGetter

type PodStatusGetter interface {
	PodStatus(namespace string) PodStatusInterface
}

PodStatusGetter is interface to get pod status

type PodStatusInterface

type PodStatusInterface interface {
	Create(*edgeapi.PodStatusRequest) (*edgeapi.PodStatusRequest, error)
	Update(rsName string, ps edgeapi.PodStatusRequest) error
	Delete(name string) error
	Get(name string) (*edgeapi.PodStatusRequest, error)
}

PodStatusInterface is interface of pod status

type PodsGetter

type PodsGetter interface {
	Pods(namespace string) PodsInterface
}

PodsGetter is interface to get pods

type PodsInterface

type PodsInterface interface {
	Create(*corev1.Pod) (*corev1.Pod, error)
	Update(*corev1.Pod) error
	Patch(name string, patchBytes []byte) (*corev1.Pod, error)
	Delete(name string, options metav1.DeleteOptions) error
	Get(name string) (*corev1.Pod, error)
}

PodsInterface is pod interface

type RoleBindingLister added in v1.14.0

type RoleBindingLister struct {
}

func (*RoleBindingLister) ListRoleBindings added in v1.14.0

func (l *RoleBindingLister) ListRoleBindings(namespace string) ([]*rbacv1.RoleBinding, error)

type RoleGetter added in v1.14.0

type RoleGetter struct {
}

func (*RoleGetter) GetRole added in v1.14.0

func (g *RoleGetter) GetRole(namespace, name string) (*rbacv1.Role, error)

type SecretsGetter

type SecretsGetter interface {
	Secrets(namespace string) SecretsInterface
}

SecretsGetter is interface to get client secrets

type SecretsInterface

type SecretsInterface interface {
	Create(*api.Secret) (*api.Secret, error)
	Update(*api.Secret) error
	Delete(name string) error
	Get(name string) (*api.Secret, error)
}

SecretsInterface is interface for client secret

type SendInterface

type SendInterface interface {
	SendSync(message *model.Message) (*model.Message, error)
	Send(message *model.Message)
}

SendInterface is to sync interface

type ServiceAccountInterface added in v1.14.0

type ServiceAccountInterface interface {
	Get(name string) (*corev1.ServiceAccount, error)
}

ServiceAccountInterface is interface for Client service account token

type ServiceAccountTokenGetter added in v1.7.2

type ServiceAccountTokenGetter interface {
	ServiceAccountToken() ServiceAccountTokenInterface
}

ServiceAccountTokenGetter is interface to get client service account token

type ServiceAccountTokenInterface added in v1.7.2

type ServiceAccountTokenInterface interface {
	GetServiceAccountToken(namespace string, name string, tr *authenticationv1.TokenRequest) (*authenticationv1.TokenRequest, error)
	DeleteServiceAccountToken(podUID types.UID)
}

ServiceAccountTokenInterface is interface for client service account token

type ServiceAccountsGetter added in v1.14.0

type ServiceAccountsGetter interface {
	ServiceAccounts(namespace string) ServiceAccountInterface
}

ServiceAccountGetter is interface to get Client service account

type VolumeAttachmentsGetter added in v1.1.0

type VolumeAttachmentsGetter interface {
	VolumeAttachments(namespace string) VolumeAttachmentsInterface
}

VolumeAttachmentsGetter is interface to get client VolumeAttachments

type VolumeAttachmentsInterface added in v1.1.0

type VolumeAttachmentsInterface interface {
	Create(*api.VolumeAttachment) (*api.VolumeAttachment, error)
	Update(*api.VolumeAttachment) error
	Delete(name string) error
	Get(name string, options metav1.GetOptions) (*api.VolumeAttachment, error)
}

VolumeAttachmentsInterface is interface for client VolumeAttachments

Jump to

Keyboard shortcuts

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