Documentation ¶
Index ¶
- func NewClusterRoleBinding(name, namespace, serviceAccount string) *rbacv1.ClusterRoleBinding
- func NewIngressClass(name, controllerName string) *networkingv1.IngressClass
- func NewSecret(name, namespace string, data map[string][]byte) *corev1.Secret
- func NewServiceAccount(name string) *corev1.ServiceAccount
- func NewTLSSecret(name, namespace string, data map[string][]byte) *corev1.Secret
- type Client
- func (c *Client) AutodetectFlavor(ctx context.Context) Flavor
- func (c *Client) CheckDeploymentStatus(ctx context.Context, namespace, deployment string) error
- func (c *Client) CiliumLogs(ctx context.Context, namespace, pod string, since time.Time, ...) (string, error)
- func (c *Client) CiliumStatus(ctx context.Context, namespace, pod string) (*models.StatusResponse, error)
- func (c *Client) ClusterName() (name string)
- func (c *Client) ContextName() (name string)
- func (c *Client) CopyFromPod(ctx context.Context, namespace, pod, container string, ...) error
- func (c *Client) CreateCiliumClusterwideNetworkPolicy(ctx context.Context, ccnp *ciliumv2.CiliumClusterwideNetworkPolicy, ...) (*ciliumv2.CiliumClusterwideNetworkPolicy, error)
- func (c *Client) CreateCiliumExternalWorkload(ctx context.Context, cew *ciliumv2.CiliumExternalWorkload, ...) (*ciliumv2.CiliumExternalWorkload, error)
- func (c *Client) CreateCiliumNetworkPolicy(ctx context.Context, cnp *ciliumv2.CiliumNetworkPolicy, ...) (*ciliumv2.CiliumNetworkPolicy, error)
- func (c *Client) CreateClusterRole(ctx context.Context, role *rbacv1.ClusterRole, opts metav1.CreateOptions) (*rbacv1.ClusterRole, error)
- func (c *Client) CreateClusterRoleBinding(ctx context.Context, role *rbacv1.ClusterRoleBinding, ...) (*rbacv1.ClusterRoleBinding, error)
- func (c *Client) CreateConfigMap(ctx context.Context, namespace string, config *corev1.ConfigMap, ...) (*corev1.ConfigMap, error)
- func (c *Client) CreateDaemonSet(ctx context.Context, namespace string, ds *appsv1.DaemonSet, ...) (*appsv1.DaemonSet, error)
- func (c *Client) CreateDeployment(ctx context.Context, namespace string, deployment *appsv1.Deployment, ...) (*appsv1.Deployment, error)
- func (c *Client) CreateIngressClass(ctx context.Context, ingressClass *networkingv1.IngressClass, ...) (*networkingv1.IngressClass, error)
- func (c *Client) CreateNamespace(ctx context.Context, namespace string, opts metav1.CreateOptions) (*corev1.Namespace, error)
- func (c *Client) CreateResourceQuota(ctx context.Context, namespace string, rq *corev1.ResourceQuota, ...) (*corev1.ResourceQuota, error)
- func (c *Client) CreateSecret(ctx context.Context, namespace string, secret *corev1.Secret, ...) (*corev1.Secret, error)
- func (c *Client) CreateService(ctx context.Context, namespace string, service *corev1.Service, ...) (*corev1.Service, error)
- func (c *Client) CreateServiceAccount(ctx context.Context, namespace string, account *corev1.ServiceAccount, ...) (*corev1.ServiceAccount, error)
- func (c *Client) DeleteCiliumClusterwideNetworkPolicy(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (c *Client) DeleteCiliumExternalWorkload(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (c *Client) DeleteCiliumNetworkPolicy(ctx context.Context, namespace, name string, opts metav1.DeleteOptions) error
- func (c *Client) DeleteClusterRole(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (c *Client) DeleteClusterRoleBinding(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (c *Client) DeleteConfigMap(ctx context.Context, namespace, name string, opts metav1.DeleteOptions) error
- func (c *Client) DeleteDaemonSet(ctx context.Context, namespace, name string, opts metav1.DeleteOptions) error
- func (c *Client) DeleteDeployment(ctx context.Context, namespace, name string, opts metav1.DeleteOptions) error
- func (c *Client) DeleteIngressClass(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (c *Client) DeleteNamespace(ctx context.Context, namespace string, opts metav1.DeleteOptions) error
- func (c *Client) DeletePod(ctx context.Context, namespace, name string, opts metav1.DeleteOptions) error
- func (c *Client) DeletePodCollection(ctx context.Context, namespace string, opts metav1.DeleteOptions, ...) error
- func (c *Client) DeleteResourceQuota(ctx context.Context, namespace, name string, opts metav1.DeleteOptions) error
- func (c *Client) DeleteSecret(ctx context.Context, namespace, name string, opts metav1.DeleteOptions) error
- func (c *Client) DeleteService(ctx context.Context, namespace, name string, opts metav1.DeleteOptions) error
- func (c *Client) DeleteServiceAccount(ctx context.Context, namespace, name string, opts metav1.DeleteOptions) error
- func (c *Client) ExecInPod(ctx context.Context, namespace, pod, container string, command []string) (bytes.Buffer, error)
- func (c *Client) ExecInPodWithStderr(ctx context.Context, namespace, pod, container string, command []string) (bytes.Buffer, bytes.Buffer, error)
- func (c *Client) ExecInPodWithTTY(ctx context.Context, namespace, pod, container string, command []string) (bytes.Buffer, error)
- func (c *Client) GetCiliumClusterwideNetworkPolicy(ctx context.Context, name string, opts metav1.GetOptions) (*ciliumv2.CiliumClusterwideNetworkPolicy, error)
- func (c *Client) GetCiliumEndpoint(ctx context.Context, namespace, name string, opts metav1.GetOptions) (*ciliumv2.CiliumEndpoint, error)
- func (c *Client) GetCiliumExternalWorkload(ctx context.Context, name string, opts metav1.GetOptions) (*ciliumv2.CiliumExternalWorkload, error)
- func (c *Client) GetCiliumNetworkPolicy(ctx context.Context, namespace, name string, opts metav1.GetOptions) (*ciliumv2.CiliumNetworkPolicy, error)
- func (c *Client) GetConfigMap(ctx context.Context, namespace, name string, opts metav1.GetOptions) (*corev1.ConfigMap, error)
- func (c *Client) GetDaemonSet(ctx context.Context, namespace, name string, opts metav1.GetOptions) (*appsv1.DaemonSet, error)
- func (c *Client) GetDeployment(ctx context.Context, namespace, name string, opts metav1.GetOptions) (*appsv1.Deployment, error)
- func (c *Client) GetLogs(ctx context.Context, namespace, name, container string, sinceTime time.Time, ...) (string, error)
- func (c *Client) GetNamespace(ctx context.Context, namespace string, options metav1.GetOptions) (*corev1.Namespace, error)
- func (c *Client) GetPlatform(ctx context.Context) (*Platform, error)
- func (c *Client) GetPodsTable(ctx context.Context) (*metav1.Table, error)
- func (c *Client) GetRunningCiliumVersion(ctx context.Context, namespace string) (string, error)
- func (c *Client) GetSecret(ctx context.Context, namespace, name string, opts metav1.GetOptions) (*corev1.Secret, error)
- func (c *Client) GetService(ctx context.Context, namespace, name string, opts metav1.GetOptions) (*corev1.Service, error)
- func (c *Client) GetVersion(_ context.Context) (string, error)
- func (c *Client) ListCiliumClusterwideNetworkPolicies(ctx context.Context, opts metav1.ListOptions) (*ciliumv2.CiliumClusterwideNetworkPolicyList, error)
- func (c *Client) ListCiliumEgressNATPolicies(ctx context.Context, opts metav1.ListOptions) (*ciliumv2alpha1.CiliumEgressNATPolicyList, error)
- func (c *Client) ListCiliumEndpoints(ctx context.Context, namespace string, options metav1.ListOptions) (*ciliumv2.CiliumEndpointList, error)
- func (c *Client) ListCiliumExternalWorkloads(ctx context.Context, opts metav1.ListOptions) (*ciliumv2.CiliumExternalWorkloadList, error)
- func (c *Client) ListCiliumIdentities(ctx context.Context) (*ciliumv2.CiliumIdentityList, error)
- func (c *Client) ListCiliumLocalRedirectPolicies(ctx context.Context, namespace string, opts metav1.ListOptions) (*ciliumv2.CiliumLocalRedirectPolicyList, error)
- func (c *Client) ListCiliumNetworkPolicies(ctx context.Context, namespace string, opts metav1.ListOptions) (*ciliumv2.CiliumNetworkPolicyList, error)
- func (c *Client) ListCiliumNodes(ctx context.Context) (*ciliumv2.CiliumNodeList, error)
- func (c *Client) ListDaemonSet(ctx context.Context, namespace string, o metav1.ListOptions) (*appsv1.DaemonSetList, error)
- func (c *Client) ListEndpoints(ctx context.Context, o metav1.ListOptions) (*corev1.EndpointsList, error)
- func (c *Client) ListEvents(ctx context.Context, o metav1.ListOptions) (*corev1.EventList, error)
- func (c *Client) ListNamespaces(ctx context.Context, o metav1.ListOptions) (*corev1.NamespaceList, error)
- func (c *Client) ListNetworkPolicies(ctx context.Context, o metav1.ListOptions) (*networkingv1.NetworkPolicyList, error)
- func (c *Client) ListNodes(ctx context.Context, options metav1.ListOptions) (*corev1.NodeList, error)
- func (c *Client) ListPods(ctx context.Context, namespace string, options metav1.ListOptions) (*corev1.PodList, error)
- func (c *Client) ListServices(ctx context.Context, namespace string, options metav1.ListOptions) (*corev1.ServiceList, error)
- func (c *Client) ListUnstructured(ctx context.Context, gvr schema.GroupVersionResource, namespace *string, ...) (*unstructured.UnstructuredList, error)
- func (c *Client) PatchConfigMap(ctx context.Context, namespace, name string, pt types.PatchType, data []byte, ...) (*corev1.ConfigMap, error)
- func (c *Client) PatchDaemonSet(ctx context.Context, namespace, name string, pt types.PatchType, data []byte, ...) (*appsv1.DaemonSet, error)
- func (c *Client) PatchDeployment(ctx context.Context, namespace, name string, pt types.PatchType, data []byte, ...) (*appsv1.Deployment, error)
- func (c *Client) PatchSecret(ctx context.Context, namespace, name string, pt types.PatchType, data []byte, ...) (*corev1.Secret, error)
- func (c *Client) PodLogs(namespace, name string, opts *corev1.PodLogOptions) *rest.Request
- func (c *Client) UpdateCiliumClusterwideNetworkPolicy(ctx context.Context, ccnp *ciliumv2.CiliumClusterwideNetworkPolicy, ...) (*ciliumv2.CiliumClusterwideNetworkPolicy, error)
- func (c *Client) UpdateCiliumNetworkPolicy(ctx context.Context, cnp *ciliumv2.CiliumNetworkPolicy, ...) (*ciliumv2.CiliumNetworkPolicy, error)
- type CopyOptions
- type CopyPipe
- type ExecParameters
- type ExecResult
- type Flavor
- type Kind
- type Platform
- type ReadFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClusterRoleBinding ¶
func NewClusterRoleBinding(name, namespace, serviceAccount string) *rbacv1.ClusterRoleBinding
func NewIngressClass ¶ added in v0.10.0
func NewIngressClass(name, controllerName string) *networkingv1.IngressClass
func NewServiceAccount ¶
func NewServiceAccount(name string) *corev1.ServiceAccount
Types ¶
type Client ¶
type Client struct { Clientset kubernetes.Interface DynamicClientset dynamic.Interface CiliumClientset ciliumClientset.Interface Config *rest.Config RawConfig clientcmdapi.Config // contains filtered or unexported fields }
func (*Client) CheckDeploymentStatus ¶ added in v0.8.3
func (*Client) CiliumLogs ¶
func (*Client) CiliumStatus ¶
func (*Client) ClusterName ¶
ClusterName returns the name of the cluster the client is connected to
func (*Client) ContextName ¶
ContextName returns the name of the context the client is connected to
func (*Client) CopyFromPod ¶ added in v0.10.1
func (c *Client) CopyFromPod(ctx context.Context, namespace, pod, container string, srcFile, destFile string) error
CopyFromPod is to copy srcFile in a given pod to local destFile with defaultMaxTries.
func (*Client) CreateCiliumClusterwideNetworkPolicy ¶
func (c *Client) CreateCiliumClusterwideNetworkPolicy(ctx context.Context, ccnp *ciliumv2.CiliumClusterwideNetworkPolicy, opts metav1.CreateOptions) (*ciliumv2.CiliumClusterwideNetworkPolicy, error)
func (*Client) CreateCiliumExternalWorkload ¶
func (c *Client) CreateCiliumExternalWorkload(ctx context.Context, cew *ciliumv2.CiliumExternalWorkload, opts metav1.CreateOptions) (*ciliumv2.CiliumExternalWorkload, error)
func (*Client) CreateCiliumNetworkPolicy ¶
func (c *Client) CreateCiliumNetworkPolicy(ctx context.Context, cnp *ciliumv2.CiliumNetworkPolicy, opts metav1.CreateOptions) (*ciliumv2.CiliumNetworkPolicy, error)
func (*Client) CreateClusterRole ¶
func (c *Client) CreateClusterRole(ctx context.Context, role *rbacv1.ClusterRole, opts metav1.CreateOptions) (*rbacv1.ClusterRole, error)
func (*Client) CreateClusterRoleBinding ¶
func (c *Client) CreateClusterRoleBinding(ctx context.Context, role *rbacv1.ClusterRoleBinding, opts metav1.CreateOptions) (*rbacv1.ClusterRoleBinding, error)
func (*Client) CreateConfigMap ¶
func (*Client) CreateDaemonSet ¶
func (*Client) CreateDeployment ¶
func (c *Client) CreateDeployment(ctx context.Context, namespace string, deployment *appsv1.Deployment, opts metav1.CreateOptions) (*appsv1.Deployment, error)
func (*Client) CreateIngressClass ¶ added in v0.10.0
func (c *Client) CreateIngressClass(ctx context.Context, ingressClass *networkingv1.IngressClass, opts metav1.CreateOptions) (*networkingv1.IngressClass, error)
func (*Client) CreateNamespace ¶
func (*Client) CreateResourceQuota ¶
func (c *Client) CreateResourceQuota(ctx context.Context, namespace string, rq *corev1.ResourceQuota, opts metav1.CreateOptions) (*corev1.ResourceQuota, error)
func (*Client) CreateSecret ¶
func (*Client) CreateService ¶
func (*Client) CreateServiceAccount ¶
func (c *Client) CreateServiceAccount(ctx context.Context, namespace string, account *corev1.ServiceAccount, opts metav1.CreateOptions) (*corev1.ServiceAccount, error)
func (*Client) DeleteCiliumClusterwideNetworkPolicy ¶
func (*Client) DeleteCiliumExternalWorkload ¶
func (*Client) DeleteCiliumNetworkPolicy ¶
func (*Client) DeleteClusterRole ¶
func (*Client) DeleteClusterRoleBinding ¶
func (*Client) DeleteConfigMap ¶
func (*Client) DeleteDaemonSet ¶
func (*Client) DeleteDeployment ¶
func (*Client) DeleteIngressClass ¶ added in v0.10.0
func (*Client) DeleteNamespace ¶
func (*Client) DeletePodCollection ¶
func (c *Client) DeletePodCollection(ctx context.Context, namespace string, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
func (*Client) DeleteResourceQuota ¶
func (*Client) DeleteSecret ¶
func (*Client) DeleteService ¶
func (*Client) DeleteServiceAccount ¶
func (*Client) ExecInPodWithStderr ¶
func (*Client) ExecInPodWithTTY ¶ added in v0.9.0
func (*Client) GetCiliumClusterwideNetworkPolicy ¶
func (c *Client) GetCiliumClusterwideNetworkPolicy(ctx context.Context, name string, opts metav1.GetOptions) (*ciliumv2.CiliumClusterwideNetworkPolicy, error)
func (*Client) GetCiliumEndpoint ¶
func (c *Client) GetCiliumEndpoint(ctx context.Context, namespace, name string, opts metav1.GetOptions) (*ciliumv2.CiliumEndpoint, error)
func (*Client) GetCiliumExternalWorkload ¶
func (c *Client) GetCiliumExternalWorkload(ctx context.Context, name string, opts metav1.GetOptions) (*ciliumv2.CiliumExternalWorkload, error)
func (*Client) GetCiliumNetworkPolicy ¶
func (c *Client) GetCiliumNetworkPolicy(ctx context.Context, namespace, name string, opts metav1.GetOptions) (*ciliumv2.CiliumNetworkPolicy, error)
func (*Client) GetConfigMap ¶
func (*Client) GetDaemonSet ¶
func (*Client) GetDeployment ¶
func (c *Client) GetDeployment(ctx context.Context, namespace, name string, opts metav1.GetOptions) (*appsv1.Deployment, error)
func (*Client) GetNamespace ¶
func (*Client) GetPlatform ¶ added in v0.9.3
func (*Client) GetPodsTable ¶
func (*Client) GetRunningCiliumVersion ¶ added in v0.8.4
func (*Client) GetService ¶
func (*Client) ListCiliumClusterwideNetworkPolicies ¶
func (c *Client) ListCiliumClusterwideNetworkPolicies(ctx context.Context, opts metav1.ListOptions) (*ciliumv2.CiliumClusterwideNetworkPolicyList, error)
func (*Client) ListCiliumEgressNATPolicies ¶ added in v0.9.1
func (c *Client) ListCiliumEgressNATPolicies(ctx context.Context, opts metav1.ListOptions) (*ciliumv2alpha1.CiliumEgressNATPolicyList, error)
func (*Client) ListCiliumEndpoints ¶
func (c *Client) ListCiliumEndpoints(ctx context.Context, namespace string, options metav1.ListOptions) (*ciliumv2.CiliumEndpointList, error)
func (*Client) ListCiliumExternalWorkloads ¶
func (c *Client) ListCiliumExternalWorkloads(ctx context.Context, opts metav1.ListOptions) (*ciliumv2.CiliumExternalWorkloadList, error)
func (*Client) ListCiliumIdentities ¶
func (*Client) ListCiliumLocalRedirectPolicies ¶ added in v0.9.1
func (c *Client) ListCiliumLocalRedirectPolicies(ctx context.Context, namespace string, opts metav1.ListOptions) (*ciliumv2.CiliumLocalRedirectPolicyList, error)
func (*Client) ListCiliumNetworkPolicies ¶
func (c *Client) ListCiliumNetworkPolicies(ctx context.Context, namespace string, opts metav1.ListOptions) (*ciliumv2.CiliumNetworkPolicyList, error)
func (*Client) ListCiliumNodes ¶
func (*Client) ListDaemonSet ¶ added in v0.10.1
func (c *Client) ListDaemonSet(ctx context.Context, namespace string, o metav1.ListOptions) (*appsv1.DaemonSetList, error)
func (*Client) ListEndpoints ¶ added in v0.10.5
func (c *Client) ListEndpoints(ctx context.Context, o metav1.ListOptions) (*corev1.EndpointsList, error)
func (*Client) ListEvents ¶
func (*Client) ListNamespaces ¶
func (c *Client) ListNamespaces(ctx context.Context, o metav1.ListOptions) (*corev1.NamespaceList, error)
func (*Client) ListNetworkPolicies ¶
func (c *Client) ListNetworkPolicies(ctx context.Context, o metav1.ListOptions) (*networkingv1.NetworkPolicyList, error)
func (*Client) ListServices ¶
func (c *Client) ListServices(ctx context.Context, namespace string, options metav1.ListOptions) (*corev1.ServiceList, error)
func (*Client) ListUnstructured ¶ added in v0.8.3
func (c *Client) ListUnstructured(ctx context.Context, gvr schema.GroupVersionResource, namespace *string, o metav1.ListOptions) (*unstructured.UnstructuredList, error)
func (*Client) PatchConfigMap ¶
func (*Client) PatchDaemonSet ¶
func (*Client) PatchDeployment ¶
func (*Client) PatchSecret ¶
func (*Client) UpdateCiliumClusterwideNetworkPolicy ¶
func (c *Client) UpdateCiliumClusterwideNetworkPolicy(ctx context.Context, ccnp *ciliumv2.CiliumClusterwideNetworkPolicy, opts metav1.UpdateOptions) (*ciliumv2.CiliumClusterwideNetworkPolicy, error)
func (*Client) UpdateCiliumNetworkPolicy ¶
func (c *Client) UpdateCiliumNetworkPolicy(ctx context.Context, cnp *ciliumv2.CiliumNetworkPolicy, opts metav1.UpdateOptions) (*ciliumv2.CiliumNetworkPolicy, error)
type CopyOptions ¶ added in v0.10.1
type CopyOptions struct { // Maximum number of retries, -1 for unlimited retries. MaxTries int // ReaderFunc is the actual implementation for reading file content ReadFunc ReadFunc }
CopyOptions have the data required to perform the copy operation
type CopyPipe ¶ added in v0.10.1
type CopyPipe struct { Options *CopyOptions Reader *io.PipeReader Writer *io.PipeWriter // contains filtered or unexported fields }
CopyPipe struct is simple implementation to support copy files with retry.
type ExecParameters ¶
Click to show internal directories.
Click to hide internal directories.