Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateConfigMap(ctx context.Context, cm *corev1.ConfigMap, owner metav1.Object) (*corev1.ConfigMap, error)
- func (c *Client) CreatePVC(ctx context.Context, pvc *corev1.PersistentVolumeClaim, owner metav1.Object) (*corev1.PersistentVolumeClaim, error)
- func (c *Client) CreatePod(ctx context.Context, pod *corev1.Pod, owner metav1.Object) (*corev1.Pod, error)
- func (c *Client) CreateService(ctx context.Context, service *corev1.Service, owner metav1.Object) (*corev1.Service, error)
- func (c *Client) DeletePVC(ctx context.Context, pvc *corev1.PersistentVolumeClaim) error
- func (c *Client) DeletePod(ctx context.Context, pod *corev1.Pod) error
- func (c *Client) DeleteRoom(ctx context.Context, room *hubv1.Room) error
- func (c *Client) GetConfigMap(ctx context.Context, key types.NamespacedName) (*corev1.ConfigMap, error)
- func (c *Client) GetPVC(ctx context.Context, key types.NamespacedName) (*corev1.PersistentVolumeClaim, error)
- func (c *Client) GetPod(ctx context.Context, key types.NamespacedName) (*corev1.Pod, error)
- func (c *Client) GetRoom(ctx context.Context, key types.NamespacedName) (*hubv1.Room, error)
- func (c *Client) SyncConfigMap(ctx context.Context, cm *corev1.ConfigMap, owner metav1.Object) (*corev1.ConfigMap, error)
- func (c *Client) SyncPVC(ctx context.Context, pvc *corev1.PersistentVolumeClaim, owner metav1.Object) (*corev1.PersistentVolumeClaim, error)
- func (c *Client) SyncPod(ctx context.Context, pod *corev1.Pod, owner metav1.Object) (*corev1.Pod, error)
- func (c *Client) SyncRoom(ctx context.Context, room *hubv1.Room) (*hubv1.Room, error)
- func (c *Client) SyncService(ctx context.Context, service *corev1.Service, owner metav1.Object) (*corev1.Service, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is a wrapper for controller-runtime client
func (*Client) CreateConfigMap ¶
func (*Client) CreatePVC ¶
func (c *Client) CreatePVC(ctx context.Context, pvc *corev1.PersistentVolumeClaim, owner metav1.Object) (*corev1.PersistentVolumeClaim, error)
func (*Client) CreateService ¶
func (*Client) DeleteRoom ¶
DeleteRoom deletes a Room object
func (*Client) GetConfigMap ¶
func (*Client) GetPVC ¶
func (c *Client) GetPVC(ctx context.Context, key types.NamespacedName) (*corev1.PersistentVolumeClaim, error)
GetPVC takes a NamespacedName key and returns a PVC object if exists
func (*Client) SyncConfigMap ¶
func (*Client) SyncPVC ¶
func (c *Client) SyncPVC(ctx context.Context, pvc *corev1.PersistentVolumeClaim, owner metav1.Object) (*corev1.PersistentVolumeClaim, error)
SyncPVC takes a PVC object and updates it or creates it if not exists
func (*Client) SyncPod ¶
func (c *Client) SyncPod(ctx context.Context, pod *corev1.Pod, owner metav1.Object) (*corev1.Pod, error)
SyncPod takes a Pod object and updates it or creates it if not exists
Click to show internal directories.
Click to hide internal directories.