gormstore

package
v1.21.4 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

type Converter struct{}

func (*Converter) EntityList2ObjectList

func (c *Converter) EntityList2ObjectList(el store.EntityObjectList) (client.ObjectList, error)

func (*Converter) ObjectList2EntityList

func (c *Converter) ObjectList2EntityList(ol client.ObjectList, el store.EntityObjectList) error

type KubeStore

type KubeStore struct {
	Converter
	client.Client
}

func (*KubeStore) Create

func (s *KubeStore) Create(context.Context, store.EntityObject, ...store.CreateOption) error

func (*KubeStore) CreateMany

func (s *KubeStore) CreateMany(context.Context, store.EntityObjectList, ...store.CreateOption) error

func (*KubeStore) Delete

func (s *KubeStore) Delete(context.Context, store.EntityObject, store.DeleteOptions) error

func (*KubeStore) List

func (s *KubeStore) List(ctx context.Context, list store.EntityObjectList, opts ...store.ListOptions) error

func (*KubeStore) Retrieve

func (s *KubeStore) Retrieve(context.Context, store.EntityObject, ...store.RetrieveOptions) error

func (*KubeStore) Update

func (s *KubeStore) Update(context.Context, store.EntityObject, ...store.UpdateOptions) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳