store

package
v0.0.0-...-f1ac91e Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(to, from interface{}) error

Types

type Object

type Object struct {
	ObjectKey

	Version         string
	ResourceVersion string
	UID             types.UID
	Content         []byte
	Object          *unstructured.Unstructured
	Path            string
}

type ObjectKey

type ObjectKey struct {
	Kind      string
	Group     string
	Name      string
	Namespace string
}

type Revision

type Revision struct {
	// contains filtered or unexported fields
}

type Store

type Store struct {
	// contains filtered or unexported fields
}

func New

func New(url, branch, subDir string) (*Store, error)

func (*Store) Close

func (s *Store) Close() error

func (*Store) Create

func (s *Store) Create(ctx context.Context, gvk schema.GroupVersionKind, object client.Object) (runtime.Object, error)

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, gvk schema.GroupVersionKind, namespace, name string, preconditions *metav1.Preconditions) error

func (*Store) Get

func (s *Store) Get(gvk schema.GroupVersionKind, namespace, name string) client.Object

func (*Store) List

func (s *Store) List(gvk schema.GroupVersionKind, namespace string, selector labels.Selector) runtime.Object

func (*Store) Start

func (s *Store) Start(ctx context.Context, interval time.Duration) error

func (*Store) Update

func (s *Store) Update(ctx context.Context, gvk schema.GroupVersionKind, obj client.Object, generation bool) (runtime.Object, error)

func (*Store) Watch

func (s *Store) Watch(gvk schema.GroupVersionKind, emptyObj client.Object, opts metav1.ListOptions) (watch.Interface, error)

Jump to

Keyboard shortcuts

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