Documentation ¶
Overview ¶
Package kubernetes implements an Application backend that uses a Kubernetes informer to keep track of resources, and an appclientset to manipulate Application resources on the cluster.
Index ¶
- type KubernetesBackend
- func (be *KubernetesBackend) Create(ctx context.Context, app *v1alpha1.Application) (*v1alpha1.Application, error)
- func (be *KubernetesBackend) Delete(ctx context.Context, name string, namespace string) error
- func (be *KubernetesBackend) Get(ctx context.Context, name string, namespace string) (*v1alpha1.Application, error)
- func (be *KubernetesBackend) List(ctx context.Context, selector backend.ApplicationSelector) ([]v1alpha1.Application, error)
- func (be *KubernetesBackend) Patch(ctx context.Context, name string, namespace string, patch []byte) (*v1alpha1.Application, error)
- func (be *KubernetesBackend) StartInformer(ctx context.Context)
- func (be *KubernetesBackend) SupportsPatch() bool
- func (be *KubernetesBackend) Update(ctx context.Context, app *v1alpha1.Application) (*v1alpha1.Application, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubernetesBackend ¶
type KubernetesBackend struct {
// contains filtered or unexported fields
}
func NewKubernetesBackend ¶
func NewKubernetesBackend(appClient appclientset.Interface, namespace string, informer *appinformer.AppInformer, usePatch bool) *KubernetesBackend
func (*KubernetesBackend) Create ¶
func (be *KubernetesBackend) Create(ctx context.Context, app *v1alpha1.Application) (*v1alpha1.Application, error)
func (*KubernetesBackend) Get ¶
func (be *KubernetesBackend) Get(ctx context.Context, name string, namespace string) (*v1alpha1.Application, error)
func (*KubernetesBackend) List ¶
func (be *KubernetesBackend) List(ctx context.Context, selector backend.ApplicationSelector) ([]v1alpha1.Application, error)
func (*KubernetesBackend) Patch ¶
func (be *KubernetesBackend) Patch(ctx context.Context, name string, namespace string, patch []byte) (*v1alpha1.Application, error)
func (*KubernetesBackend) StartInformer ¶
func (be *KubernetesBackend) StartInformer(ctx context.Context)
func (*KubernetesBackend) SupportsPatch ¶
func (be *KubernetesBackend) SupportsPatch() bool
func (*KubernetesBackend) Update ¶
func (be *KubernetesBackend) Update(ctx context.Context, app *v1alpha1.Application) (*v1alpha1.Application, error)
Click to show internal directories.
Click to hide internal directories.